/* ==========================================================================
   1. ROOT VARIABLES: THEME COLORS & EFFECTS
   ========================================================================== */
:root {
  /* Brand palette */
  --primary: #1A5276;
  --primary-light: #2980B9;
  --secondary: #85C1E9;
  --accent: #F7DC6F;

  /* Surfaces and backgrounds */
  --surface: #F7FAFC;
  --background: #F7FAFC;
  --surface-glass: rgba(133, 193, 233, 0.14);

  /* Borders & shadow */
  --border: #85C1E9;
  --shadow-main: 0 8px 32px 0 #1a527625;

  /* Text colors */
  --text-main: #1A5276;
  --text-body: #1A5276;
  --text-muted: #2980B9;

  /* Blur effects */
  --header-footer-blur: blur(12px);
  --card-blur: blur(15px);
}

body.dark {
  --primary: #F7DC6F;
  --primary-light: #D4AC0D;
  --secondary: #2980B9;
  --accent: #F7DC6F;

  --surface: #1A5276;
  --background: #14243a;
  --surface-glass: rgba(41, 128, 185, 0.22);

  --border: #2980B9;
  --shadow-main: 0 8px 28px 0 #2980b950;

  --text-main: #F7DC6F;
  --text-body: #F7DC6F;
  --text-muted: #85C1E9;

  --header-footer-blur: blur(16px);
  --card-blur: blur(18px);
}

/* ==========================================================================
   Unsupported browser message (CSP-friendly: no inline styles)
   ========================================================================== */
.unsupported-message {
  padding: 2rem;
  font-family: sans-serif;
  background: #ffeaea;
  color: #7a0000;
  text-align: center;
  display: none;
}
.unsupported-message.visible {
  display: block;
}

/* Ensure app root is visible and has layout (login/register panel) */
#root {
  min-height: 120px;
  display: block;
}

