/* ================================ */
/* MolMin — Auth Pages     */
/* Requires: base.css               */
/* ================================ */

/* ========== Background ========== */
.auth-bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
}

.auth-orb {
  position: absolute; border-radius: 50%; filter: blur(100px);
  opacity: var(--orb-opacity); animation: orbFloat 20s ease-in-out infinite alternate;
}
.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%); top: -15%; left: -10%; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%); bottom: -10%; right: -8%; animation-delay: -7s; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(167,139,250,0.2), transparent 70%); top: 50%; left: 60%; animation-delay: -14s; }

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.05); }
  66%  { transform: translate(-20px, 15px) scale(0.95); }
  100% { transform: translate(10px, -10px) scale(1.02); }
}

.auth-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ========== Fixed top nav ========== */
.auth-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.auth-nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.1rem;
  color: var(--text-primary); text-decoration: none;
}

.auth-nav-tabs {
  display: flex; gap: 0.5rem;
}

.auth-nav-card {
  display: inline-block;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0.5rem 0.8rem;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-nav-card:hover {
  color: var(--text-primary);
}

.auth-nav-card.active {
  color: var(--accent);
  font-weight: 600;
}

.auth-nav-card.signed-in {
  background: rgba(99, 102, 241, 0.25);
  color: var(--text-primary);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.auth-nav-card.signed-in:hover {
  color: var(--text-primary);
}

/* ========== Page content area ========== */
.auth-page-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding-top: var(--nav-h);
  padding-bottom: 3rem;
}

.auth-page-center {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ======================================================== */
/* About Section — original styles from style.css           */
/* ======================================================== */
.about {
  position: relative;
  padding: 0 2rem 5rem;
}

.about-container { max-width: 1100px; margin: 0 auto; }

.about-header { text-align: center; margin-bottom: 3.5rem; }

.about-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); margin-bottom: 1rem;
}

.about-title {
  font-size: 2.8rem; font-weight: 800; line-height: 1.15;
  margin-bottom: 1.2rem; letter-spacing: -0.01em;
}

/* .about-title .accent — see base.css */

.about-subtitle {
  font-size: 1.1rem; line-height: 1.7; color: var(--text-secondary);
  max-width: 640px; margin: 0 auto;
}

.about-cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem; margin-bottom: 3.5rem;
}

.about-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem 1.5rem;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}

.about-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0; transition: opacity 0.3s;
}

.about-card:hover {
  border-color: rgba(99,102,241,0.3); transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.1);
}
.about-card:hover::before { opacity: 1; }

.about-card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(99,102,241,0.08); color: var(--accent); margin-bottom: 1.2rem;
}

.about-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--text-primary); }
.about-card p { font-size: 0.9rem; line-height: 1.6; color: var(--text-secondary); }

.about-mission {
  position: relative; margin-bottom: 3.5rem; border-radius: var(--radius); overflow: hidden;
}

.about-mission-glow {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--card-glow-1), var(--card-glow-2), var(--card-glow-3));
  border: 1px solid var(--card-glow-border); border-radius: var(--radius);
}

.about-mission-content {
  position: relative; display: flex; align-items: center; gap: 2rem; padding: 2.5rem 3rem;
}

.about-mission-icon { width: 56px; height: 56px; flex-shrink: 0; }

.about-mission blockquote {
  font-size: 1.15rem; line-height: 1.75; color: var(--text-secondary);
  font-style: italic; margin: 0; border: none; padding: 0;
}

.about-numbers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}

.about-number {
  text-align: center; padding: 1.5rem 1rem;
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius);
}

.about-number-val {
  font-size: 2rem; font-weight: 800; font-family: var(--mono);
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.3rem;
}

.about-number-label {
  font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em;
}

/* ======================================================== */
/* About sub-tabs (About | People)                           */
/* ======================================================== */
.about-subtabs {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 3rem;
  border: none;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.about-subtab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: none;
  border: none;
  padding: 0.65rem 1.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
  border-radius: 999px;
}

.about-subtab svg {
  display: none;
}

.about-subtab.active { color: #111; }
.about-subtab:hover:not(.active) { color: rgba(255, 255, 255, 0.85); }

.about-subtab-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background: #ffffff;
  border-radius: 999px;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Tab panels */
.about-tab-panel {
  display: none;
  animation: aboutTabFadeIn 0.35s ease-out;
}

.about-tab-panel.active {
  display: block;
}

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


/* ======================================================== */
/* People section (inside People tab)                        */
/* ======================================================== */
.people-category {
  margin-bottom: 2.5rem;
}

.people-category-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.2rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.people-category-title svg {
  opacity: 0.7;
  flex-shrink: 0;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.2rem;
}

.vision-content {
  text-align: center;
  padding: 0.5rem 1rem;
}

.vision-statement {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.person-card {
  position: relative;
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
  overflow: hidden;
}

.person-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(99,102,241,0.06), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.person-card:hover {
  border-color: rgba(99,102,241,0.35);
  box-shadow: 0 6px 32px rgba(99,102,241,0.08);
  transform: translateY(-2px);
}

.person-card:hover::before { opacity: 1; }

.person-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.person-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--border);
  transition: border-color 0.3s;
}

.person-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(from 180deg, var(--accent), var(--purple), rgba(167,139,250,0.5), transparent 60%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
}

.person-card:hover .person-avatar {
  border-color: rgba(99,102,241,0.3);
}

.person-card:hover .person-avatar-ring {
  opacity: 1;
}

.person-info {
  flex: 1;
  min-width: 0;
}

.person-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.person-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.person-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.person-affiliation {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
}

.person-affiliation svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.person-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.person-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(99,102,241,0.08);
  color: rgba(167,139,250,0.85);
  border: 1px solid rgba(99,102,241,0.12);
  white-space: nowrap;
}

.person-link-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(99,102,241,0.06);
  color: var(--text-muted);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.25s, transform 0.25s, color 0.25s;
}

.person-card:hover .person-link-icon {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--accent);
}


