/* Deliberately small and dependency-free: enough that a fresh instance looks
   intentional rather than unstyled. Replace wholesale with your own. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1b1f24;
  --muted: #5c6670;
  --line: #d8dde2;
  --accent: #0a7c5a;
  --accent-text: #ffffff;
  --error-bg: #fdecec;
  --error-line: #e2a0a0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181c;
    --surface: #1d2126;
    --text: #e7eaed;
    --muted: #9aa4ae;
    --line: #2e343b;
    --accent: #2bb98a;
    --accent-text: #0b1113;
    --error-bg: #3a2122;
    --error-line: #7d4446;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.site-header {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 1.5rem; height: 56px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.site-brand { font-weight: 650; text-decoration: none; color: var(--text); }
.site-nav { display: flex; gap: 1.25rem; margin-right: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .925rem; }
.site-nav a:hover { color: var(--text); }
.site-user { display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: var(--muted); }
.btn-plain {
  background: none; border: 1px solid var(--line); border-radius: 5px;
  padding: .25rem .6rem; color: var(--muted); cursor: pointer; font-size: .825rem;
}
.btn-plain:hover { color: var(--text); border-color: var(--muted); }
.site-main { max-width: 68rem; margin: 0 auto; padding: 2rem 1.5rem; }
.site-footer {
  max-width: 68rem; margin: 0 auto; padding: 1.5rem;
  color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line);
}
.page-title { margin: 0 0 .5rem; font-size: 1.6rem; letter-spacing: -.01em; }
.page-sub { margin: 0; color: var(--muted); max-width: 44rem; }
code {
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  padding: .1rem .35rem; font-size: .9em;
}
.login-page .site-main { display: grid; place-items: center; min-height: calc(100vh - 160px); }
.login-shell { width: 100%; max-width: 23rem; }
.login-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 1.75rem;
}
.login-title { margin: 0 0 .25rem; font-size: 1.3rem; }
.login-sub { margin: 0 0 1.25rem; color: var(--muted); font-size: .9rem; }
.login-legal { margin: 1rem 0 0; text-align: center; color: var(--muted); font-size: .75rem; }
.field { display: block; margin-bottom: .9rem; }
.field-label { display: block; margin-bottom: .3rem; font-size: .825rem; color: var(--muted); }
.field input {
  width: 100%; padding: .55rem .65rem; font-size: .95rem;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.btn {
  display: block; width: 100%; padding: .6rem; margin-top: .25rem;
  font-size: .95rem; font-weight: 550; border: 0; border-radius: 6px; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { filter: brightness(1.08); }
.alert {
  padding: .6rem .8rem; margin-bottom: 1rem; border-radius: 6px;
  border: 1px solid var(--line); background: var(--bg); font-size: .9rem;
}
.alert-error { background: var(--error-bg); border-color: var(--error-line); }
