/* ===== Страница «Забыли пароль?» (account/forgotten.twig) =====
   Полностраничная форма (не боковой попап) — тот же визуальный язык
   (.auth-field/.auth-btn), что и во «Входе»/«Регистрации» в боковой
   панели, но в виде центрированной карточки. Иконки — инлайн SVG,
   без иконочных шрифтов. */

#account-forgotten {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 8px;
    padding-bottom: 48px;
}

#account-forgotten .breadcrumb {
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

#account-forgotten .auth-page-card {
    background: #fff;
    border: 1px solid #EDEFF3;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(16, 24, 40, .04);
    text-align: center;
}

#account-forgotten .auth-page-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(33, 70, 125, .08);
    color: #21467D;
}

#account-forgotten h1 {
    font-size: 22px;
    margin-bottom: 12px;
}

#account-forgotten .auth-page-hint {
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 22px;
}

/* ===== Баннер ошибки — раньше был <i class="fa fa-exclamation-circle">
   без подключённого Font Awesome (иконка не отображалась вообще). Теперь
   инлайн SVG, без иконочных шрифтов. ===== */
#account-forgotten .auth-alert--error {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    text-align: left;
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #FDF3F3;
    color: #E23D3D;
    font-size: 13px;
    line-height: 1.4;
}

#account-forgotten .auth-alert--error svg {
    flex-shrink: 0;
}

/* ===== Поле email — тот же язык, что в боковом попапе входа/регистрации:
   иконка слева, мягкий фон, скругление, аккуратный фокус-ring. ===== */
#account-forgotten fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

#account-forgotten .auth-field {
    position: relative;
    margin-bottom: 4px;
    text-align: left;
}

#account-forgotten .auth-field .form-control {
    height: 48px;
    width: 100%;
    padding: 0 14px 0 42px;
    border: 1.5px solid #E3E7EF;
    border-radius: 12px;
    background: #F7F8FB;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

#account-forgotten .auth-field .form-control::placeholder {
    color: #9AA3B5;
}

#account-forgotten .auth-field .form-control:hover {
    border-color: #C7CEDC;
}

#account-forgotten .auth-field .form-control:focus {
    border-color: #21467D;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(33, 70, 125, .10);
    outline: none;
}

#account-forgotten .auth-field__icon {
    position: absolute;
    left: 14px;
    top: 24px;
    transform: translateY(-50%);
    display: flex;
    color: #9AA3B5;
    pointer-events: none;
    transition: color .15s ease;
}

#account-forgotten .auth-field:focus-within .auth-field__icon {
    color: #21467D;
}

#account-forgotten .error-message {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
    color: #E23D3D;
}

#account-forgotten .error-message:not(:empty) {
    display: block;
}

#account-forgotten .auth-field:has(> .error-message:not(:empty)) .form-control {
    border-color: #E23D3D;
    background: #FDF3F3;
}

#account-forgotten .auth-field:has(> .error-message:not(:empty)) .auth-field__icon {
    color: #E23D3D;
}

/* ===== Кнопка «Продолжить» — компактная, без капса, тот же стиль, что
   у «Войти»/«Продолжить» в боковой панели. ===== */
#account-forgotten .buttons {
    margin-top: 18px;
}

#account-forgotten .auth-btn--primary {
    height: 48px;
    border-radius: 12px;
    border: 0;
    background: #21467D;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .1px;
    cursor: pointer;
    transition: opacity .15s ease, transform .05s ease;
}

#account-forgotten .auth-btn--primary:hover {
    opacity: .92;
}

#account-forgotten .auth-btn--primary:active {
    transform: scale(.98);
}

/* ===== Ссылка назад ко входу ===== */
#account-forgotten .auth-page-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    color: #667085;
    font-size: 13px;
    font-weight: 500;
    transition: color .15s ease;
}

#account-forgotten .auth-page-back:hover {
    color: #21467D;
}

@media (max-width: 480px) {
    #account-forgotten {
        padding-left: 12px;
        padding-right: 12px;
    }

    #account-forgotten .auth-page-card {
        padding: 24px 18px;
        border-radius: 16px;
    }
}
