:root { --bg: #f4f5f8; --surface: #fff; --text: #1b2230; --muted: #5f6878; --line: #e1e5eb; --brand: #3b4cca; --danger: #b42318; --warn-bg: #fff7e0; --ok-bg: #eef1ff; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #14171d; --surface: #1c2028; --text: #e6e9ef; --muted: #9aa3b2; --line: #2c3240; --brand: #8b98ff; --danger: #ff7b6e; --warn-bg: #3a3220; --ok-bg: #232a45; }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.card { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
h1 { font-size: 1.5rem; margin: 0 0 8px; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 14px 0; font-weight: 600; font-size: .9rem; }
.field[hidden] { display: none; }
input { font: inherit; font-weight: 400; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
button, .button { display: inline-flex; justify-content: center; align-items: center; font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; }
@media (prefers-color-scheme: dark) { button, .button { color: #10131a; } }
#go { width: 100%; margin-top: 4px; }
button:disabled { opacity: .6; cursor: wait; }
.link { background: none; border: 0; color: var(--brand); padding: 0; margin-left: 12px; font-weight: 500; text-decoration: underline; }
.notice { background: var(--ok-bg); border-radius: 10px; padding: 12px 14px; margin: 16px 0; }
.notice p { margin: 0 0 10px; }
.notice.warn { background: var(--warn-bg); }
.error { color: var(--danger); min-height: 1.2em; margin: 4px 0; font-size: .9rem; }
.small { color: var(--muted); font-size: .85rem; margin-top: 18px; }
