/* ─────────────────────────────────────────────
   Wakandi Investor Room — styles.css
   Wakandi Brand Design System
───────────────────────────────────────────── */

:root {
  /* PRIMARY — teal family */
  --teal:               #057573;
  --teal-dark:          #045e5c;
  --teal-light:         #178482;
  --teal-gradient-end:  #41b2b0;

  /* SECONDARY */
  --yellow:             #e6c120;
  --yellow-light:       #f1d131;
  --terracotta:         #c75a43;
  --terracotta-light:   #ef7357;
  --navy:               #364856;
  --navy-dark:          #1f2e3a;

  /* NEUTRALS */
  --cream:              #fbf6f6;
  --cream-dark:         #f0e9e9;
  --gray-light:         #eaeaea;
  --charcoal:           #1a1a1a;
  --body-text:          #3a3a3a;
  --muted:              #6b6b6b;

  /* TYPE */
  --display: "Raleway", sans-serif;
  --body:    "Roboto", sans-serif;

  /* APP SHELL */
  --sidebar-width:           240px;
  --mobile-topbar-height:    56px;
  --sidebar-bg:              #ffffff;
  --active-tint:             rgba(5, 117, 115, 0.055);
  --card-bg:                 #ffffff;
  --transition:              0.18s ease;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--body-text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; }

/* ─────────────────────────────────────────────
   APP SHELL
───────────────────────────────────────────── */
#app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ─────────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--gray-light);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  z-index: 10;
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo block */
.sidebar-logo {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo-symbol {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 16px;
  color: var(--teal-dark);
  letter-spacing: 0.07em;
  line-height: 1;
}

.logo-sub {
  font-family: var(--body);
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-top: 4px;
  opacity: 0.8;
}

/* Nav */
.sidebar-nav {
  padding: 20px 0;
  flex: 1;
  overflow-y: auto;
}

.nav-label {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 0 20px 12px;
  opacity: 0.6;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-left: 3px solid transparent;
  text-align: left;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  outline: none;
}

.nav-item:hover {
  background: var(--active-tint);
  color: var(--navy);
}

.nav-item:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.nav-item.active {
  color: var(--navy);
  font-weight: 700;
  background: var(--active-tint);
  border-left-color: var(--teal);
}

.nav-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.nav-item.active .nav-num {
  background: var(--teal);
  color: #ffffff;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--gray-light);
  font-family: var(--body);
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

/* Drawer close (mobile only) */
#drawer-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
}

#drawer-close:hover { color: var(--navy); }
#drawer-close:focus-visible { outline: 2px solid var(--teal); }

/* ─────────────────────────────────────────────
   MAIN CONTENT AREA
───────────────────────────────────────────── */
#main {
  flex: 1;
  overflow-y: auto;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ─────────────────────────────────────────────
   MOBILE TOPBAR
───────────────────────────────────────────── */
#mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--gray-light);
  height: var(--mobile-topbar-height);
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 0 1px 0 var(--gray-light);
}

.mobile-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 15px;
  color: var(--teal-dark);
  letter-spacing: 0.06em;
}

.mobile-logo-wrap img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

#hamburger {
  background: none;
  border: none;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4.5px;
  border-radius: 6px;
}

#hamburger:focus-visible { outline: 2px solid var(--teal); }

.ham-line {
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  display: block;
  transition: all 0.2s;
}

.ham-line:nth-child(2) { width: 14px; }

/* ─────────────────────────────────────────────
   DRAWER BACKDROP
───────────────────────────────────────────── */
#drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 46, 58, 0.45);
  z-index: 9;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

body.drawer-open #drawer-backdrop { display: block; }
body.drawer-open #sidebar { transform: translateX(0); }

/* ─────────────────────────────────────────────
   VIEWS (data-view)
───────────────────────────────────────────── */
[data-view] {
  flex: 1;
  display: flex;
  flex-direction: column;
}

[data-view][hidden] { display: none; }

[data-view]:not([hidden]) {
  animation: viewFadeIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────
   WELCOME VIEW
───────────────────────────────────────────── */
#view-welcome {
  align-items: center;
  justify-content: center;
  padding: 52px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#view-welcome::before {
  content: "";
  position: absolute;
  top: -240px; right: -240px;
  width: 680px; height: 680px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 65%);
  opacity: 0.05;
  filter: blur(60px);
  pointer-events: none;
}

#view-welcome::after {
  content: "";
  position: absolute;
  bottom: -120px; left: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 65%);
  opacity: 0.04;
  filter: blur(60px);
  pointer-events: none;
}

.welcome-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(5, 117, 115, 0.07);
  border: 1px solid rgba(5, 117, 115, 0.18);
  padding: 6px 16px 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.welcome-eyebrow::before {
  content: "✦";
  font-size: 0.65rem;
}

.welcome-title {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 6px;
}

.welcome-divider {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-light));
  border-radius: 2px;
  margin: 20px auto 22px;
}

.welcome-subtitle {
  position: relative;
  z-index: 1;
  font-family: var(--body);
  font-size: 17px;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.75;
  margin-bottom: 40px;
  font-weight: 300;
}

.welcome-cards {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 620px;
}

.welcome-card {
  background: var(--card-bg);
  border: 1px solid var(--gray-light);
  border-bottom: 3px solid var(--gray-light);
  border-radius: 10px;
  padding: 20px 20px 18px;
  width: 136px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-bottom-color 0.2s ease;
  outline: none;
}

.welcome-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(5, 117, 115, 0.12);
  border-bottom-color: var(--teal);
}

.welcome-card:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.welcome-card-num {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.welcome-card-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.welcome-card-line {
  width: 22px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-light));
  border-radius: 2px;
  margin-top: 12px;
}

/* ─────────────────────────────────────────────
   PAGE HEADER (content views)
───────────────────────────────────────────── */
.page-header {
  padding: 28px 36px 24px;
  border-bottom: 1px solid var(--gray-light);
  background: var(--sidebar-bg);
  position: sticky;
  top: 0;
  z-index: 5;
  flex-shrink: 0;
}

/* Pill navigation */
.pill-nav {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pill {
  height: 28px;
  padding: 0 14px;
  border-radius: 14px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: var(--cream-dark);
  color: var(--muted);
  border: 1px solid var(--gray-light);
  transition: all var(--transition);
  outline: none;
}

.pill:hover { background: var(--gray-light); color: var(--navy); }
.pill:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.pill.active {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
}

.page-title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.title-accent {
  width: 38px;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-light));
  border-radius: 2px;
  margin-top: 12px;
}

/* ─────────────────────────────────────────────
   PAGE BODY
───────────────────────────────────────────── */
.page-body {
  padding: 28px 36px 48px;
  flex: 1;
}

/* Section label */
.section-label {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-light);
  max-width: 100%;
}

/* ─────────────────────────────────────────────
   STAT CARDS
───────────────────────────────────────────── */
.stat-row {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  flex: 1;
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--gray-light);
  padding: 18px 20px;
  transition: box-shadow 0.2s;
}

.stat-card:hover { box-shadow: 0 4px 18px rgba(5, 117, 115, 0.08); }

.stat-label {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 7px;
}

.stat-value {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-sub {
  font-family: var(--body);
  font-size: 13px;
  color: var(--muted);
}

/* ─────────────────────────────────────────────
   TEXT BLOCK
───────────────────────────────────────────── */
.text-block {
  background: var(--card-bg);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 24px;
}

.text-block p {
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--body-text);
  margin-bottom: 14px;
}

.text-block p:last-child { margin-bottom: 0; }

.placeholder-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--cream-dark);
  border: 1px dashed var(--gray-light);
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

/* ─────────────────────────────────────────────
   TIMELINE
───────────────────────────────────────────── */
.timeline {
  background: var(--card-bg);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  padding: 18px 22px;
  gap: 18px;
  border-bottom: 1px solid var(--cream);
  transition: background 0.15s;
}

.timeline-item:last-child { border-bottom: none; }
.timeline-item:hover { background: var(--active-tint); }

.timeline-year {
  background: var(--teal-dark);
  color: var(--yellow);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.timeline-body { flex: 1; }

.timeline-heading {
  font-family: var(--display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
}

.timeline-text {
  font-family: var(--body);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   PROBLEM ITEMS
───────────────────────────────────────────── */
.problem-list { margin-bottom: 24px; }

.problem-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--gray-light);
  align-items: start;
}

.problem-item:last-child { border-bottom: 1px solid var(--gray-light); }

.problem-number {
  font-family: var(--display);
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1;
}

.problem-item:nth-child(1) .problem-number { color: var(--teal); }
.problem-item:nth-child(2) .problem-number { color: var(--terracotta); }
.problem-item:nth-child(3) .problem-number { color: var(--yellow); }

.problem-content h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 9px;
}

.problem-content p {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.72;
}

/* ─────────────────────────────────────────────
   SOLUTION CARDS
───────────────────────────────────────────── */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.solution-card {
  background: var(--card-bg);
  border: 1px solid var(--gray-light);
  border-top: 3px solid var(--teal);
  border-radius: 10px;
  padding: 22px 22px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.solution-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(5, 117, 115, 0.1);
}

.solution-icon {
  width: 42px;
  height: 42px;
  background: rgba(5, 117, 115, 0.08);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.solution-card h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 9px;
}

.solution-card p {
  font-family: var(--body);
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.68;
}

/* ─────────────────────────────────────────────
   REVENUE ITEMS
───────────────────────────────────────────── */
.revenue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.revenue-item {
  background: var(--card-bg);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: background 0.15s, box-shadow 0.2s;
}

.revenue-item:hover {
  background: var(--active-tint);
  box-shadow: 0 2px 12px rgba(5, 117, 115, 0.06);
}

