:root {
  --ink: #1d2430;
  --muted: #5b6676;
  --line: #d5dbe3;
  --paper: #ffffff;
  --desk: #f3f5f8;
  --accent: #1f5fa8;
  --good: #1d6b3a;
  --bad: #a3261d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--desk);
}
a { color: var(--accent); }
h1 { font-size: 1.35rem; margin: 0 0 0.75rem; }

.page {
  max-width: 420px;
  margin: 3rem auto 1.5rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.stack { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.quiet { color: var(--muted); font-size: 0.9rem; }

label { font-weight: 600; }
input {
  padding: 0.45rem 0.55rem;
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
button {
  padding: 0.5rem 0.9rem;
  font: inherit;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }
.link-button { padding: 0; color: var(--accent); background: none; text-decoration: underline; }

.messages { list-style: none; max-width: 420px; margin: 1rem auto 0; padding: 0 1.25rem; }
.message {
  padding: 0.55rem 0.8rem;
  margin-bottom: 0.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
}
.message.success { border-left-color: var(--good); }
.message.error { border-left-color: var(--bad); }
.errorlist { list-style: none; margin: 0; padding: 0; color: var(--bad); }