/* ======================================================== */
/* Terms of Use section                                      */
/* ======================================================== */
.terms-layout {
  display: flex;
  gap: 2rem;
  max-height: 70vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Sidebar TOC — sticky within flex layout */
.terms-toc {
  position: sticky;
  top: 0;
  flex-shrink: 0;
  align-self: flex-start;
  min-width: 240px;
  padding: 1.75rem 1.25rem;
}

.terms-toc-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

/* Reading progress bar under the TOC label */
.terms-toc-progress {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.terms-toc-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.terms-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.terms-toc-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.terms-toc-link:hover {
  background: rgba(99,102,241,0.08);
}

.terms-toc-link.active {
  color: #fff;
  background: var(--accent);
  font-weight: 600;
}

.terms-toc-link.active:hover {
  background: var(--accent-hover);
}

/* Content body — scrollable */
.terms-body {
  padding: 2rem 2.5rem;
  border-left: 1px solid var(--border);
  overflow-y: auto;
  max-height: 70vh;
  position: relative;
  scroll-behavior: smooth;
}

.terms-section {
  margin-bottom: 2.25rem;
  scroll-margin-top: 1rem;
}

.terms-section:last-child {
  margin-bottom: 0;
}

.terms-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.terms-section p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.terms-section p:last-child {
  margin-bottom: 0;
}

.terms-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed var(--accent);
  transition: opacity 0.15s;
}

.terms-link:hover {
  opacity: 0.75;
}

/* Responsive: stack on mobile */
@media (max-width: 700px) {
  .terms-layout {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .terms-toc {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem;
  }
  .terms-body {
    border-left: none;
    padding: 1.5rem;
    overflow-y: visible;
    max-height: none;
  }
}


/* ======================================================== */
/* Login page                                                */
/* ======================================================== */
.auth-mol-decor {
  position: fixed; top: 50%; left: 50%; width: 600px; height: 600px;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 1; opacity: 0.6;
}
.auth-mol-decor svg { width: 100%; height: 100%; animation: spin 60s linear infinite; }

/* @keyframes molSpin — using shared spin from base.css */

.mol-dot { animation: molPulse 4s ease-in-out infinite alternate; }
.mol-dot:nth-child(odd) { animation-delay: -2s; }
@keyframes molPulse { 0% { opacity: 0.5; } 100% { opacity: 1; } }

.auth-container {
  position: relative; z-index: 10; display: flex; flex-direction: column;
  align-items: center; width: 100%; max-width: 420px; padding: 2rem 1.5rem;
}

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

.auth-brand {
  display: flex; align-items: center; gap: 0.7rem; margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}
.auth-logo { width: 40px; height: 40px; filter: drop-shadow(0 0 12px rgba(99,102,241,0.4)); }
.auth-brand-name {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em;
  background: linear-gradient(135deg, #e8eaf0 0%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.auth-card {
  position: relative; width: 100%;
  background: rgba(22, 24, 34, 0.75);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(45, 49, 84, 0.6);
  border-radius: var(--radius-lg); padding: 2rem;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.auth-card-glow {
  position: absolute; inset: -1px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.06), rgba(167,139,250,0.1));
  z-index: -1; pointer-events: none;
}

/* Tabs */
.auth-tabs {
  position: relative; display: flex; background: var(--bg-tertiary);
  border-radius: var(--radius); padding: 4px; margin-bottom: 1.75rem;
  border: 1px solid var(--border);
}

.auth-tab {
  flex: 1; background: none; border: none; padding: 0.6rem 0;
  font-family: var(--font); font-size: 0.88rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; position: relative; z-index: 2;
  transition: color 0.3s ease; border-radius: var(--radius-sm);
}
.auth-tab.active { color: var(--text-primary); }
.auth-tab:hover:not(.active) { color: var(--text-secondary); }

.auth-tab-indicator {
  position: absolute; top: 4px; left: 4px;
  width: calc(50% - 4px); height: calc(100% - 8px);
  background: var(--surface); border-radius: var(--radius-sm);
  z-index: 1; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.auth-tab-indicator.right { transform: translateX(100%); }

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.auth-form.hidden { display: none; }

.auth-field-row {
  display: flex; gap: 0.75rem;
}
.auth-field-row > .auth-field { flex: 1; min-width: 0; }

.auth-field label {
  display: block; font-size: 0.78rem; font-weight: 500;
  color: var(--text-secondary); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.4rem;
}

.auth-input-wrap { position: relative; display: flex; align-items: center; }

.auth-input-icon {
  position: absolute; left: 0.85rem; color: var(--text-muted);
  pointer-events: none; transition: color 0.2s; flex-shrink: 0;
}
.auth-input-wrap:focus-within .auth-input-icon { color: var(--accent); }

.auth-input-wrap input {
  width: 100%; background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font); font-size: 0.92rem;
  padding: 0.72rem 0.9rem 0.72rem 2.65rem; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input-wrap input::placeholder { color: var(--text-muted); }
.auth-input-wrap input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--accent-glow); }

.auth-toggle-pw {
  position: absolute; right: 0.6rem; background: none; border: none;
  color: var(--text-muted); cursor: pointer; padding: 0.2rem;
  display: flex; transition: color 0.2s;
}
.auth-toggle-pw:hover { color: var(--text-secondary); }

/* Password strength */
.auth-pw-strength {
  display: flex; align-items: center; gap: 0.6rem; margin-top: 0.45rem;
  opacity: 0; height: 0; overflow: hidden; transition: opacity 0.3s, height 0.3s;
}
.auth-pw-strength.visible { opacity: 1; height: 16px; }

.auth-pw-bar { flex: 1; height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; }
.auth-pw-fill { height: 100%; width: 0; border-radius: 3px; transition: width 0.35s ease, background 0.35s ease; }
.auth-pw-fill.weak   { width: 25%;  background: var(--red); }
.auth-pw-fill.fair    { width: 50%;  background: var(--amber); }
.auth-pw-fill.good    { width: 75%;  background: #6366f1; }
.auth-pw-fill.strong  { width: 100%; background: var(--green); }

.auth-pw-label { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; min-width: 48px; text-align: right; }
.auth-pw-label.weak   { color: var(--red); }
.auth-pw-label.fair    { color: var(--amber); }
.auth-pw-label.good    { color: #6366f1; }
.auth-pw-label.strong  { color: var(--green); }

/* Terms checkbox */
.auth-terms-check {
  margin-top: 0.25rem;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
  display: none;
}

.auth-checkbox-box {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: transparent;
}

.auth-checkbox-box svg {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
  color: #fff;
}

.auth-checkbox-label input:checked + .auth-checkbox-box {
  background: var(--accent);
  border-color: var(--accent);
}

.auth-checkbox-label input:checked + .auth-checkbox-box svg {
  opacity: 1;
  transform: scale(1);
}

.auth-checkbox-label:hover .auth-checkbox-box {
  border-color: var(--accent);
}

.auth-checkbox-label a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s;
}

.auth-checkbox-label a:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* Submit */
.auth-submit {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 0.78rem 1.5rem; font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.25s ease; position: relative; overflow: hidden;
  box-shadow: 0 0 20px rgba(99,102,241,0.2), 0 2px 8px rgba(0,0,0,0.2);
}
.auth-submit::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.08));
  opacity: 0; transition: opacity 0.25s;
}
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(99,102,241,0.35), 0 6px 16px rgba(0,0,0,0.3); }
.auth-submit:hover::before { opacity: 1; }
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-submit.loading span { opacity: 0; }
.auth-submit.loading::after {
  content: ''; position: absolute; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
/* @keyframes authSpin — using shared spin from base.css */
.auth-submit.success { background: var(--green); box-shadow: 0 0 20px rgba(34,197,94,0.25); }

/* ========== Footer (shared) ========== */
.auth-footer { margin-top: 1.75rem; text-align: center; }
.auth-footer a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.auth-footer a:hover { color: var(--accent); }

/* Visitor badge & footer-sep — see base.css */

/* ========== Toast ========== */
.auth-toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.8rem 1.4rem;
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem;
  box-shadow: var(--dropdown-shadow); z-index: 1000;
  opacity: 0; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  pointer-events: none; white-space: nowrap;
}
.auth-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.auth-toast.error { border-color: rgba(239,68,68,0.3); }
.auth-toast.success { border-color: rgba(34,197,94,0.3); }

