:root {
  color-scheme: light dark;
  --bg: #edeff2;
  --surface: #ffffff;
  --ink: #15181f;
  --muted: #687181;
  --line: #d7dbe2;
  --brand: #c4122f;
  --focus: #2563eb;
  --error-bg: #fff0f1;
  --error: #8f1428;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1014;
    --surface: #161b22;
    --ink: #edf0f5;
    --muted: #9aa4b2;
    --line: #333b47;
    --brand: #f04a60;
    --focus: #6aa2ff;
    --error-bg: #35151b;
    --error: #ff91a0;
  }
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shell { width: min(92vw, 420px); }
.card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(18, 24, 36, .14);
}
.brand { display: flex; align-items: center; gap: 13px; margin-bottom: 28px; }
.cross { width: 38px; height: 38px; border-radius: 9px; background: var(--brand); position: relative; }
.cross::before, .cross::after { content: ""; position: absolute; background: white; border-radius: 1px; }
.cross::before { width: 6px; height: 21px; left: 16px; top: 8.5px; }
.cross::after { width: 21px; height: 6px; left: 8.5px; top: 16px; }
.eyebrow { color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 2px 0 0; font-size: 22px; line-height: 1.15; }
.intro { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 700; }
input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
input:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button {
  width: 100%;
  min-height: 44px;
  margin-top: 22px;
  border: 0;
  border-radius: 9px;
  background: var(--brand);
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
button:hover { filter: brightness(.94); }
.error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--error-bg);
  color: var(--error);
  font-size: 13px;
}
.local { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
