/* auth.css — login layout. Mirrors njs-mi (auth)/layout.tsx + login/page.tsx. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

a { color: inherit; text-decoration: none; }

/* Restore HTML hidden attribute regardless of class display values */
[hidden] { display: none !important; }

/* ── Page shell (matches auth-layout: min-h-screen flex centred) ──────────── */
.auth-root {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--canvas);
}
.auth-inner {
  width: 100%;
  max-width: 24rem;
}

/* ── Logo (centred above the card) ───────────────────────────────────────── */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  color: var(--ink);
}
.auth-logo-word {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-transform: uppercase;
}
@media (min-width: 768px) { .auth-logo-word { font-size: 1.25rem; } }

/* ── Card ────────────────────────────────────────────────────────────────── */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.auth-h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.auth-sub {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

/* ── Banners ─────────────────────────────────────────────────────────────── */
.auth-banner {
  font-size: 14px;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.auth-banner.ok {
  color: var(--gain);
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.20);
}

.auth-error {
  font-size: 14px;
  color: var(--loss);
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.20);
  border-radius: 8px;
  padding: 12px 16px;
}

/* ── Form ────────────────────────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }

.auth-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.auth-input {
  width: 100%;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-input::placeholder { color: var(--ink-muted); }
.auth-input:focus {
  border-color: var(--gain);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.50);
}

.auth-submit {
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  background: var(--gain);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, opacity 0.15s;
}
.auth-submit:hover:not(:disabled) { background: rgba(16, 185, 129, 0.90); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-sync-note {
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.6;
}
