/* Страница входа gsk68.ru. Цвета те же, что у сайта (src/styles.css). */
:root {
  --bg: #f5f5f2; --paper: #ffffff; --ink: #1b1f24; --muted: #5a626d; --line: #dcded9; --soft: #eef0ec;
  --accent: #1f5f6b; --accent-ink: #ffffff; --accent-soft: #e3eef0; --line-new: #c2410c;
  --warn: #9b2c2c; --warn-bg: #f8e5e3; --ok: #1e6b43;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PT Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171a; --paper: #1b1f23; --ink: #e7e8e5; --muted: #a2a9b2; --line: #30363c; --soft: #22272c;
    --accent: #6fb7c4; --accent-ink: #0d1a1d; --accent-soft: #1d3136; --line-new: #fb923c;
    --warn: #f19a92; --warn-bg: #3a1f1d; --ok: #7ccf9f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14171a; --paper: #1b1f23; --ink: #e7e8e5; --muted: #a2a9b2; --line: #30363c; --soft: #22272c;
  --accent: #6fb7c4; --accent-ink: #0d1a1d; --accent-soft: #1d3136; --line-new: #fb923c;
  --warn: #f19a92; --warn-bg: #3a1f1d; --ok: #7ccf9f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--ink); font: 16px/1.5 var(--font);
  background:
    radial-gradient(900px 500px at 50% -10%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.vh { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); gap: 18px; }

.vh-card {
  position: relative; width: 100%; max-width: 400px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 22px; padding: 30px 28px 24px; text-align: center;
  box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 18px 48px -18px rgb(20 40 45 / .28);
}
@media (max-width: 380px) { .vh-card { padding: 26px 18px 20px; } }

.vh-strip { display: block; width: 172px; height: 30px; margin: 0 auto 18px; }
.vh-boxes rect { fill: var(--soft); stroke: var(--line); stroke-width: .8; }
.vh-boxes .vh-me { fill: var(--accent-soft); stroke: var(--line-new); stroke-width: 1.4; }
.vh-line { fill: none; stroke: var(--line-new); stroke-width: 1.6; stroke-dasharray: 3 2.4; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .vh-line { animation: vh-flow 1.6s linear infinite; }
  @keyframes vh-flow { to { stroke-dashoffset: -10.8; } }
}

.vh-mark { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 14px; background: var(--accent); display: grid; place-items: center; }
.vh-mark svg { width: 28px; height: 28px; fill: var(--accent-ink); }
.vh-kicker { margin: 0 0 4px; font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; letter-spacing: -0.015em; }
.vh-lead { margin: 0 auto 22px; max-width: 30ch; color: var(--muted); font-size: 15.5px; }

.vh-form { margin: 0; }
.vh-label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Без скрипта видно обычное поле; скрипт включает клетки (класс .is-cells). */
.vh-pin { position: relative; width: 100%; max-width: 312px; margin: 0 auto; }
.vh-pin input {
  display: block; width: 100%; height: 56px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--bg); color: var(--ink); font: 600 26px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .5em; text-align: center; outline: none; caret-color: var(--accent);
}
.vh-pin input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.vh-cells { display: none; }

.vh-pin.is-cells input {
  position: absolute; inset: 0; height: 100%; opacity: 0; color: transparent; caret-color: transparent; z-index: 2;
  font-size: 16px; letter-spacing: 0; box-shadow: none; border: 0;
}
.vh-pin.is-cells .vh-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.vh-cells span {
  height: 58px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg);
  display: grid; place-items: center; font: 650 26px/1 var(--font); font-variant-numeric: tabular-nums;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
@media (max-width: 360px) { .vh-cells span { height: 50px; font-size: 22px; } .vh-pin.is-cells .vh-cells { gap: 6px; } }
.vh-cells span.is-filled { background: var(--paper); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.vh-pin.is-focus .vh-cells span.is-active { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.vh-pin.is-focus .vh-cells span.is-active:empty::after {
  content: ""; width: 2px; height: 26px; background: var(--accent); border-radius: 1px;
}
@media (prefers-reduced-motion: no-preference) {
  .vh-pin.is-focus .vh-cells span.is-active:empty::after { animation: vh-blink 1s steps(1) infinite; }
  @keyframes vh-blink { 50% { opacity: 0; } }
  .vh-pin.is-error { animation: vh-shake .38s; }
  @keyframes vh-shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
}
.vh-pin.is-error .vh-cells span, .vh-pin.is-error input { border-color: var(--warn); }
.vh-pin.is-ok .vh-cells span { border-color: var(--ok); }

.vh-btn {
  display: block; width: 100%; max-width: 312px; height: 52px; margin: 16px auto 0; border: 0; border-radius: 14px;
  background: var(--accent); color: var(--accent-ink); font: 650 17px/1 var(--font); cursor: pointer;
  transition: filter .15s, opacity .15s;
}
.vh-btn:hover { filter: brightness(1.08); }
.vh-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.vh-btn[disabled] { opacity: .45; cursor: default; filter: none; }

.vh-msg { min-height: 22px; margin: 12px 0 0; font-size: 14.5px; }
.vh-msg.is-error { color: var(--warn); }
.vh-msg.is-ok { color: var(--ok); }

.vh-help { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.vh-note { max-width: 400px; margin: 0; text-align: center; font-size: 12.5px; color: var(--muted); }
