/* ============================================================================
   auth.css — «Вход» нового дизайна (доски Login, LoginMobile и LoginMobileSE холста 04.10.2026; страничные правила досок —
   css/4b8760af.css и css/8c0487fd.css холста, дословно: .au* — десктоп, .au-m* — телефон, .au-se — маленький экран; стена
   постеров плывёт — .au-track; телефон — адаптив по высоте: плита 200…364 px, ниже 250 — без строки под заголовком). Поля, флажок и кнопка — bundle.css (K.Field с reveal,
   K.Checkbox, K.Button). У нас доска телефона — те же классы .au* под @media (< 1024: рядом с формой плите тесно) вместо .au-m.
   ============================================================================ */

/* ── десктоп (доска Login) ──────────────────────────────────────────────────────────────────────────────────────────────── */
.au{display:grid;grid-template-columns:minmax(0,1fr) 560px;gap:12px}
.au-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;min-height:0;padding:36px 40px 44px;border-radius:var(--radius-xl);background:var(--plate-sheen),var(--plate);box-shadow:var(--shadow-plate)}
.au-hero::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,var(--plate) 6%,#17121bd9 34%,transparent 64%),linear-gradient(0deg,var(--plate) 4%,#17121bcc 30%,transparent 58%)}
.au-wall{position:absolute;z-index:-2;top:-120px;right:-70px;width:640px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;transform:rotate(-9deg);pointer-events:none}
.au-col{min-width:0}
.au-col:nth-child(2){margin-top:110px}
.au-col:nth-child(3){margin-top:-30px}
.au-col img{display:block;width:100%;height:auto;aspect-ratio:4/7;object-fit:cover;margin-bottom:18px;border-radius:22px;box-shadow:0 24px 60px #00000080,0 0 0 1px #ffffff14}
/* the wall drifts in a loop: each column holds its posters twice and slides by exactly one set (no gap in the track, spacing is margin-bottom) */
.au-track{display:flex;flex-direction:column;will-change:transform;animation:au-up 64s linear infinite}
.au-col:nth-child(2) .au-track{animation-name:au-down;animation-duration:76s}
.au-col:nth-child(3) .au-track{animation-duration:58s;animation-delay:-20s}
@keyframes au-up{from{transform:translateY(0)}to{transform:translateY(-50%)}}
@keyframes au-down{from{transform:translateY(-50%)}to{transform:translateY(0)}}
@media (prefers-reduced-motion:reduce){.au-track{animation:none}}
.au-brand{display:flex;align-items:center;gap:12px}
.au-brand img{width:44px;height:44px;border-radius:13px;box-shadow:0 6px 20px #0006}
.au-brand b{font-size:22px;font-weight:600;letter-spacing:-.02em;color:var(--plate-ink-0)}
.au-brand span{height:26px;display:inline-flex;align-items:center;padding:0 10px;border-radius:var(--radius-pill);background:var(--plate-fill);box-shadow:inset 0 0 0 1px var(--plate-line);font-size:13px;font-weight:500;color:var(--plate-ink-2)}
.au-copy h2{margin:0;max-width:560px;font-size:46px;line-height:1.04;font-weight:600;letter-spacing:-.04em;color:var(--plate-ink-0)}
.au-copy p{margin:16px 0 0;max-width:440px;font-size:16px;line-height:1.5;color:var(--plate-ink-2)}
.au-main{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0}
.au-form{width:380px;display:flex;flex-direction:column}
.au-form h1{margin:0;font-size:40px;line-height:1.05;font-weight:600;letter-spacing:-.035em;color:var(--ink-0)}
.au-sub{margin:12px 0 32px;font-size:15px;line-height:1.45;color:var(--ink-3)}
.au-fields{display:flex;flex-direction:column;gap:18px}
.au-row{display:flex;align-items:center;justify-content:space-between;margin-top:20px}
.au-btn{margin-top:26px}
.au-foot{position:absolute;left:0;right:0;bottom:30px;display:flex;justify-content:center;align-items:center;gap:8px;font-size:13px;color:var(--ink-3)}

/* ── наша разметка (не на досках) ───────────────────────────────────────────────────────────────────────────────────────── */
/* страница — во весь экран (доска — артборд 1440 × 900 с полями 12): плита тянется на всю высоту окна */
.au{min-height:100vh;min-height:100dvh;padding:12px;box-sizing:border-box}
/* «глаз» в поле пароля: обе иконки в кнопке, видна одна (kadrum.js [data-reveal] меняет aria-pressed и type поля) */
.kd-field__reveal .au-eye-off, .kd-field__reveal[aria-pressed="true"] .au-eye{display:none}
.kd-field__reveal[aria-pressed="true"] .au-eye-off{display:block}
/* подвал — сосед main (на телефоне прижат к низу экрана); на десктопе — в той же ячейке сетки, что форма, внизу — как
   .au-foot досок (absolute в .au-main) */
.au-hero{grid-column:1;grid-row:1}
.au-main{grid-column:2;grid-row:1}
.au-foot{position:static;grid-column:2;grid-row:1;align-self:end;margin-bottom:30px}
/* ошибка входа — над кнопкой */
.au-error{margin-top:20px}
/* форма — над подвалом, если окно низкое */
.au-main{padding:32px 0 64px}

/* ── телефон и узкие окна (доски LoginMobile и LoginMobileSE: .au-m → .au) ───────────────────────────────────────────────── */
/* Экран целиком: колонка на всю высоту (min-height 100dvh, наша разметка выше), поля — safe-area (доска: 47 / 34 — полосы
   iPhone, SE: 20 / 12; снизу не меньше 12). Плита забирает свободную высоту (200…364 px), форма — по содержимому, подвал —
   к низу. Полный экран помещается без прокрутки; на коротком телефоне с панелями браузера — прокрутка. */
@media (max-width:1023px){
  .au{display:flex;flex-direction:column;gap:0;padding:env(safe-area-inset-top) 0 max(12px,env(safe-area-inset-bottom))}
  .au-hero{box-sizing:border-box;flex:1 1 0;min-height:200px;max-height:364px;margin:8px 12px 0;padding:20px 22px 24px;border-radius:28px;container-type:size}
  .au-wall{top:-70px;right:-60px;width:330px;gap:10px}
  .au-col img{margin-bottom:10px}
  .au-track{animation-duration:48s}
  .au-col:nth-child(2) .au-track{animation-duration:56s}
  .au-col:nth-child(3) .au-track{animation-duration:44s}
  .au-col:nth-child(2){margin-top:56px}
  .au-col:nth-child(3){margin-top:-16px}
  .au-col img{border-radius:14px}
  .au-hero::after{background:linear-gradient(90deg,var(--plate) 0%,#17121bb3 40%,transparent 80%),linear-gradient(0deg,var(--plate) 6%,#17121bcc 38%,transparent 70%)}
  .au-brand img{width:36px;height:36px;border-radius:11px}
  .au-brand b{font-size:19px}
  .au-brand span{height:24px;font-size:12px}
  .au-copy h2{font-size:30px;line-height:1.06}
  .au-copy p{margin-top:10px;font-size:14px}
  .au-main{position:static;display:block;flex:none;padding:0}
  .au-form{flex:none;width:auto;max-width:420px;margin:0 auto;padding:22px 24px 0}
  .au-form h1{font-size:30px}
  .au-sub{margin:6px 0 18px;font-size:14px}
  .au-fields{gap:14px}
  .au-fields .kd-field__label{margin-bottom:6px}
  .au-row{margin-top:16px}
  .au-btn{margin-top:18px}
  .au-foot{position:static;flex:none;align-self:stretch;margin:auto 0 0;padding-top:14px;font-size:12.5px}
  /* the hero gives way first: on shorter screens it loses the line under the headline; it never goes below 200px — the headline always stays */
  @container (max-height: 250px){.au-copy p{display:none}.au-copy h2{font-size:26px}}
  /* iOS: без приближения при фокусе */
  .au .kd-field__input{font-size:16px}
}
