@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg-base: #090d14;
  --bg-surface: #0f1624;
  --bg-elevated: #161f30;
  --bg-card: #1a253a;
  --border: rgba(99,179,237,0.12);
  --border-glow: rgba(99,179,237,0.3);
  --cyan: #38bdf8;
  --cyan-dim: rgba(56,189,248,0.15);
  --purple: #a78bfa;
  --purple-dim: rgba(167,139,250,0.15);
  --green: #34d399;
  --green-dim: rgba(52,211,153,0.12);
  --red: #f87171;
  --red-dim: rgba(248,113,113,0.12);
  --text-primary: #e2eaf4;
  --text-secondary: #7a92b0;
  --text-muted: #445872;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius: 14px;
  --radius-sm: 8px;
}

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

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-display);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow-x: hidden;
}

#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4; }

.auth-shell { position: relative; z-index: 1; width: 100%; padding: 24px; display: flex; justify-content: center; }

.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  width: 100%; max-width: 380px;
}

.auth-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #060d18;
}

.mock-banner {
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.72rem;
  color: #fbbf24;
  margin-bottom: 22px;
  line-height: 1.5;
}

.flash {
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 0.8rem; margin-bottom: 14px;
}
.flash-error { background: var(--red-dim); color: var(--red); border: 1px solid rgba(248,113,113,0.3); }
.flash-success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(52,211,153,0.3); }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 0.78rem; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 6px;
}
.form-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--border-glow); box-shadow: 0 0 0 3px rgba(56,189,248,0.08); }

.btn-primary {
  width: 100%; padding: 12px;
  background: var(--cyan); color: #060d18;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.15s;
  margin-top: 4px;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.auth-footer {
  text-align: center; margin-top: 20px;
  font-size: 0.82rem; color: var(--text-secondary);
}
.auth-footer a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.auth-note {
  text-align: center; font-size: 0.72rem; color: var(--text-muted);
  margin-top: 14px; font-family: var(--font-mono);
}

.demo-creds {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--border);
}
.demo-creds-title {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); font-family: var(--font-mono); margin-bottom: 8px;
}
.demo-row {
  display: flex; justify-content: space-between;
  font-size: 0.78rem; font-family: var(--font-mono);
  padding: 4px 0; color: var(--text-secondary);
}
.demo-row span:last-child { color: var(--cyan); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }
