:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #fff;
  --text: #1d2330;
  --muted: #5d6676;
  --border: #dfe3ea;
  --accent: #2f6fde;
  --danger: #c0392b;
  font: 16px/1.5 "DM Sans", system-ui, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161b;
    --surface: #1d2027;
    --text: #e8eaee;
    --muted: #9aa3b2;
    --border: #2e333d;
    --accent: #6c9cf0;
    --danger: #e57366;
  }
}

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.card {
  width: min(24rem, calc(100vw - 2rem));
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

h1 {
  margin: 0 0 1.25rem;
  font-family: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  font-size: 1.5rem;
}

form {
  display: grid;
  gap: 0.5rem;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
}

input {
  font: inherit;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: inherit;
}

input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button {
  font: inherit;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.muted {
  color: var(--muted);
}

.errors {
  color: var(--danger);
}

.errors ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
