/* css/auth.css */

.auth-page {
    min-height: calc(100vh - 350px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: var(--bg-page);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px 36px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 12px 40px rgba(35, 30, 20, 0.05);
}

.auth-card__header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card__badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #9C824A;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.auth-card__title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: #1A1917;
    margin-bottom: 8px;
}

.auth-card__subtitle {
    font-size: 13.5px;
    color: #7A746B;
    line-height: 1.45;
}

/* Оповещения об ошибках в форме */
.auth-alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-alert--error {
    background: rgba(232, 77, 88, 0.08);
    color: #C02D38;
    border: 1px solid rgba(232, 77, 88, 0.2);
}

/* Поля формы */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.auth-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: #1A1917;
}

.auth-field__label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-link-forgot {
    font-size: 12px;
    color: #9C824A;
    text-decoration: underline;
}

.auth-field input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(35, 33, 30, 0.12);
    background: #FAF8F5;
    font-size: 14px;
    color: #1A1917;
    transition: all 0.2s ease;
}

.auth-field input:focus {
    background: #FFFFFF;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.auth-field__hint {
    font-size: 11px;
    color: var(--text-muted);
}

.auth-field-row {
    display: flex;
    gap: 14px;
}

/* Капча */
.auth-recaptcha-box {
    display: flex;
    justify-content: center;
    margin: 4px 0;
}

/* Чекбокс GDPR */
.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #555047;
    cursor: pointer;
    line-height: 1.4;
}

.auth-checkbox input {
    margin-top: 2px;
    accent-color: #1A1917;
}

.auth-checkbox a {
    color: #9C824A;
    text-decoration: underline;
}

/* Кнопка отправки */
.auth-btn-submit {
    width: 100%;
    height: 50px;
    border-radius: var(--border-radius-pill);
    background: #1C1B18;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-top: 6px;
    transition: all 0.25s ease;
}

.auth-btn-submit:hover {
    background: #D4AF37;
    color: #1A1917;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.auth-btn-arrow {
    transition: transform 0.2s;
}

.auth-btn-submit:hover .auth-btn-arrow {
    transform: translateX(4px);
}

/* Подвал карточки */
.auth-card__footer {
    display: flex;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #7A746B;
    margin-top: 10px;
}

.auth-card__footer a {
    color: #1A1917;
    font-weight: 600;
    text-decoration: underline;
}

/* Поле с кнопкой-глазиком */
.auth-field--password {
    position: relative;
}

.auth-field--password input {
    padding-right: 46px; /* Место под иконку */
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    bottom: 9px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9C824A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s;
}

.auth-password-toggle:hover {
    color: #1A1917;
}

.auth-password-toggle svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

@media (max-width: 520px) {
    .auth-card {
        padding: 30px 20px;
    }
    .auth-field-row {
        flex-direction: column;
        gap: 18px;
    }
}