:root {
  color-scheme: light dark;
  --gap: 1rem;
  --fg: #1a1a1a;
  --muted: #666;
  --accent: #2b6cb0;
  --error: #c0392b;
  --border: #ccc;
}
@media (prefers-color-scheme: dark) {
  :root { --fg: #eaeaea; --muted: #aaa; --border: #444; }
}

* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--fg);
  margin: 0;
  line-height: 1.5;
}
main {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
h1 { font-size: 1.6rem; line-height: 1.2; }
.lede { color: var(--muted); font-size: 1.05rem; }

form { display: grid; gap: var(--gap); margin-top: 1.5rem; }
label { display: grid; gap: 0.35rem; font-weight: 600; }
input, select {
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  width: 100%;
}
label.consent {
  grid-auto-flow: column;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.5rem;
  font-weight: 400;
}
label.consent input { width: auto; margin-top: 0.2rem; }
.error { color: var(--error); font-weight: 400; font-size: 0.85rem; min-height: 1em; }

button#sign {
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
button#sign:hover { filter: brightness(1.05); }

.form-note { color: var(--muted); min-height: 1em; }
footer { margin-top: 2rem; color: var(--muted); }
footer a, a { color: var(--accent); }
