
:root { color-scheme: light dark; --bg: #f4f5f7; --card: #fff; --text: #1c1e21; --muted: #5f6672;
  --line: #d5d9e0; --accent: #2457d6; --accent-text: #fff; --error-bg: #fdecec; --error-text: #a11a1a;
  --lock-bg: #fff3d1; --lock-text: #5c3d00; --lock-line: #b97800; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #15171a; --card: #1f2226; --text: #eceef1; --muted: #a3aab5; --line: #3a3f47;
    --accent: #6f95f5; --accent-text: #10131a; --error-bg: #3b1c1c; --error-text: #ffb4b4;
    --lock-bg: #3a2e10; --lock-text: #ffdd99; --lock-line: #e0a422; }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; padding: 24px 16px; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { width: 100%; max-width: 400px; padding: 32px 28px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; }
h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
p { margin: 0 0 16px; }
.lead { color: var(--muted); }
.lead:last-child { margin-bottom: 0; }
.error { padding: 10px 12px; border-radius: 8px; font-size: 15px; }
.error { background: var(--error-bg); color: var(--error-text); }
.error.locked { background: var(--lock-bg); color: var(--lock-text); font-weight: 600;
  border-left: 5px solid var(--lock-line); }
.field-error { margin: 0 0 16px; font-size: 14px; color: var(--error-text); }
label { display: block; margin: 0 0 6px; font-weight: 600; font-size: 15px; }
input { width: 100%; margin: 0 0 16px; padding: 11px 12px; font: inherit; color: inherit;
  background: transparent; border: 1px solid var(--line); border-radius: 8px; }
input[aria-invalid] { margin-bottom: 6px; border-color: var(--error-text); }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent);
  outline-offset: 2px; }
button, .button { display: block; width: 100%; padding: 12px; font: inherit; font-weight: 600;
  text-align: center; text-decoration: none; color: var(--accent-text); background: var(--accent);
  border: 0; border-radius: 8px; cursor: pointer; }
form { margin: 0; }
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: 100%; max-width: 400px;
  font-size: 15px; }
nav a { flex: 1 1 auto; min-width: 0; padding: 8px 14px; text-align: center; text-decoration: none;
  color: var(--accent); background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
nav [aria-current] { color: var(--accent-text); background: var(--accent); border-color: var(--accent);
  font-weight: 600; }
