@import url("/static/fonts/fonts.css");

/* Same "Field Report" blueprint palette as landing.css, scoped down to just
   what these four auth pages (login/signup/forgot/reset) need — not a full
   landing.css include, since this is a small focused surface, not the
   marketing page. */
:root {
  color-scheme: dark;
  --ground: #0d2136;
  --ground-raised: #14304a;
  --ink: #eef4f7;
  --ink-soft: #9db4c2;
  --ink-faint: #6f8a9a;
  --accent: #d1a24a;
  --accent-strong: #e6bb63;
  --accent-ink: #1a2c3f;
  --rule: rgba(238, 244, 247, 0.16);
  --rule-strong: rgba(238, 244, 247, 0.32);
  --sev-high: #d1524a;
  --grid-line: rgba(238, 244, 247, 0.055);
}

@media (prefers-color-scheme: light) {
  :root:where(:not([data-theme="dark"])) {
    color-scheme: light;
    --ground: #f2f6f8;
    --ground-raised: #ffffff;
    --ink: #0d2136;
    --ink-soft: #43596b;
    --ink-faint: #6f8698;
    --accent: #9c7530;
    --accent-strong: #7e5e22;
    --accent-ink: #fdf6e8;
    --rule: rgba(13, 33, 54, 0.16);
    --rule-strong: rgba(13, 33, 54, 0.32);
    --sev-high: #b23a32;
    --grid-line: rgba(13, 33, 54, 0.05);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --ground: #f2f6f8;
  --ground-raised: #ffffff;
  --ink: #0d2136;
  --ink-soft: #43596b;
  --ink-faint: #6f8698;
  --accent: #9c7530;
  --accent-strong: #7e5e22;
  --accent-ink: #fdf6e8;
  --rule: rgba(13, 33, 54, 0.16);
  --rule-strong: rgba(13, 33, 54, 0.32);
  --sev-high: #b23a32;
  --grid-line: rgba(13, 33, 54, 0.05);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0d2136;
  --ground-raised: #14304a;
  --ink: #eef4f7;
  --ink-soft: #9db4c2;
  --ink-faint: #6f8a9a;
  --accent: #d1a24a;
  --accent-strong: #e6bb63;
  --accent-ink: #1a2c3f;
  --rule: rgba(238, 244, 247, 0.16);
  --rule-strong: rgba(238, 244, 247, 0.32);
  --sev-high: #d1524a;
  --grid-line: rgba(238, 244, 247, 0.055);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ground);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 1.5rem;
}

.auth-wrap { width: 100%; max-width: 400px; }

.auth-mark {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  margin-bottom: 1rem;
}

.auth-card {
  background: var(--ground-raised);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.4);
}

.auth-card h1 {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}

.auth-subtitle {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 0 0 1.5rem;
}

.auth-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.auth-field label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.auth-field input {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--ground);
  color: var(--ink);
  font-size: 0.95rem;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
}
.auth-hint { font-size: 0.76rem; color: var(--ink-faint); margin-top: 0.3rem; }

.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.7rem;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}
.auth-submit:hover { background: var(--accent-strong); }
.auth-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.auth-error {
  display: none;
  color: var(--sev-high);
  font-size: 0.85rem;
  margin-top: 0.85rem;
}
.auth-error.visible { display: block; }

.auth-success {
  display: none;
  color: var(--ink);
  background: var(--rule);
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 0.85rem;
  margin-top: 0.85rem;
}
.auth-success.visible { display: block; }

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 1.25rem;
  font-size: 0.82rem;
}
.auth-links a { color: var(--ink-soft); text-decoration: none; }
.auth-links a:hover { color: var(--accent); text-decoration: underline; }
