/* Вход и новый пароль — та же строгая тёмная тема, что и кабинет: чёрный, графит, белый; узкий шрифт капсом. */
:root {
  --bg: #0A0A0B; --panel: #111113; --line: #2B2B30; --line2: #1F1F23;
  --text: #EDEDEF; --muted: #8C8C94; --muted2: #7C7C84; --err: #E5484D;
  --fd: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ft: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 14px/1.5 var(--ft); -webkit-font-smoothing: antialiased; }
body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(420px, 0.75fr); min-height: 100vh; }
.hidden { display: none !important; }
::selection { background: rgba(255, 255, 255, .22); }

/* ── левая сторона: что это за место ── */
.hero { position: relative; display: flex; flex-direction: column; padding: 40px 56px 36px; border-right: 1px solid var(--line2); overflow: hidden; }
.mark { font: 700 19px/1 var(--fd); letter-spacing: .14em; text-transform: uppercase; }
.mark::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--text); margin-right: 12px; vertical-align: 2px; }
.hero-main { margin: auto 0; padding: 48px 0; }
.kicker { font: 600 11px/1 var(--ft); letter-spacing: .16em; text-transform: uppercase; color: var(--muted2); }
.big { margin: 18px 0 0; font: 700 clamp(64px, 9vw, 148px)/0.86 var(--fd); letter-spacing: -.005em; text-transform: uppercase; }
.big span { display: block; color: var(--muted2); }

/* живой пример трима: дубль зачёркивается, пауза схлопывается */
.demo { margin-top: 44px; max-width: 640px; border-top: 1px solid var(--line); padding-top: 18px; }
.demo-h { display: flex; justify-content: space-between; font: 600 11px var(--ft); letter-spacing: .14em; text-transform: uppercase; color: var(--muted2); }
.demo-h b { font: 500 12px var(--mono); letter-spacing: 0; color: var(--muted); }
.demo-t { margin-top: 16px; font-size: 19px; line-height: 1.75; color: #D9D9DC; }
.demo-t s { text-decoration: none; position: relative; color: inherit; transition: color .4s; }
.demo-t s::after { content: ""; position: absolute; left: 0; right: 100%; top: 55%; height: 2px; background: var(--text); transition: right .5s ease; }
.demo-t.on s { color: var(--muted2); }
.demo-t.on s::after { right: 0; }
.demo-t .pz { display: inline-block; font: 500 11px var(--mono); color: var(--muted); border: 1px solid var(--line); padding: 2px 7px; vertical-align: 3px; margin: 0 3px; transition: opacity .4s, border-style .4s; }
.demo-t.on .pz { border-style: dashed; opacity: .45; }
.wave { margin-top: 22px; height: 54px; display: flex; align-items: center; gap: 2px; }
.wave i { flex: 1; background: #CFCFD4; min-height: 2px; transition: background .5s, opacity .5s; }
.demo-t.on ~ .wave i.c { background: #2C2C31; }
.demo-f { display: flex; gap: 40px; margin-top: 18px; }
.demo-f div { display: grid; gap: 6px; }
.demo-f b { font: 700 34px/1 var(--fd); font-variant-numeric: tabular-nums; }
.demo-f span { font: 600 10.5px var(--ft); letter-spacing: .14em; text-transform: uppercase; color: var(--muted2); }
.foot { display: flex; justify-content: space-between; font: 600 11px var(--ft); letter-spacing: .14em; text-transform: uppercase; color: var(--muted2); }

/* ── правая сторона: форма ── */
.side { display: flex; align-items: center; justify-content: center; padding: 48px; }
.form { width: 100%; max-width: 380px; display: grid; gap: 0; }
.form h2 { margin: 14px 0 10px; font: 700 52px/0.9 var(--fd); text-transform: uppercase; letter-spacing: .005em; }
.sub { margin: 0 0 34px; color: var(--muted); line-height: 1.55; }
.f { display: grid; gap: 8px; margin-bottom: 22px; }
.f label { font: 600 11px var(--ft); letter-spacing: .14em; text-transform: uppercase; color: var(--muted2); }
.inp { position: relative; }
.inp input { width: 100%; height: 48px; padding: 0 44px 0 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--text); font: 400 17px var(--ft); outline: none; transition: border-color .15s; }
.inp input:focus { border-bottom-color: var(--text); }
.inp input::placeholder { color: var(--muted2); }
.inp input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 40px var(--bg) inset; caret-color: var(--text); }
.eye { position: absolute; right: 0; top: 8px; width: 36px; height: 32px; border: 0; background: transparent; color: var(--muted2); cursor: pointer; display: grid; place-items: center; }
.eye:hover, .eye.on { color: var(--text); }
.row { display: flex; justify-content: flex-end; margin: -8px 0 26px; }
.link { border: 0; background: none; padding: 0; color: var(--muted); font: 500 13px var(--ft); cursor: pointer; text-decoration: none; }
.link:hover { color: var(--text); }
.back { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 4px; font: 600 11px var(--ft); letter-spacing: .14em; text-transform: uppercase; color: var(--muted2); justify-self: start; }
.btn { height: 52px; width: 100%; border: 1px solid var(--text); background: var(--text); color: var(--bg); font: 600 13px var(--ft); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-radius: 0; transition: background .15s; }
.btn:hover { background: #FFFFFF; }
.btn:disabled { opacity: .5; cursor: default; }
.btn .arr { font: 400 20px var(--ft); line-height: 1; }
.btn.busy .arr { display: none; }
.spin { display: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp .8s linear infinite; }
.btn.busy .spin { display: block; }
@keyframes sp { to { transform: rotate(360deg); } }
.msg { min-height: 20px; margin: 16px 0 0; color: var(--err); font-size: 13px; }
.note { margin: 22px 0 0; color: var(--muted2); font-size: 13px; }
.note .link { text-decoration: underline; text-underline-offset: 3px; }
.ok-ico { width: 44px; height: 44px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); }

@media (max-width: 980px) {
  body { grid-template-columns: 1fr; }
  .hero { border-right: 0; border-bottom: 1px solid var(--line2); padding: 28px 24px; }
  .hero-main { padding: 36px 0 8px; }
  .demo, .foot { display: none; }
  .side { padding: 40px 24px 56px; align-items: flex-start; }
  .form h2 { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) { .demo-t s::after, .wave i { transition: none; } }

:focus-visible { outline: 1px solid var(--text); outline-offset: 2px; }
@media (max-width: 480px) { .big { font-size: 44px; } }
