/* Auth + Dashboard pages */
.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(45, 212, 191, 0.22), transparent 60%),
    radial-gradient(700px 360px at 100% 0%, rgba(14, 116, 144, 0.12), transparent 55%),
    linear-gradient(180deg, #ecfdf5 0%, #f8fafc 45%, #ffffff 100%);
}
.auth-shell {
  width: min(480px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: inherit;
}
.auth-brand strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
  max-width: 280px;
}
.auth-brand small {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}
.auth-brand.compact strong { font-size: 1rem; max-width: none; }
.auth-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}
.auth-card h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.9rem;
  margin: 0.2rem 0 0.4rem;
  letter-spacing: -0.02em;
}
.auth-lead { color: #64748b; margin-bottom: 1.1rem; }
.auth-form { display: grid; gap: 0.85rem; }
.auth-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
}
.auth-form input,
.auth-form select {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  outline: none;
  background: #fff;
}
.auth-form input:focus,
.auth-form select:focus {
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}
.auth-switch {
  margin-top: 0.9rem;
  color: #64748b;
  font-weight: 600;
  font-size: 0.95rem;
}
.auth-switch a { color: #0f766e; font-weight: 800; }
.alert {
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

/* Sign up role picker */
.role-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.35rem 0 1rem;
}
.role-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
  transition: .18s ease;
  min-height: 118px;
}
.role-card:hover {
  border-color: rgba(15, 118, 110, 0.35);
  background: #f0fdfa;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.role-card.active {
  border-color: rgba(15, 118, 110, 0.55);
  background: #ecfdf5;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}
.role-ico { font-size: 1.35rem; line-height: 1; }
.role-card strong {
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.role-card small {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}
.role-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.15rem 0 0.25rem;
}
.role-title-row h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.change-role {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f766e;
  text-decoration: none;
  white-space: nowrap;
}
.change-role:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .role-pick { grid-template-columns: 1fr; }
}

/* Smart dynamic Student | Guardian steps */
.signup-steps {
  margin: 0.2rem 0 1rem;
  position: relative;
}
.step-track {
  height: 4px;
  background: #e2e8f0;
  border-radius: 999px;
  margin: 0 18% 0.75rem;
  overflow: hidden;
}
.step-line {
  display: block;
  height: 100%;
  width: 50%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #0f766e 55%, #0284c7);
  transition: width .28s ease;
}
body.on-guardian-step .step-line { width: 100%; }
.detail-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.detail-tab {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #64748b;
  font: inherit;
  padding: 0.75rem 0.8rem;
  border-radius: 16px;
  cursor: pointer;
  transition: .18s ease;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}
.detail-tab .step-no {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  background: #f1f5f9;
  color: #64748b;
  flex-shrink: 0;
}
.detail-tab .step-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.detail-tab .step-copy strong {
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #334155;
  line-height: 1.15;
}
.detail-tab .step-copy small {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}
.detail-tab:hover {
  border-color: rgba(15, 118, 110, 0.28);
  transform: translateY(-1px);
}
.detail-tab.active {
  border-color: rgba(15, 118, 110, 0.45);
  background: linear-gradient(180deg, #f0fdfa, #ffffff);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
}
.detail-tab.active .step-no {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: #fff;
  box-shadow: 0 8px 16px rgba(15, 118, 110, 0.25);
}
.detail-tab.active .step-copy strong { color: #0f766e; }
.detail-tab.active .step-copy small { color: #0d9488; }
.detail-tab.done {
  border-color: rgba(15, 118, 110, 0.2);
  background: #f0fdfa;
}
.detail-tab.done .step-no {
  background: #ccfbf1;
  color: #0f766e;
}
.detail-tab.upcoming { opacity: 0.92; }
.tab-stage {
  position: relative;
  min-height: 120px;
}
.tab-panel {
  display: none;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(8px);
}
.tab-panel.active {
  display: grid;
  opacity: 1;
  transform: none;
}
.tab-panel.anim-in {
  animation: tabIn .28s ease;
}
@keyframes tabIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.tab-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: linear-gradient(135deg, #f0fdfa, #ecfeff);
  margin-bottom: 0.15rem;
}
.tab-banner.guardian {
  background: linear-gradient(135deg, #eef2ff, #f0fdfa);
  border-color: rgba(14, 116, 144, 0.14);
}
.tab-banner > span { font-size: 1.25rem; line-height: 1; }
.tab-banner strong {
  display: block;
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.tab-banner p {
  margin: 0.15rem 0 0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}
.tab-help {
  margin: 0 0 0.15rem;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}
.tab-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
@media (max-width: 560px) {
  .detail-tab { padding: 0.7rem 0.65rem; gap: 0.55rem; }
  .detail-tab .step-copy strong { font-size: 0.84rem; }
  .detail-tab .step-copy small { display: none; }
  .step-track { margin: 0 10% 0.7rem; }
  .tab-actions { grid-template-columns: 1fr; }
}
.form-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.7rem;
}
.form-3 label { margin: 0; }
@media (max-width: 640px) {
  .form-3 { grid-template-columns: 1fr; }
}
.alert.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.alert.ok {
  background: #ecfdf5;
  color: #0f766e;
  border: 1px solid #a7f3d0;
}

/* Dashboard */
.dash-body { background: #f8fafc; min-height: 100vh; }
.dash-top {
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(15,23,42,0.08);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}
.dash-top-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dash-actions { display: flex; gap: 0.5rem; }
.dash-main { padding: 2rem 0 3rem; }
.dash-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.2rem;
  align-items: start;
  margin-bottom: 1.25rem;
}
.dash-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0.2rem 0 0.45rem;
}
.card-soft {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}
.dash-profile p { color: #475569; margin: 0.35rem 0; }
.dash-profile h3 { margin-bottom: 0.55rem; }
.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.dash-grid h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.dash-grid p { color: #64748b; font-size: 0.95rem; }
.dash-note {
  margin-top: 1.4rem;
  color: #64748b;
  font-weight: 600;
}
@media (max-width: 900px) {
  .dash-hero, .dash-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .dash-hero, .dash-grid { grid-template-columns: 1fr; }
  .dash-top-inner { flex-wrap: wrap; padding: 0.75rem 0; }
}