.auth-toast-icon {
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.auth-toast.error .auth-toast-icon { background: rgba(239,68,68,0.15); color: var(--red); }
.auth-toast.error .auth-toast-icon::after { content: '\2715'; font-size: 0.65rem; font-weight: 700; }
.auth-toast.success .auth-toast-icon { background: rgba(34,197,94,0.15); color: var(--green); }
.auth-toast.success .auth-toast-icon::after { content: '\2713'; font-size: 0.7rem; font-weight: 700; }



/* ========== Responsive ========== */
@media (max-width: 768px) {
  .about-title { font-size: 2rem; }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .about-numbers { grid-template-columns: 1fr 1fr; }
  .about-mission-content { flex-direction: column; padding: 1.5rem; gap: 1rem; }
  .auth-nav { padding: 0 1rem; }
  .auth-nav-card { padding: 0.5rem 0.75rem; }

  .people-grid { grid-template-columns: 1fr; }
  .about-subtabs { max-width: 320px; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .about-title { font-size: 1.6rem; }
  .about-cards { grid-template-columns: 1fr; }
  .about-numbers { grid-template-columns: 1fr 1fr; }
  .about { padding: 0 1rem 3rem; }
  .about-header { margin-bottom: 2rem; }
  .about-mission-content { padding: 1.2rem; }

  .auth-container { padding: 1.5rem 1rem; max-width: 100%; }
  .auth-card { padding: 1.5rem; border-radius: var(--radius); }
  .auth-field-row { flex-direction: column; gap: 0; }
  .auth-brand-name { font-size: 1.15rem; }
  .auth-mol-decor { width: 400px; height: 400px; }

  .person-card { padding: 1.2rem; gap: 1rem; }
  .person-avatar-wrap { width: 64px; height: 64px; }
  .person-avatar { width: 64px; height: 64px; }
  .person-name { font-size: 1rem; }
  .about-subtabs { max-width: 100%; margin-bottom: 2rem; padding: 4px; }
}

/* ========== Light Mode — Apple Design Language ========== */
[data-theme="light"] .auth-nav {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .auth-orb.orb-1 {
  background: radial-gradient(circle, rgba(0, 122, 255, 0.04), transparent 70%);
}
[data-theme="light"] .auth-orb.orb-2 {
  background: radial-gradient(circle, rgba(88, 86, 214, 0.035), transparent 70%);
}
[data-theme="light"] .auth-orb.orb-3 {
  background: radial-gradient(circle, rgba(175, 82, 222, 0.03), transparent 70%);
}

[data-theme="light"] .auth-nav-card.active {
  color: var(--accent);
}

[data-theme="light"] .auth-nav-card.signed-in {
  background: rgba(0, 122, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(0, 122, 255, 0.15);
}

[data-theme="light"] .auth-nav-card.signed-in:hover {
  color: var(--text-primary);
}

[data-theme="light"] .auth-submit {
  background: linear-gradient(180deg, #007aff 0%, #0056b3 100%);
  box-shadow: 0 1px 4px rgba(0, 122, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .auth-submit:hover {
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .auth-submit.success {
  box-shadow: 0 1px 8px rgba(52, 199, 89, 0.2);
}

[data-theme="light"] .auth-toast {
  box-shadow: var(--dropdown-shadow);
}

[data-theme="light"] .about-card:hover {
  border-color: rgba(0, 122, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .about-card::before {
  background: linear-gradient(90deg, #007aff, #5856d6);
}

[data-theme="light"] .about-card-icon {
  background: rgba(0, 122, 255, 0.06);
  color: #007aff;
}

[data-theme="light"] .about-number-val {
  background: linear-gradient(135deg, #007aff, #5856d6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .auth-mol-decor .mol-dot {
  opacity: 0.3;
}

[data-theme="light"] .auth-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .auth-card-glow {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.015), rgba(88, 86, 214, 0.008), rgba(175, 82, 222, 0.015));
}

[data-theme="light"] .about-subtabs {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .about-subtab {
  color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .about-subtab.active {
  color: #1d1d1f;
}

[data-theme="light"] .about-subtab:hover:not(.active) {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .about-subtab-indicator {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .person-card::before {
  background: radial-gradient(ellipse at top left, rgba(0, 122, 255, 0.02), transparent 65%);
}

[data-theme="light"] .person-card:hover {
  border-color: rgba(0, 122, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .person-card:hover .person-avatar {
  border-color: rgba(0, 122, 255, 0.25);
}

[data-theme="light"] .person-avatar-ring {
  background: conic-gradient(from 180deg, #007aff, #5856d6, rgba(175, 82, 222, 0.4), transparent 60%) border-box;
}

[data-theme="light"] .people-category-title {
  color: var(--accent);
}

[data-theme="light"] .auth-mol-decor svg line {
  stroke: rgba(0, 122, 255, 0.06) !important;
}

[data-theme="light"] .auth-mol-decor svg circle {
  fill: rgba(0, 122, 255, 0.06) !important;
}

[data-theme="light"] .auth-nav-card:hover {
  color: var(--text-primary);
}

[data-theme="light"] .auth-logo {
  filter: drop-shadow(0 0 8px rgba(0, 122, 255, 0.2));
}

/* Password strength colors */
[data-theme="light"] .auth-pw-fill.good { background: #007aff; }
[data-theme="light"] .auth-pw-label.good { color: #007aff; }

[data-theme="light"] .person-link-icon {
  color: var(--accent);
}

/* Terms TOC */
[data-theme="light"] .terms-toc-progress-fill {
  background: linear-gradient(90deg, #007aff, #5856d6);
}
