/**
 * Страницы восстановления пароля: запрос ссылки и ввод нового пароля.
 *
 * Поля, кнопка отправки и блок ошибки переиспользуются из site.css
 * (.site-auth-field, .site-auth-submit-btn, .site-auth-error) — здесь только
 * «обвязка» страницы и увеличенные размеры под мобайл.
 */

.auth-page {
    padding: 110px 0 60px;
    background: var(--bg);
    min-height: 70vh;
}

.auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(15, 29, 68, 0.08);
    padding: 36px 32px;
}

/* ====== Иконка состояния ====== */

.auth-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: rgba(250, 106, 45, 0.10);
    color: var(--orange);
}

.auth-card__icon svg { width: 26px; height: 26px; display: block; }

.auth-card__icon--mail { background: #eff6ff; color: #2563eb; }
.auth-card__icon--warn { background: #fffbeb; color: #b45309; }

/* ====== Заголовки ====== */

.auth-card__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--dark);
}

.auth-card__sub {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

.auth-card__sub strong {
    color: var(--dark);
    font-weight: 600;
    word-break: break-word;
}

/* ====== Поля: крупнее, чем в модалке (меньше 16px — iOS зумит вьюпорт) ====== */

.auth-card .site-auth-field { margin-bottom: 16px; }

.auth-card .site-auth-field input {
    height: 52px;
    font-size: 16px;
}

.auth-card .site-auth-submit-btn { height: 52px; margin-top: 6px; }

/* Кнопка-ссылка: та же кнопка, но <a> */
.auth-card a.auth-btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* ====== Показать / скрыть пароль ====== */

.auth-pass { position: relative; }

.auth-card .site-auth-field .auth-pass input { padding-right: 48px; }

.auth-pass__toggle {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 4px;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: color .18s ease;
}

.auth-pass__toggle:hover { color: var(--slate); }
.auth-pass__toggle svg { width: 20px; height: 20px; display: block; }

/* ====== Подсказка под текстом ====== */

.auth-hint {
    margin: 0 0 18px;
    font-size: 12px;
    line-height: 1.5;
    color: #9ca3af;
}

/* ====== Вторичная кнопка «отправить ещё раз» ====== */

.auth-btn-ghost {
    width: 100%;
    height: 50px;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    background: #fafbff;
    color: var(--dark);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.auth-btn-ghost:hover:not(:disabled) { border-color: #c7cdd8; background: #ffffff; }

.auth-btn-ghost:disabled {
    cursor: default;
    color: #9ca3af;
    background: #f7f8fc;
    border-color: #eceef4;
}

/* ====== Таймер ====== */

.auth-timer {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

/* моноширинные цифры — таймер не «дёргается» при тике */
.auth-timer b {
    font-weight: 600;
    color: var(--slate);
    font-variant-numeric: tabular-nums;
}

/* ====== Ссылка возврата ====== */

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 500;
    color: #6f7b93;
    transition: color .18s ease;
}

.auth-back:hover { color: var(--blue); }
.auth-back svg { width: 14px; height: 14px; }

/* ====== Поля, спрятанные от человека (ловушка ботов, username для менеджеров) ====== */

.auth-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* ====== Мобайл ====== */

@media (max-width: 640px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .auth-card__title { font-size: 21px; }
}

@media (max-width: 480px) {
    .auth-page { padding: 90px 0 40px; }
}

@media (min-width: 641px) {
    .auth-card__title { font-size: 24px; }
}
