:root {
  --bg: #f4f5f7; --card: #ffffff; --text: #1d2330; --muted: #667085;
  --line: #d0d5dd; --accent: #1f5eff; --accent-text: #ffffff; --error: #b42318; --error-bg: #fef3f2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218; --card: #181c25; --text: #e6e8ee; --muted: #98a2b3;
    --line: #2e3442; --accent: #5b8cff; --accent-text: #0f1218; --error: #fda29b; --error-bg: #2a1614;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.card {
  width: 100%; max-width: 380px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 28px;
}
h1 { font-size: 20px; margin: 0 0 16px; }
header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
input {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font-size: 15px;
  color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 8px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
button {
  width: 100%; padding: 10px 12px; font-size: 15px; font-weight: 600; cursor: pointer;
  color: var(--accent-text); background: var(--accent); border: 0; border-radius: 8px;
}
button.secondary { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
.muted { color: var(--muted); font-size: 13px; }
.error { color: var(--error); background: var(--error-bg); padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.resources { list-style: none; padding: 0; margin: 0 0 20px; }
.resources li { border-bottom: 1px solid var(--line); }
.resources a { display: block; padding: 12px 4px; color: var(--accent); text-decoration: none; font-weight: 500; }
.resources a:hover { text-decoration: underline; }
