/* Экраны входа и смены временного пароля. */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    background: #EDEEF2;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: var(--radius-card);
    padding: 32px 32px 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .07);
}

/* Появление карточки входа — единственная анимация страницы входа. При
   «уменьшить движение» подъём убираем, мягкое проявление оставляем (/design
   П5). Раньше это гасило глухое `* { animation: none }` в base.css; после
   перехода на адресное гашение карточка снова поехала бы — общее правило
   проигрывает этому файлу по порядку подключения (найдено ревью 18.08).
   Карточка видна и без анимации: `to { opacity: 1 }` — не единственный
   способ её показать. */
@media (prefers-reduced-motion: no-preference) {
    .auth-card { animation: rise var(--t-med) ease-out; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-card { animation: rise-soft var(--t-fast) ease-out; }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
@keyframes rise-soft {
    from { opacity: 0; }
    to { opacity: 1; }
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.brand img { width: 88px; height: 88px; display: block; }
.brand .tag { font-size: var(--fs-base); color: var(--muted); }

.remember { display: flex; align-items: center; gap: 8px; font-size: var(--fs-base); color: var(--muted); cursor: pointer; margin: -4px 0 4px; }
.remember input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }

.req { list-style: none; padding: 0; margin: 8px 0 0; font-size: var(--fs-xs); line-height: 1.75; }
.req li { color: var(--muted); padding-left: 19px; position: relative; }
.req li::before { content: '○'; position: absolute; left: 3px; top: -1px; }
.req li.ok { color: var(--pos); }
.req li.ok::before { content: '●'; }
.req li.soft { color: #9a9aa0; }
.req li.soft::before { content: '·'; font-size: var(--fs-lg); top: -3px; }
.req li.soft.ok { color: var(--pos); }
.req li.soft.ok::before { content: '●'; font-size: var(--fs-xs); top: -1px; }

.strength { height: 5px; border-radius: 999px; background: var(--line); margin-top: 10px; overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; background: var(--neg); }
/* Движение объявляется здесь же, а не гасится из base.css: общее правило
   проигрывает этому файлу по порядку подключения и молча не срабатывало
   (найдено ревью 18.08). Цвет полосы меняется в любом режиме — это не
   движение, а признак силы пароля. */
@media (prefers-reduced-motion: no-preference) {
    .strength i { transition: width var(--t-slow) ease-out, background var(--t-med) ease-out; }
}
@media (prefers-reduced-motion: reduce) {
    .strength i { transition: background var(--t-med) ease-out; }
}

.foot-note { font-size: var(--fs-sm); color: var(--muted); text-align: center; margin-top: 20px; line-height: 1.55; }
.link-btn { font-family: var(--font); font-size: var(--fs-sm); color: var(--muted); background: none; border: none; padding: 0; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.link-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(30, 72, 255, .35); border-radius: 4px; }
