.sn-auth-overlay {
    align-items: center;
    background: rgba(0, 0, 0, .45);
    box-sizing: border-box;
    display: flex;
    height: 100%;
    justify-content: center;
    left: 0;
    padding: 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10050;
}

.sn-auth-modal {
    animation: sn-auth-in .22s ease;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
    max-width: 420px;
    width: 100%;
}

@keyframes sn-auth-in {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sn-auth-modal-head {
    align-items: center;
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    justify-content: space-between;
    padding: 18px 22px 14px;
}

.sn-auth-modal-head h3 {
    color: #222;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.sn-auth-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 0 4px;
}

.sn-auth-close:hover {
    color: #e73b3b;
}

.sn-auth-form {
    padding: 18px 22px 22px;
}

.sn-auth-field {
    display: block;
    margin-bottom: 14px;
}

.sn-auth-label {
    color: #666;
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.sn-auth-field input[type=text],
.sn-auth-field input[type=password] {
    border: 1px solid #dde3ea;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    height: 42px;
    outline: none;
    padding: 0 12px;
    transition: border-color .2s;
    width: 100%;
}

.sn-auth-field input:focus {
    border-color: #e73b3b;
}

.sn-auth-captcha-row {
    align-items: flex-end;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 110px;
}

.sn-auth-captcha-row .sn-auth-label {
    grid-column: 1 / -1;
}

.sn-auth-captcha {
    border: 1px solid #dde3ea;
    border-radius: 6px;
    cursor: pointer;
    display: block;
    height: 42px;
    object-fit: cover;
    width: 110px;
}

.sn-auth-msg {
    color: #e73b3b;
    font-size: 13px;
    margin: 0 0 10px;
    min-height: 18px;
}

.sn-auth-submit {
    background: linear-gradient(180deg, #f04747, #e73b3b);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    height: 44px;
    margin-top: 4px;
    width: 100%;
}

.sn-auth-submit:hover {
    filter: brightness(1.05);
}

.sn-auth-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.sn-auth-switch {
    color: #888;
    font-size: 13px;
    margin: 14px 0 0;
    text-align: center;
}

.sn-auth-switch a {
    color: #e73b3b;
    text-decoration: none;
}

.sn-auth-switch a:hover {
    text-decoration: underline;
}

body.sn-auth-open {
    overflow: hidden;
}
