:root { --bg: #0f1720; --panel: #16212c; --line: #2a3a4a; --text: #e8eef4; --muted: #8ea1b3; --accent: #3aa0ff; --red: #e5484d;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.card { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
h1 { font-size: 1.25rem; margin: 0 0 6px; }
.muted { color: var(--muted); margin: 0 0 12px; }
.msg { color: var(--red); min-height: 1.2em; margin: 0 0 8px; font-size: 0.9rem; }
.msg:empty { display: none; }
form { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--muted); }
input { font: inherit; color: var(--text); background: #0b1219; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { font: inherit; font-weight: 700; padding: 12px; border: none; border-radius: 10px; background: var(--accent); color: #05121f; cursor: pointer; }
a { color: var(--accent); }
.pin { font-size: 2rem; letter-spacing: 0.4em; text-align: center; padding: 12px 8px 12px calc(8px + 0.4em); font-variant-numeric: tabular-nums; }
.small { font-size: 0.85rem; }
label[for="pin"] { margin-bottom: -6px; }