/* Loading state for auth check (no inline styles for CSP) */
.login-panel-loading {
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-panel-loading p {
  text-align: center;
  margin: 0;
  color: var(--text-muted, #666);
}

.plan-spacer {
  list-style: none;
}

/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================== */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-height: 100vh;
  background: var(--background);
  color: var(--text-body);
  font-family: 'Segoe UI', 'Arial', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 17px;
}
body { transition: background .25s, color .18s; }

/* ==========================================================================
   3. GLASSY SURFACE/COMPONENT
   ========================================================================== */
.glassy {
  background: var(--surface-glass);
  border: 1.5px solid var(--border);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  border-radius: 22px;
  box-shadow: var(--shadow-main);
}

/* ==========================================================================
   4. HEADER STYLES
   ========================================================================== */
.header {
  width: 100%;
  position: fixed;
  z-index: 15;
  top: 0; left: 0;
  height: 62px;
  background: var(--surface-glass);
  border-bottom: 1.5px solid var(--border);
  box-shadow: 0 2px 16px #3d52a013;
  backdrop-filter: var(--header-footer-blur);
  -webkit-backdrop-filter: var(--header-footer-blur);
  transition: background .2s, border-color .2s;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
}
.logo {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
  max-height: 52px;
}

/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */
.nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  opacity: .92;
  padding: 6px 0;
  border-radius: 7px;
  transition: color .14s, background .13s;
}
.nav a:hover { color: var(--primary-light); background: #f5f7fa22; }
.login-link,
.register-link {
  display: inline-block;
  border: 1.5px solid var(--primary-light);
  border-radius: 13px;
  padding: 6px 17px;
  background: var(--surface-glass);
  color: var(--primary-light);
  margin-left: 0.8rem;
  box-shadow: 0 2px 8px #7091e610;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.login-link:hover,
.register-link:hover {
  background: var(--primary-light);
  color: var(--surface-glass);
  box-shadow: 0 3px 10px #7091e640;
}

/* #theme-toggle {
  background: var(--surface-glass);
  border: 1.5px solid var(--primary-light);
  border-radius: 13px;
  width: 38px; height: 38px;
  margin-right: 0.5rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-light);
  outline: none;
  box-shadow: 0 2px 10px #3d52a015;
  transition: background .13s, border-color .16s;
}
#theme-toggle:after { content: "🌙"; display: block; font-size: 1.1rem; }
body:not(.dark) #theme-toggle:after { content: "☀️"; } */

/* ==========================================================================
   6. FOOTER & CONTACT INFO
   ========================================================================== */
.footer {
  width: 100%;
  padding: 1.2rem 0;
  background: var(--surface-glass);
  border-top: 1.5px solid var(--border);
  position: relative;
  margin-top: 4rem;
  backdrop-filter: var(--header-footer-blur);
  -webkit-backdrop-filter: var(--header-footer-blur);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
  color: var(--text-muted);
  padding: 0 2.5rem;
}
/* Footer center: high contrast in light, accent in dark */
.footer-center a,
.footer-center span {
  margin: 0 0.5rem;
  color: var(--primary); /* HIGH contrast for light mode */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.16s;
}
body.dark .footer-center a,
body.dark .footer-center span { color: var(--accent); }
.footer-separator { color: var(--text-muted); opacity: 0.6; }
.footer-right a { margin-left: 1rem; }
.footer-right i {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-right a:hover i { color: var(--accent); }
.contact-info {
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   7. HERO VIDEO SECTION
   ========================================================================== */
.hero-video-section {
  position: relative;
  height: 64vh;
  min-height: 340px;
  width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 62px;
}
.hero-bg-video {
  position: absolute;
  top: 0; left: 0;
  min-width: 100vw;
  min-height: 100%;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(.55) blur(.2px);
}
.hero-video-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(120deg, rgba(173,187,218,0.17) 0%, rgba(61,82,160,0.18) 100%);
  pointer-events: none;
}
.hero-cta-center {
  position: absolute;
  z-index: 3;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay-center {
  position: absolute;
  z-index: 4;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}
.hero-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 2.3rem 2.3rem 2rem;
  background: var(--surface-glass);
  box-shadow: 0 8px 32px #1a527624;
  border-radius: 28px;
  border: 1.5px solid var(--border);
  max-width: 520px;
  pointer-events: auto;
}
.hero-cta-content h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin: 0 0 .3rem 0;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 18px #ffffffaa, 0 2px 18px #1a527622;
}
.hero-cta-content p {
  color: var(--primary);
  font-size: 1.14rem;
  text-align: center;
  margin: 0 0 .6rem 0;
  font-weight: 500;
  text-shadow: 0 2px 14px #ffffffaa, 0 2px 14px #1a527622;
  opacity: 0.98;
}
body.dark .hero-cta-content h1 {
  color: var(--primary);
  text-shadow: 0 2px 18px #0006, 0 2px 12px #2980b944;
}
body.dark .hero-cta-content p {
  color: var(--text-main);
  text-shadow: 0 2px 12px #0007, 0 1px 10px #2980b944;
}

/* ==========================================================================
   8. PROJECT SUMMARY & LOGIN PANEL
   ========================================================================== */
.project-top-row {
  max-width: 1200px;
  margin: 2.1rem auto 1.3rem;
  position: relative;
  z-index: 3;
}

/* Hero row: grid for equal-height cards and aligned bottom edges */
.hero-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 769px) {
  .hero-row {
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: stretch;
    min-height: 0;
  }
  .hero-left-card,
  .hero-right-card {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
  }
  /* Left card: align content to bottom so its bottom line matches right card */
  .hero-left-card.project-summary {
    justify-content: flex-end;
  }
  /* Right card: inner fills height so button row sits at bottom */
  .hero-right-card .signin-card-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }
  .hero-right-card .auth-form__wrap .row-tight.primary-wrap {
    margin-top: auto;
  }
}
@media (max-width: 900px) {
  .hero-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Sign-in form inner: constrained width so card doesn't look overly wide */
.hero-right-card .signin-card-inner {
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.project-summary {
  flex: 2 1 320px;
  min-height: 320px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 12px #3d52a013;
}
.project-summary p {
  color: #0d3a5c;
  line-height: 1.5;
}
.project-summary p strong { color: #0a2d47; }
body.dark .project-summary p {
  color: #f5e6a3;
}
body.dark .project-summary p strong { color: #fff; }
body.dark .project-summary .no-app-badge { color: #D4AC0D; }

.cta-btn.modern-cta {
    font-size: 1rem;
    padding: 0.78em 1.7em 0.78em 1.2em;
    background: var(--accent); /* button color */
    color: #1A5276; 
  }

  .cta-arrow {
  vertical-align: bottom;
  margin-left: 0.5em;
  position: relative;
  top: 2px; /* tweak this value for perfect alignment */
}
/* Ensure dynamic summary text matches theme */
.project-summary p.dynamic-color,
.project-summary p.dynamic-color strong,
.project-summary p.dynamic-color span { color: var(--primary) !important; }
body.dark .project-summary p.dynamic-color,
body.dark .project-summary p.dynamic-color strong,
body.dark .project-summary p.dynamic-color span { color: var(--accent) !important; }

.login-panel {
  flex: 1 1 220px;
  min-height: 320px;
  align-self: stretch;
  overflow-y: auto;
  padding: 1.02rem 1.45rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 2px 12px #3d52a011;
}
.login-panel h3 {
  margin-top: 0;
  margin-bottom: .4rem;
  font-size: 1.09rem;
  color: var(--primary-light);
  font-weight: 600;
}
.login-panel form {
  display: flex;
  flex-direction: column;
  gap: .63rem;
}
.login-panel input {
  padding: .38rem .8rem;
  border: 1.3px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--surface-glass);
  color: var(--text-body);
  outline: none;
  transition: border-color .13s;
}
.login-panel input:focus { border-color: var(--primary-light); }

/* ---------- Auth form inner: align with Let the Landmarks Speak box; smaller inputs/button ---------- */
.auth-inner {
  width: min(380px, 84%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.signin-card-inner {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  box-sizing: border-box;
}
.signin-card-inner .auth-form__wrap,
.signin-card-inner form,
.signin-card-inner .auth-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.signin-card-inner input,
.signin-card-inner .auth-btn-primary,
.signin-card-inner .auth-btn-social {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.signin-card-inner .social-links--row .auth-btn-social {
  width: auto !important;
  max-width: none !important;
}
.signin-card-inner .social-links {
  width: 100%;
  max-width: 100%;
}
.login-panel__title,
.login-panel .auth-title {
  text-align: center;
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--primary-light);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.login-panel .auth-form__helper {
  font-size: 12px;
  color: var(--text-muted, rgba(255,255,255,0.6));
  margin: 10px 0 0;
  line-height: 1.25;
  text-align: center;
}
.login-panel .auth-form__helper p { margin: 6px 0 0 0; }
.login-panel .auth-form__helper-secondary { margin-top: 2px; }
.login-panel .auth-form__plan-intent-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 12px;
}
.login-panel .auth-form__wrap {
  width: 100%;
  max-width: 100%;
}
.login-panel .auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin-top: 0;
}
.login-panel .auth-form form { display: flex; flex-direction: column; gap: 0; width: 100%; }

/* Social sign-in: same weight/size as primary (Send code) */
.login-panel .social-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 8px;
  width: 100%;
}
.login-panel .social-links.social-links--row {
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: stretch;
}
.login-panel .social-links.social-links--row .social-link-btn.auth-btn-social {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
  font-size: 14px;
  font-weight: 700;
}
.login-panel .social-btn__icon {
  flex-shrink: 0;
  display: block;
}
.login-panel .social-link,
.login-panel .social-link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--primary-light);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  opacity: 0.95;
}
.login-panel .auth-btn-social,
.login-panel .social-link-btn.auth-btn-social {
  width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 0 1rem;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--primary-light);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  box-sizing: border-box;
}
.login-panel .auth-btn-social:hover,
.login-panel .social-link-btn.auth-btn-social:hover {
  opacity: 1;
  filter: brightness(1.05);
}
.login-panel .auth-form .primary-btn.auth-btn-primary {
  width: 100%;
  min-height: 44px;
  height: 44px;
}
@media (max-width: 768px) {
  .project-top-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .signin-card {
    min-height: 0;
  }
  .login-panel .auth-form .primary-btn.auth-btn-primary {
    width: 100%;
  }
  .login-panel .social-links.social-links--row .auth-btn-social {
    width: auto !important;
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Divider: short line — text — line, centered, not full-bleed (narrower than social row) */
.login-panel .auth-form.separator {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 26px 0 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  opacity: 0.9;
}
.login-panel .separator__line {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 1px;
  background: #ccc;
  opacity: 0.6;
}
.login-panel .separator__text {
  flex-shrink: 0;
  font-size: 12px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  color: rgba(136, 136, 136, 0.88);
}

/* Tighter vertical spacing for alignment */
.login-panel .auth-form .row { margin-bottom: 8px; }
.login-panel .auth-form .row-tight.primary-wrap { margin-top: 14px; margin-bottom: 0; }
.login-panel .input-wrap {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
/* Smaller text inputs */
.login-panel .auth-form .input {
  width: 100%;
  height: 40px;
  padding: 6px 38px 6px 12px;
  border-radius: 12px;
  font-size: 14px;
  border: 1.3px solid var(--border);
  background: var(--surface-glass);
  color: var(--text-body);
  outline: none;
  box-sizing: border-box;
}
.login-panel .auth-form .input:focus { border-color: var(--primary-light); }
.login-panel .input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0.85;
  color: #555;
}
body.dark .login-panel .input-icon { color: #aaa; }

/* Smaller Start Free button */
.login-panel .auth-form .primary-btn {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: none;
  background: var(--primary-light);
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.login-panel .auth-form .primary-btn:hover { filter: brightness(1.05); }
.login-panel .auth-form .primary-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.login-panel .auth-switch.auth-footer { margin-top: 10px; margin-bottom: 0; font-size: 13px; text-align: center; }
.login-panel .auth-form__error { color: #c00; font-size: 12px; margin-top: 4px; }
.login-panel .auth-form__hint { color: #666; font-size: 12px; margin-top: 6px; }
.login-panel .auth-form__link { background: none; border: none; color: var(--link-color, #0a7ea4); cursor: pointer; font-size: 13px; margin-top: 8px; padding: 0; text-decoration: underline; }

@media (max-width: 380px) {
  .auth-inner { width: 90%; }
  .login-panel .auth-form .input { height: 38px; font-size: 13px; padding: 5px 36px 5px 10px; }
  .login-panel .auth-form .primary-btn { height: 42px; font-size: 14px; }
  .login-panel .social-link,
  .login-panel .social-link-btn { font-size: 13px; }
}

/* Very narrow viewports: stack social row so labels stay readable without widening the card */
@media (max-width: 340px) {
  .login-panel .social-links.social-links--row {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .login-panel .auth-inner .social-links--row .social-link-btn.auth-btn-social {
    width: 100% !important;
    max-width: 280px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ---------- Login panel tidy & spacing (non-destructive) ---------- */
.project-top-row .login-panel { padding: 1rem 1.25rem 1.25rem; }
.project-top-row .login-panel h3,
.project-top-row .login-panel .login-panel__title {
  text-align: center;
  margin: 0.25rem 0 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
/* Center the form block, keep it responsive but not full-bleed */
.login-form {
  width: 100%;
  max-width: clamp(260px, 85%, 380px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
/* Inputs inside .login-form */
.login-form input[type="email"],
.login-form input[type="password"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border, #2f4e7f);
  border-radius: 0.7rem;
  background: var(--surface, rgba(255,255,255,0.06));
  color: inherit;
  outline: none;
}
.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
  border-color: var(--primary, #7091E6);
  box-shadow: 0 0 0 2px rgba(112,145,230,0.35);
}
/* Remember-row keeps alignment tidy */
.remember-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

/* Unified login submit button — consolidated & centered */
.login-panel form button[type="submit"] {
  /* Visuals (kept from original) */
  background: var(--primary-light);
  color: var(--text-main);
  border: none;
  box-shadow: 0 1px 6px #7091e610;

  /* Readability & size */
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.2;
  padding: 0.7rem 1.1rem;
  min-height: 44px;
  border-radius: 10px;

  /* Layout (centered, compact width) */
  width: auto;
  max-width: 100%;
  display: inline-block;
  margin: 0 auto 0.9rem;
  cursor: pointer;

  /* Transitions */
  transition: background .14s, color .13s, box-shadow .16s;
}
.login-panel form button[type="submit"]:hover {
  background: var(--primary);
  color: var(--primary-light);
}
.login-panel form button[type="submit"]:focus-visible {
  outline: 3px solid rgba(0,0,0,0.15);
  outline-offset: 2px;
}

/* ==========================================================================
   9. PLANS & PRICING
   ========================================================================== */
.plans {
  max-width: 1200px;
  margin: 2.3rem auto 4rem;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface-glass);
  box-shadow: 0 2px 22px #7091e61a;
}
.plans h2 {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 0.3rem;
}
.plans-intro {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 1rem;
  text-align: center;
}
.plan-toggle-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 1rem 0 2.1rem;
  color: var(--text-muted);
  font-weight: 600;
}
/* Toggle switch */
.switch { position: relative; display: inline-block; width: 45px; height: 24px; }
.switch input { display: none; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--surface);
  border-radius: 22px;
  transition: .3s;
}
.slider:before {
  position: absolute; content: "";
  height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: var(--primary-light);
  border-radius: 50%;
  transition: .3s;
}
.switch input:checked + .slider { background: var(--primary-light); }
.switch input:checked + .slider:before { transform: translateX(21px); }

.plan-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}
.plan-card {
  flex: 1 1 220px;
  max-width: 280px;
  background: var(--surface-glass);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px #7091e610;
  transition: border-color .13s, box-shadow .16s;
  position: relative;
}
.plan-card h3 {
  margin: 0 0 .75rem;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-price {
  font-size: 1.98rem;
  color: var(--primary-light);
  margin-bottom: .4rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.plan-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 .6rem;
  text-align: center;
}
.plan-card ul {
  padding: 0 0 0 1.1rem;
  margin: 0 0 .6rem;
  list-style: disc;
  color: var(--primary);
  font-size: 1.01rem;
  opacity: .94;
}
.plan-card button {
  padding: .61rem 1.5rem;
  background: var(--primary-light);
  color: var(--text-main);
  border: none;
  border-radius: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s, color .13s;
  box-shadow: 0 1px 6px #7091e610;
}
.plan-card button:hover { background: var(--primary); color: var(--primary-light); }

/* Coming soon badge */
.plan-card.coming-soon {
  opacity: 0.6;
  border: 1.5px dashed var(--border);
  background: var(--surface);
  pointer-events: none;
}
.plan-card.coming-soon::before {
  content: "Coming Soon";
  position: absolute; top: -10px; right: -10px;
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: 0.85rem;
  padding: 0.3rem 0.8rem; border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  transform: rotate(15deg);
}
body.dark .plan-card.coming-soon::before {
  background: var(--primary-light);
  color: #000;
  text-shadow: none;
}
.plan-card.coming-soon button { display: none; }
.plan-card.coming-soon .note {
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Plan CTA link (matches .plan-card button); margin-top auto aligns buttons at card bottom */
.plan-card .plan-cta-btn {
  display: inline-block;
  margin-top: auto;
  padding: .61rem 1.5rem;
  background: var(--primary-light);
  color: var(--text-main);
  border: none;
  border-radius: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s, color .13s;
  box-shadow: 0 1px 6px #7091e610;
  text-decoration: none;
  white-space: nowrap;
}
.plan-card .plan-cta-btn:hover { background: var(--primary); color: var(--primary-light); }

/* Popular Passes row (Day Pass / 4-Day) */
.popular-passes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  width: 100%;
  margin-top: 1.2rem;
}
.plan-pass-btn {
  display: inline-block;
  padding: .61rem 1.5rem;
  background: var(--primary-light);
  color: var(--text-main);
  border: none;
  border-radius: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s, color .13s;
  box-shadow: 0 1px 6px #7091e610;
  text-decoration: none;
}
.plan-pass-btn:hover { background: var(--primary); color: var(--primary-light); }
.popular-passes-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0.25rem 0 0;
}

/* Bus licensing note */
.bus-licensing-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}
.bus-licensing-link {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.bus-licensing-link:hover { text-decoration: underline; }

/* City pick modal (pricing section only) */
.city-pick-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.city-pick-modal[hidden] { display: none; }
.city-pick-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.city-pick-modal-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.city-pick-modal-panel h3 {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-weight: 600;
}
.city-pick-modal-hint {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.city-pick-modal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}
.city-pick-modal-list label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: var(--primary);
  font-size: 1rem;
}
.city-pick-modal-list input { cursor: pointer; }
.city-pick-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.city-pick-cancel {
  padding: .5rem 1rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 11px;
  font-weight: 600;
  cursor: pointer;
}
.city-pick-cancel:hover { color: var(--primary); border-color: var(--primary); }
.city-pick-modal-actions .plan-cta-btn {
  margin-top: 0;
}

/* ==========================================================================
   10. TESTIMONIALS
   ========================================================================== */
.testimonials {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface-glass);
  box-shadow: 0 2px 14px #3d52a011;
}
.testimonials h2 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.testimonial-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  width: 100%;
  margin-top: 1.5rem;
  align-items: flex-start;
}
.testimonial {
  flex: 1 1 220px;
  max-width: 360px;
  background: var(--surface-glass);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 2px 10px #7091e610;
  color: var(--primary);
  font-style: italic;
  border: 1.2px solid var(--border);
  text-align: center;
}
.testimonial span {
  display: block;
  margin-top: .85rem;
  font-weight: 700;
  color: var(--primary-light);
  font-style: normal;
  font-size: 1.06rem;
  letter-spacing: 0.2px;
  opacity: .92;
}

/* ==========================================================================
   11. SCROLL TO TOP BUTTON
   ========================================================================== */
#scrollToTopBtn {
  position: fixed;
  bottom: 26px;
  right: 34px;
  z-index: 99;
  background: var(--primary-light);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  box-shadow: 0 2px 10px #7091e618;
  font-size: 1.55rem;
  display: none;
  cursor: pointer;
  transition: background .17s;
  outline: none;
}
#scrollToTopBtn:hover { background: var(--primary); }

/* ==========================================================================
   12. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
/* ≤900px — plans/testimonials stack only; desktop two-column row unchanged */
@media (max-width: 900px) {
  .plan-list, .testimonial-row {
    flex-direction: column;
    gap: 1.1rem;
    align-items: stretch;
  }
  .plan-list .plan-card { max-width: none; }
  .plans, .testimonials { padding: 1.2rem .8rem; }
}

/* ≤768px — STACK BREAKPOINT (STACK_BP): normal flow, auth card wraps all content, next section below */
@media (max-width: 768px) {
  /* A) Stacked parent: normal flex column flow */
  .project-top-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
    margin: 1.5rem auto 1.3rem;
    padding-left: 14px;
    padding-right: 14px;
    position: relative;
    z-index: 10;
    margin-bottom: 28px;
  }
  .project-top-row .project-summary {
    position: relative;
    z-index: 1;
    overflow: hidden;
  }

  /* B) Auth card: dynamic height only; no fixed/max height; never clips; sizes to content */
  .project-top-row .login-panel {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    flex: 0 0 auto !important;
    align-self: stretch;
    position: relative;
    z-index: 2;
    isolation: isolate;
    padding: 1.25rem 1.25rem 1.5rem;
    box-sizing: border-box;
  }

  /* C) Inner wrappers: normal flow only (no absolute/transform); never constrain or clip */
  .login-panel .auth-inner,
  .login-panel .auth-form__wrap,
  .login-panel .auth-inner form,
  .login-panel .auth-inner .auth-form {
    position: static !important;
    height: auto !important;
    max-height: none !important;
    transform: none !important;
    overflow: visible !important;
  }
  .login-panel .auth-inner {
    width: min(420px, 92%);
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 18px !important;
    box-sizing: border-box;
    flex: none;
    min-height: auto;
  }
  .login-panel .auth-inner form,
  .login-panel .auth-inner .auth-form__wrap,
  .login-panel .auth-inner .auth-form {
    width: 100%;
  }
  .login-panel .auth-inner .input,
  .login-panel .auth-inner .auth-form .input,
  .login-panel .auth-form .input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .login-panel .auth-inner .auth-title,
  .login-panel .auth-inner .login-panel__title {
    margin-bottom: 10px;
  }
  .login-panel .auth-inner .social-links {
    margin-bottom: 10px;
  }
  .login-panel .auth-inner .auth-form.separator {
    margin: 26px 0 14px;
  }
  .login-panel .auth-inner .row.field {
    margin-bottom: 10px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .login-panel .auth-inner .auth-switch.auth-footer {
    margin-top: 10px;
    font-size: 14px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .login-panel .auth-inner .row-tight.primary-wrap {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .login-panel .auth-inner .input-wrap {
    position: relative;
    width: 100%;
    box-sizing: border-box;
  }
  .login-panel .auth-inner .input,
  .login-panel .auth-inner .auth-form .input {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 44px;
    padding: 8px 42px 8px 14px;
    border-radius: 14px;
    font-size: 15px;
  }
  .login-panel .auth-inner .input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    opacity: 0.85;
  }
  .login-panel .auth-inner .primary-btn,
  .login-panel .auth-inner .auth-form .primary-btn {
    width: 100%;
    height: 50px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    overflow: visible;
    text-overflow: clip;
  }

  /* H) Let the Landmarks Speak card: readable on mobile */
  .project-summary,
  .project-summary p {
    font-size: 16px;
    line-height: 1.45;
  }

  /* F) Next section (Toronto tiles): normal flow only; must start AFTER auth card, no overlap */
  .flipcard-section {
    position: static !important;
    margin-top: 18px !important;
    transform: none !important;
    top: auto !important;
  }

  /* E) Stacked-only: no absolute/transform on auth wrappers; keep .row.input-wrap relative so icon stays inside */
  .login-panel .auth-inner .auth-form .row:not(.input-wrap),
  .login-panel .auth-inner .auth-form .row-tight.primary-wrap,
  .login-panel .auth-form .row:not(.input-wrap),
  .login-panel .auth-form .row-tight.primary-wrap {
    position: static !important;
    transform: none !important;
  }
  .login-panel .auth-inner .auth-form .row.input-wrap,
  .login-panel .auth-form .row.input-wrap {
    position: relative !important;
    overflow: hidden;
  }

  /* Existing 768px: Popular Passes, city modal */
  .popular-passes-row {
    flex-direction: column;
    align-items: center;
    padding: 0 0.5rem;
  }
  .plan-pass-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    box-sizing: border-box;
  }
  .city-pick-modal-panel {
    max-height: 85vh;
    overflow-y: auto;
  }
  .city-pick-modal-actions {
    flex-direction: column;
  }
  .city-pick-modal-actions .plan-cta-btn,
  .city-pick-cancel {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* ≤650px — merged all small-screen rules */
@media (max-width: 650px) {
  .header-inner, .footer-inner { padding: 0 1.1rem; }
  .hero-video-section { min-height: 200px; height: 44vh; }
  .project-summary { padding: .9rem .6rem; }
  .login-panel {
    padding: 1.25rem 1rem 1.5rem;
    overflow: visible;
    overflow-y: visible;
    max-height: none;
  }
  .login-panel .auth-inner { flex: none; min-height: auto; }
  .plans { padding: 1rem .5rem; }
  .nav-feature, .nav-testimonial { display: none !important; }
  .hero-cta-content {
    padding: 1.25rem 1rem 1.2rem;
    max-width: 95vw;
  }
  .hero-cta-content h1 { font-size: 1.22rem; }
  .hero-cta-content p { font-size: 0.98rem; }
  

  /* === MOBILE FOOTER CLEANUP === */
  .footer-left, .footer-right { display: none !important; }
  .footer-center {
    flex: 1;
    justify-content: center;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  /* Hide "Canada Locations Only" on mobile */
  .footer-center span:last-child { display: none !important; }
  /* Hide second footer-separator after the phone number */
  .footer-center .footer-separator:nth-of-type(2) { display: none !important; }
  /* Prevent overflow on narrow screens */
  .footer-center a {
    font-size: 0.92rem;
    word-break: break-word;
  }

  /* Hide scroll-to-top on small screens */
  #scrollToTopBtn { display: none !important; }
}

/* ==========================================================================
   13. EXTRAS & THEME TWEAKS
   ========================================================================== */
/* Light Mode Fix: Force strong hero text visibility (final winner kept) */
body:not(.dark) .hero-cta-content h1,
body:not(.dark) .hero-cta-content p {
  color: #051b3e !important; /* deep navy blue */
  text-shadow: 0 2px 14px rgba(255,255,255,0.95), 0 2px 10px rgba(26, 82, 118, 0.3);
}

/* ==========================================================================
   14. (OPTIONAL) OLD / UNUSED CODE (PARK HERE)
   ========================================================================== */
/*
.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: 1.5px;
  text-decoration: none;
  text-shadow: 0 1px 10px #fff4, 0 2px 8px #3d52a01a;
  transition: color .15s;
}
*/
/* Intentionally commented-out mobile hide block preserved for reference:
   @media (max-width: 650px) {
     #testimonials, #plans { display: none !important; }
   }
*/

/* ==========================================================================
   8A. AUTH PANEL POLISH (COSMETIC ONLY, NO LOGIC CHANGES)
   - Match left box background (already via .glassy)
   - Center & UPPERCASE heading with top padding
   - Even spacing; remove stray gaps
   - Right-aligned icons inside email/password inputs
   - Buttons same size as inputs; uppercase text
   - Caption under button (visual only)
   ========================================================================== */

/* Heading: centered, uppercase, with breathing room */
.login-panel h3 {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  padding-top: 6px;
  padding-bottom: 12px;
  margin: 0;
}

/* Keep panel padding consistent with left card */
.login-panel.glassy {
  padding: 20px 22px;
}

/* Uniform sizing & rhythm for inputs and submit button */
.login-panel form input,
.login-panel form button[type="submit"] {
  width: 100%;
  height: 48px;              /* same height for inputs & buttons */
  box-sizing: border-box;
  border-radius: 10px;
}

/* Tidy vertical rhythm */
.login-panel form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0; /* prevent stray margins from inline styles */
}

/* Inputs: theme-aligned background & border */
.login-panel form input[type="email"],
.login-panel form input[type="password"],
.login-panel form input[type="text"] {
  padding: .35rem 44px .35rem 14px;
  border: 1px solid var(--border);
  background-color: var(--surface-glass);
  color: var(--text-body);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.login-panel form input[type="email"]:focus,
.login-panel form input[type="password"]:focus,
.login-panel form input[type="text"]:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(41,128,185,0.25);
}

/* Right-aligned input icons (data-URI SVGs — no extra markup) */
.login-panel form input[type="email"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23bbb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/><polyline points='22,6 12,13 2,6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px 20px;
}
.login-panel form input[type="password"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23bbb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='10' rx='2' ry='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px 20px;
}

/* Checkbox row small & tidy (covers Remember Me) */
.login-panel form label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.9;
  margin-top: 2px;
}

/* Submit button: same size as inputs, uppercase text */
.login-panel form button[type="submit"] {
  text-transform: uppercase;
  font-weight: 800;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(41,128,185,0.18), rgba(26,82,118,0.22));
  color: var(--text-main);
  transition: transform .06s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.login-panel form button[type="submit"]:hover {
  background: var(--primary);
  color: var(--primary-light);
  box-shadow: 0 6px 18px #1a527620;
}
.login-panel form button[type="submit"]:active {
  transform: translateY(1px);
}

/* Under-button helper caption (visual only; not a real link) */
.login-panel form::after {
  content: "Don't have an Account? Register Here";
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 13px;
  text-decoration: underline;
  opacity: 0.95;
  cursor: default;
  /* If you later add a real link, remove this block */
}

/* Light/Dark minor nuance for buttons */
body.dark .login-panel form button[type="submit"] {
  border-color: var(--border);
  background: linear-gradient(180deg, rgba(244, 208, 63, 0.24), rgba(212, 172, 13, 0.18));
  color: #0b1a2e;
}

/* Align the two cards visually in common viewports */
.project-top-row {
  align-items: stretch;
}

/* === AUTH SPACING & RHYTHM FIX (CSS-only override; no JSX changes) === */

/* Target the React wrapper that currently has paddingTop:10vh. In this layout
   it's the last child inside .login-panel (after #login, #register, <h3>, flash). */
.login-panel > div:last-child {
  padding-top: 0 !important;             /* kill big vertical gap */
}

/* Force the inline-styled form (width:260, marginTop:24) to behave like the mock */
.login-panel > div:last-child form {
  width: 100% !important;
  max-width: 420px;                       /* similar visual width to the sample */
  margin: 8px auto 0 !important;          /* small breathing room under heading */
  gap: 14px !important;                   /* consistent vertical rhythm */
}

/* Inputs & button: equal size and full width */
.login-panel form input,
.login-panel form button[type="submit"] {
  width: 100% !important;
  height: 52px;                           /* a bit taller like the reference */
  border-radius: 12px;
}

/* Input padding so the right-side icon doesn't overlap text */
.login-panel form input[type="email"],
.login-panel form input[type="password"] {
  padding: 0 48px 0 16px !important;      /* more inner space, cleaner look */
}

/* Make placeholders a touch dimmer for contrast */
.login-panel form input::placeholder {
  opacity: .9;
}

/* Right-aligned icons inside inputs (dark stroke for better visibility) */
.login-panel form input[type="email"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/><polyline points='22,6 12,13 2,6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px 20px;
}
.login-panel form input[type="password"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='10' rx='2' ry='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px 20px;
}

/* Tighten the heading spacing & style (already uppercase from earlier rules) */
.login-panel h3 {
  margin: 0 0 12px !important;            /* small gap above the form */
  letter-spacing: 0.08em;                 /* roomy uppercase look */
}

/* “Remember Me” on the right, compact, single line */
.login-panel form label {
  align-self: flex-end;                    /* push to the right edge */
  margin-top: 2px !important;
  font-size: 0.95rem;
  gap: 8px;
  white-space: nowrap;                     /* prevent wrapping */
}
.login-panel form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary-light);
  appearance: auto;                        /* avoid OS scaling */
  transform: none;
}

/* Button visual: solid, readable, full width */
.login-panel form button[type="submit"] {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(41,128,185,0.18), rgba(26,82,118,0.22));
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.login-panel form button[type="submit"]::first-letter { text-transform: uppercase; }
.login-panel form button[type="submit"]:hover {
  background: var(--primary);
  color: var(--primary-light);
}

/* Under-button helper line from earlier CSS: disable to avoid double text
   because we now use real markup (.auth-switch). */
.login-panel form::after {
  content: none !important;
}

/* Real under-button link styles (for the two <p class="auth-switch"> lines) */
.auth-switch {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: #0d3a5c;
}
body.dark .auth-switch { color: #f5e6a3; }
.auth-switch .auth-switch-link {
  color: #1A5276;
  text-decoration: underline;
  font-weight: 700;
  white-space: nowrap;
}
body.dark .auth-switch .auth-switch-link { color: #F7DC6F; }
.auth-switch .auth-switch-link:hover { color: #0d3a5c; }
body.dark .auth-switch .auth-switch-link:hover { color: #fff; }

.login-panel .free-note { color: #0d3a5c; }
body.dark .login-panel .free-note { color: #f5e6a3; }

/* Keep inputs WHITE with BLACK text (final override) */
.login-panel form input[type="email"],
.login-panel form input[type="password"],
.login-panel form input[type="text"] {
  background-color: #fff !important;
  color: #111 !important;
}

/* Autofill color fix (keeps white inputs white) */
.login-panel input:-webkit-autofill,
.login-panel input:-webkit-autofill:hover,
.login-panel input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #111 !important;
  transition: background-color 9999s ease-out 0s;
}

/* FINAL: ensure equal height columns on desktop regardless of which form is taller */
.project-top-row { align-items: stretch !important; }

/* === Make the login panel match the left summary card === */
.login-panel {
  background: var(--surface-glass);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-main);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
}
/* ==========================================================================
   8B. CARD BACKGROUND UNIFIER (Login == Summary)
   - Force both cards to use the same glass background
   - Neutralize accidental solid backgrounds on immediate wrappers
   ========================================================================== */

.project-summary,
.login-panel {
  background: var(--surface-glass) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 22px !important;
  box-shadow: var(--shadow-main) !important;
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
}

/* In case React inserts a wrapper with its own background, clear it so the
   glass on .login-panel shows through (does NOT affect inputs/buttons). */
.login-panel > div,
.login-panel > section,
.login-panel > article {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* ==========================================================================
   Top row spacing + login inner column (no card width / flex / padding changes)
   ========================================================================== */
.project-top-row {
  align-items: stretch !important;
  margin-bottom: 3.0rem !important;
}

.flipcard-section {
  margin-top: 1.8rem !important;
  padding-top: 0.6rem !important;
}

.login-panel .auth-inner {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

.login-panel .auth-inner form,
.login-panel .auth-inner .social-links {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.login-panel .auth-inner .social-links {
  align-items: center;
}

.login-panel .auth-inner .input-wrap {
  max-width: 300px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.login-panel .auth-inner input,
.login-panel .auth-inner .auth-form .input {
  max-width: 100%;
  box-sizing: border-box;
}

.login-panel .auth-inner .row-tight.primary-wrap {
  display: flex;
  justify-content: center;
}

.login-panel .auth-inner button {
  box-sizing: border-box;
  width: auto !important;
  min-width: 10rem;
  max-width: 280px;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

.login-panel .auth-inner .primary-btn.auth-btn-primary,
.login-panel .auth-inner .auth-btn-social {
  width: auto !important;
  min-width: 10rem;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.login-panel .auth-inner .social-links--row .social-link-btn.auth-btn-social {
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