.revenue-icon {
  width: 40px;
  height: 40px;
  background: rgba(230, 193, 32, 0.12);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.revenue-content h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}

.revenue-content p {
  font-family: var(--body);
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.68;
}

/* ─────────────────────────────────────────────
   RESPONSIVE — MOBILE
───────────────────────────────────────────── */
@media (max-width: 900px) {

  #sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 280px;
    transform: translateX(-100%);
    z-index: 10;
    box-shadow: 4px 0 28px rgba(31, 46, 58, 0.18);
  }

  #drawer-close { display: block; }
  #mobile-topbar { display: flex; }

  /* Welcome */
  #view-welcome { padding: 36px 24px 48px; }
  .welcome-cards { gap: 10px; }
  .welcome-card { width: calc(50% - 5px); min-width: 130px; }

  /* Content pages */
  .page-header {
    padding: 18px 20px 16px;
    position: static;
  }

  .page-body { padding: 20px 20px 40px; }

  .stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card:nth-child(3) {
    grid-column: span 2;
  }

  .problem-item {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }

  .problem-number { font-size: 3.2rem; }
  .solution-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .welcome-card { width: 100%; }
  .welcome-cards { flex-direction: column; align-items: stretch; max-width: 300px; }
  .stat-card:nth-child(3) { grid-column: span 1; }
  .stat-row { grid-template-columns: 1fr; }
  .pill-nav { gap: 5px; }
  .pill { font-size: 10px; height: 26px; padding: 0 11px; }
}

/* ─────────────────────────────────────────────
   LOGIN OVERLAY
───────────────────────────────────────────── */
#view-login {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

#view-login[hidden] { display: none; }

/* Ambient glow — mirrors welcome view */
#view-login::before {
  content: "";
  position: fixed;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 65%);
  opacity: 0.06;
  filter: blur(60px);
  pointer-events: none;
}

#view-login::after {
  content: "";
  position: fixed;
  bottom: -150px; left: -150px;
  width: 450px; height: 450px;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 65%);
  opacity: 0.05;
  filter: blur(60px);
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  border: 1px solid var(--gray-light);
  border-radius: 16px;
  padding: 40px 44px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(31, 46, 58, 0.10), 0 4px 16px rgba(31, 46, 58, 0.06);
  animation: viewFadeIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Login logo block ── */
.login-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--gray-light);
}

.login-logo-symbol {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.login-wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 16px;
  color: var(--teal-dark);
  letter-spacing: 0.07em;
  line-height: 1;
}

.login-sub {
  font-family: var(--body);
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-top: 4px;
  opacity: 0.8;
}

/* ── Form state ── */
.login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(5, 117, 115, 0.07);
  border: 1px solid rgba(5, 117, 115, 0.15);
  padding: 5px 13px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.login-title {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 10px;
}

.login-body {
  font-family: var(--body);
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 22px;
  font-weight: 300;
}

.login-input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  font-family: var(--body);
  font-size: 15.5px;
  color: var(--navy);
  background: var(--cream);
  border: 1.5px solid var(--gray-light);
  border-radius: 9px;
  outline: none;
  display: block;
  margin-bottom: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.login-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(5, 117, 115, 0.1);
}

.login-input::placeholder { color: var(--muted); opacity: 0.6; }

.login-btn {
  width: 100%;
  height: 46px;
  background: var(--teal);
  color: #ffffff;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform 0.12s;
}

.login-btn:hover:not(:disabled) { background: var(--teal-dark); }
.login-btn:active:not(:disabled) { transform: scale(0.985); }
.login-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.login-error {
  margin-top: 10px;
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--terracotta);
  padding: 8px 12px;
  background: rgba(199, 90, 67, 0.07);
  border: 1px solid rgba(199, 90, 67, 0.2);
  border-radius: 7px;
}

/* ── Sent state ── */
.login-sent-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 14px;
}

.login-sent-title {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.login-sent-body {
  font-family: var(--body);
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 22px;
  font-weight: 300;
}

.login-sent-body strong {
  color: var(--navy);
  font-weight: 500;
}

.login-resend {
  background: none;
  border: none;
  color: var(--teal);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-resend:hover { color: var(--teal-dark); }

/* ── Sidebar footer (with user + logout) ── */
.sidebar-user-email {
  font-family: var(--body);
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 5px;
  opacity: 0.75;
}

.sidebar-logout {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.65;
  transition: color var(--transition), opacity var(--transition);
  margin-bottom: 8px;
}

.sidebar-logout:hover { color: var(--navy); opacity: 1; }
.sidebar-logout:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.sidebar-copyright {
  font-family: var(--body);
  font-size: 11px;
  color: var(--muted);
  opacity: 0.45;
}

/* ── Login mobile ── */
@media (max-width: 520px) {
  .login-card {
    padding: 28px 24px 32px;
    border-radius: 12px;
  }

  .login-title { font-size: 1.7rem; }
}
