/* auth.lewis.app — the whole stylesheet. No framework, no build step. */

:root {
  color-scheme: light dark;
  --bg: #f6f6f7;
  --card: #ffffff;
  --ink: #16161a;
  --muted: #6b6b76;
  --line: #e2e2e7;
  --accent: #3b5bdb;
  --accent-ink: #ffffff;
  --danger: #c92a2a;
  --danger-bg: #fff5f5;
  --ok: #2b8a3e;
  --ok-bg: #f4fce3;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121215;
    --card: #1b1b20;
    --ink: #f2f2f4;
    --muted: #9a9aa6;
    --line: #2e2e36;
    --accent: #748ffc;
    --accent-ink: #10101a;
    --danger: #ff8787;
    --danger-bg: #2a1a1c;
    --ok: #8ce99a;
    --ok-bg: #17251a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  max-width: 380px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

h1 {
  font-size: 21px;
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

button {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

button:hover:not(:disabled) {
  filter: brightness(1.08);
}

button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.msg {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.msg[hidden] {
  display: none;
}

.msg.error {
  color: var(--danger);
  background: var(--danger-bg);
}

.msg.ok {
  color: var(--ok);
  background: var(--ok-bg);
}

.alt {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.alt + .alt {
  margin-top: 8px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.footnote {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
