/* ── Variables NurseAI ─────────────────────────────────────── */
:root {
  --bg:         #F8F9FC;
  --surface:    #FFFFFF;
  --deep:       #0F172A;
  --blue:       #1E6FD9;
  --blue-light: #EFF6FF;
  --blue-mid:   #BFDBFE;
  --green:      #059669;
  --red:        #DC2626;
  --amber:      #D97706;
  --gold:       #F59E0B;
  --text:       #0F172A;
  --muted:      #94A3B8;
  --border:     #E2E8F0;
  --shadow:     0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.07), 0 10px 40px rgba(0,0,0,0.08);
  --radius:     12px;
  --radius-sm:  8px;

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans:  'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Courier New', monospace;
}

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

body {
  font-family: var(--font-sans);
  background:  var(--bg);
  color:       var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Auth Layout ───────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

.auth-panel--left {
  background: var(--deep);
  color: white;
  position: relative;
  overflow: hidden;
}

.auth-panel--left::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(30,111,217,0.3) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
}

.auth-panel--left::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(30,111,217,0.2) 0%, transparent 70%);
  bottom: -50px; left: -50px;
  border-radius: 50%;
}

.auth-brand {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 380px;
}

.auth-brand__logo {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: white;
  margin-bottom: 0.5rem;
}

.auth-brand__tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.auth-features {
  list-style: none;
  text-align: left;
  width: 100%;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.auth-features li:last-child { border-bottom: none; }

.auth-features__icon {
  width: 32px; height: 32px;
  background: rgba(30,111,217,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ── Auth Form Panel ───────────────────────────────────────── */
.auth-panel--right {
  background: var(--bg);
  padding: 3rem;
}

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

.auth-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--deep);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ── Form Elements ─────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,111,217,0.1);
}

.form-error {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 0.35rem;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--blue);
  color: white;
  width: 100%;
}

.btn--primary:hover { background: #1558b8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,111,217,0.3); }

.btn--ghost {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn--ghost:hover { background: var(--blue-light); }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* ── Auth Link ─────────────────────────────────────────────── */
.auth-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-link a { color: var(--blue); font-weight: 600; text-decoration: none; }
.auth-link a:hover { text-decoration: underline; }

/* ── Onboarding ────────────────────────────────────────────── */
.onboarding-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.onboarding-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 3rem;
  width: 100%;
  max-width: 540px;
}

.onboarding-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  align-items: center;
}

.onboarding-step-dot {
  height: 6px;
  flex: 1;
  border-radius: 3px;
  background: var(--border);
  transition: background 0.3s;
}

.onboarding-step-dot.active  { background: var(--blue); }
.onboarding-step-dot.done    { background: var(--green); }

.onboarding-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.onboarding-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--deep);
  margin-bottom: 0.5rem;
}

.onboarding-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* ── Exam Radio Cards ──────────────────────────────────────── */
.exam-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.exam-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.exam-option:hover { border-color: var(--blue); background: var(--blue-light); }
.exam-option.selected { border-color: var(--blue); background: var(--blue-light); }

.exam-option input[type="radio"] { display: none; }

.exam-option__icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.exam-option__info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--deep);
}

.exam-option__info span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Messages Django ───────────────────────────────────────── */
.messages { padding: 0 0 1rem 0; }
.message  { padding: 0.75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 0.5rem; font-size: 0.9rem; }
.message--error   { background: #FEF2F2; color: var(--red);   border: 1px solid #FCA5A5; }
.message--success { background: #ECFDF5; color: var(--green); border: 1px solid #A7F3D0; }
.message--info    { background: var(--blue-light); color: var(--blue); border: 1px solid var(--blue-mid); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-panel--left { display: none; }
  .auth-panel--right { padding: 2rem 1.5rem; }
}
