/* Вход в аппаратную CC·TV — строго чёрно-белый */
:root {
  --bg: #000;
  --surface: #000;
  --field: #000;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4f4;
  --muted: #8f8f8f;
  --fg: #fff;
  --ink: #000;
  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-ui: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.wrap { min-height: 100%; display: grid; place-items: center; padding: 32px 16px; }
.card {
  width: min(420px, 100%); display: grid; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 40px 32px 28px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.06em; }
.brand-name b { color: var(--muted); }
.mark {
  position: relative; width: 30px; height: 22px; border-radius: 5px; border: 2px solid var(--fg);
  display: grid; place-items: center;
}
.mark::after { content: ""; position: absolute; bottom: -7px; width: 12px; height: 3px; border-radius: 2px; background: var(--fg); }
.mark span { width: 6px; height: 6px; border-radius: 50%; background: var(--fg); }
h1 { margin: 14px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; text-wrap: balance; }
.sub { margin: -6px 0 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
label { display: grid; gap: 8px; }
label span { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
input {
  height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--field); color: var(--text); font: inherit; font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08); }
button {
  height: 50px; margin-top: 6px; border: 0; border-radius: 12px; background: var(--fg); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity 0.15s, transform 0.08s;
}
button:hover { opacity: 0.88; }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
button:disabled { opacity: 0.5; cursor: default; }
.err { min-height: 20px; margin: 0; font-size: 14px; color: var(--text); }
.err:not(:empty)::before { content: "✕  "; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
