/* Auth pages — matches NavigateOS design system */

:root {
  --bg: #0d0c0a;
  --bg-alt: #111009;
  --fg: #f2ede4;
  --fg-muted: #9e9188;
  --fg-dim: #6b6259;
  --gold: #c4a265;
  --gold-dim: rgba(196, 162, 101, 0.08);
  --gold-glow: rgba(196, 162, 101, 0.15);
  --border: rgba(242, 237, 228, 0.06);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-shell {
  width: 100%;
  max-width: 420px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 48px;
}
.brand-link {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-link:hover { color: var(--gold); }

.auth-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 48px 40px;
}

.auth-header {
  margin-bottom: 36px;
}
.auth-eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.auth-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  line-height: 1.2;
}
.auth-sub {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.auth-error {
  background: rgba(220, 80, 60, 0.1);
  border: 1px solid rgba(220, 80, 60, 0.2);
  color: #e07060;
  font-size: 0.85rem;
  padding: 12px 16px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.auth-form { display: flex; flex-direction: column; gap: 20px; }

.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.field-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}
.field-input::placeholder { color: var(--fg-dim); }
.field-input:focus { border-color: var(--gold); }

.btn-primary {
  background: var(--gold);
  color: #0d0c0a;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 14px 24px;
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity 0.2s;
  margin-top: 8px;
  width: 100%;
}
.btn-primary:hover { opacity: 0.85; }

.auth-footer {
  margin-top: 28px;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.back-link {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: var(--gold); }

@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; }
}