:root {
  --ink: #1d2733;
  --muted: #667383;
  --line: #d9dee5;
  --bg: #f4f6f8;
  --accent: #1f5c99;
  --error: #b3261e;
  --warn-bg: #ffe9a8;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
body.center { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
h1 { margin: 0; font-size: 26px; letter-spacing: 0.02em; }
h2 { margin-top: 0; font-size: 20px; }
h3 { font-size: 16px; margin-bottom: 8px; }
.sub { margin: 0 0 20px; color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin-bottom: 16px; }
.narrow { width: 100%; max-width: 360px; }
.wrap { max-width: 900px; margin: 24px auto; padding: 0 16px; }
label { display: block; margin-bottom: 14px; font-weight: 500; }
label.row { display: flex; gap: 8px; align-items: center; font-weight: 400; }
input[type=email], input[type=password], input[type=text] {
  display: block; width: 100%; margin-top: 4px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 6px; font: inherit;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; }
button:disabled { opacity: 0.6; cursor: default; }
button.link { background: none; color: var(--accent); padding: 0 0 0 10px; font-weight: 500; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.banner { background: var(--warn-bg); text-align: center; padding: 6px; font-weight: 600; font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--error); min-height: 1.2em; margin: 0 0 10px; }
.hidden { display: none !important; }
