:root {
  --bg: #ffffff;
  --fg: #111114;
  --muted: #6b7280;
  --border: #e4e4e7;
  --accent: #111114;
  --accent-fg: #ffffff;
  --error: #b91c1c;
  --success: #15803d;
  --link: #1d4ed8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0e;
    --fg: #f4f4f5;
    --muted: #9ca3af;
    --border: #27272a;
    --accent: #f4f4f5;
    --accent-fg: #0c0c0e;
    --error: #f87171;
    --success: #4ade80;
    --link: #93c5fd;
  }
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  max-width: 24rem;
  margin: 4rem auto;
  padding: 0 1.5rem 4rem;
  line-height: 1.5;
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

p.lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 1rem 0 0.35rem;
}
form label:first-of-type { margin-top: 0; }

form input[type="email"],
form input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
}
form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

button.primary {
  margin-top: 1.5rem;
  padding: 0.65rem 1.2rem;
  width: 100%;
  font-size: 1rem;
  font-weight: 500;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
button.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.status.success { color: var(--success); }
.status.error { color: var(--error); }
.status.info { color: var(--muted); }

p.foot {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2rem;
  text-align: center;
}
p.foot a { color: var(--link); text-decoration: none; }
p.foot a:hover { text-decoration: underline; }
