/* Bundled login page v24 — scoped to .login-v24 */

/*
  Production font contract:
  --font-inter and --font-figtree should be provided by next/font/google
  in the parent Next.js layout. System fallbacks remain for safety.
*/
.login-v24 {
  --blue: #004eff;
  --blue-hover: #003ed1;
  --blue-050: #f4f7ff;
  --blue-075: #edf3ff;
  --blue-100: #e3ecff;
  --navy: #0b1d4f;
  --lime: #ccff00;
  --ink: #0b1020;
  --ink-2: #253047;
  --muted: #68758b;
  --muted-2: #8b96a8;
  --line: #dfe5ee;
  --line-strong: #ccd5e4;
  --canvas: #f7f9fc;
  --white: #ffffff;
  --red: #b42318;
  --red-bg: #fff0ee;
  --shadow: 0 24px 70px rgba(25, 44, 90, 0.10);
  --shadow-sm: 0 12px 34px rgba(25, 44, 90, 0.08);
  --font-body: var(--font-inter, "Inter"), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font-figtree, "Figtree"), var(--font-inter, "Inter"), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 64px;
  --rotate-ms: 9500ms;
}

.login-v24,
.login-v24 *,
.login-v24 *::before,
.login-v24 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.login-v24 { -webkit-text-size-adjust: 100%; font-synthesis: none; }
.login-v24 {
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 83% 18%, rgba(0, 78, 255, 0.055), transparent 25rem),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-synthesis: none;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(0, 78, 255, 0.26); outline-offset: 3px; }

.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--page-pad, 20px);
  border-bottom: 1px solid rgba(223, 229, 238, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}
.wordmark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
}
.wordmark-dot { width: 6px; height: 6px; margin-bottom: 1px; background: var(--lime); }
.header-new-member { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 500; }
.header-new-member a { color: var(--blue); font-weight: 700; text-decoration: none; }
.header-new-member a:hover { text-decoration: underline; text-underline-offset: 3px; }

.login-page {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - var(--header-h));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(380px, 0.88fr) minmax(430px, 1.12fr);
  gap: clamp(54px, 7vw, 104px);
  align-items: center;
  padding: 58px 0 66px;
}

.signin-panel { min-width: 0; }
.signin-inner { width: min(100%, 430px); }
.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.signin-inner h1 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.signin-intro {
  max-width: 39ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.signin-form { margin-top: 30px; }
.login-alert {
  display: none;
  margin-bottom: 15px;
  border-radius: 12px;
  background: var(--red-bg);
  padding: 11px 13px;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}
.login-alert.show { display: block; }
.form-field { display: grid; gap: 8px; margin-top: 18px; }
.form-field:first-of-type { margin-top: 0; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.form-field label { color: var(--ink); font-size: 13px; font-weight: 600; }
.label-row a { color: var(--blue); font-size: 12px; font-weight: 600; text-decoration: none; }
.label-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.input-wrap { position: relative; }
.form-field input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--white);
  padding: 0 15px;
  color: var(--ink);
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form-field input::placeholder { color: #9aa6b8; }
.form-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 78, 255, 0.09); outline: 0; }
.password-input { padding-right: 76px !important; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  min-width: 62px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--blue-050);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
.signin-button {
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 78, 255, 0.20);
  font-size: 15px;
  font-weight: 700;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.signin-button:hover { background: var(--blue-hover); box-shadow: 0 14px 30px rgba(0, 78, 255, 0.24); transform: translateY(-1px); }
.signin-button:active { transform: translateY(0); }
.signin-note { margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.support-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.support-links a { color: var(--blue); font-weight: 600; text-decoration: none; }
.support-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.support-separator { color: #c2cad7; }
.mobile-new-member { display: none; }

.insights-panel {
  position: relative;
  min-width: 0;
  border: 1px solid #dfe7f7;
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 78, 255, 0.095), transparent 18rem),
    linear-gradient(145deg, #f8faff 0%, #eef3ff 100%);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.insights-panel::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -90px;
  bottom: -95px;
  border: 28px solid rgba(0, 78, 255, 0.055);
  border-radius: 50%;
  pointer-events: none;
}
.insights-topbar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.did-you-know { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.signal-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(204, 255, 0, 0.24); }
.updated-label { color: var(--muted); font-size: 11px; font-weight: 500; }
.preview-badge { margin-left: 7px; border: 1px solid #cfdbf4; border-radius: 999px; background: rgba(255,255,255,0.75); padding: 3px 7px; color: var(--blue); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

.insight-card {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  border: 1px solid rgba(210, 220, 239, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.progress-track { position: absolute; inset: 0 0 auto 0; height: 4px; background: #e8edf7; z-index: 4; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--lime), var(--blue)); }
.progress-bar.running { animation: fill-progress var(--rotate-ms) linear forwards; }
.progress-bar.paused { animation-play-state: paused; }
@keyframes fill-progress { from { width: 0; } to { width: 100%; } }

.slides { position: relative; height: 520px; }
.slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  padding: 38px 38px 34px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}
.slide.active { position: absolute; opacity: 1; transform: translateY(0); pointer-events: auto; }
.slide-kicker { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.slide-metric { margin-top: 18px; font-family: var(--font-display); font-variant-numeric: lining-nums tabular-nums; color: var(--blue); font-size: clamp(54px, 5.5vw, 72px); font-weight: 700; line-height: .96; letter-spacing: -0.05em; }
.slide-metric.small { font-size: clamp(42px, 4.4vw, 56px); letter-spacing: -0.04em; }
.slide-metric-label { margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.slide h2 { max-width: 19ch; font-family: var(--font-display); margin-top: 24px; color: var(--ink); font-size: clamp(25px, 2.35vw, 31px); font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; }
.slide-body { max-width: 49ch; margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.slide-action {
  justify-self: start;
  min-height: 44px;
  margin-top: 23px;
  border: 1px solid #c8d8ff;
  border-radius: 999px;
  background: var(--blue-050);
  padding: 0 17px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.slide-action:hover { background: var(--blue-100); border-color: #adc3ff; transform: translateY(-1px); }
.slide-footnote { margin-top: 14px; color: var(--muted-2); font-size: 10px; line-height: 1.45; }

.carousel-controls { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 17px; }
.slide-counter { color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.carousel-dots { display: flex; justify-content: center; align-items: center; gap: 7px; }
.carousel-dot { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #c7d2e7; transition: width 180ms ease, background 180ms ease; }
.carousel-dot.active { width: 26px; border-radius: 999px; background: var(--blue); }
.carousel-actions { display: flex; align-items: center; gap: 8px; }
.carousel-control {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #ccd7eb;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}
.carousel-control:hover { border-color: #abc0e7; background: #fff; }
.insight-privacy { position: relative; z-index: 1; margin-top: 14px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.intent-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  transform: translate(-50%, 18px);
  max-width: min(90vw, 520px);
  border: 1px solid #cddaf4;
  border-radius: 999px;
  background: #fff;
  padding: 10px 16px;
  box-shadow: var(--shadow);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.intent-toast.show { opacity: 1; transform: translate(-50%, 0); }


@media (min-width: 941px) and (max-height: 950px) {
  .login-page { padding-top: 34px; padding-bottom: 38px; }
  .insights-panel { padding-top: 27px; padding-bottom: 27px; }
  .slides { height: 478px; }
  .slide { padding-top: 32px; padding-bottom: 28px; }
  .slide-metric { margin-top: 14px; font-size: clamp(50px, 5vw, 66px); }
  .slide-metric.small { font-size: clamp(39px, 4vw, 51px); }
  .slide h2 { margin-top: 19px; font-size: clamp(24px, 2.25vw, 29px); }
  .slide-body { margin-top: 10px; }
  .slide-action { margin-top: 18px; }
  .carousel-controls { margin-top: 14px; }
  .insight-privacy { margin-top: 10px; }
}

@media (min-width: 941px) and (max-height: 820px) {
  .login-page { padding-top: 28px; padding-bottom: 32px; }
  .insights-panel { padding-top: 24px; padding-bottom: 24px; }
  .slides { height: 442px; }
  .slide { padding-top: 29px; padding-bottom: 25px; }
  .slide-metric { margin-top: 12px; font-size: clamp(47px, 4.8vw, 62px); }
  .slide-metric.small { font-size: clamp(37px, 3.8vw, 48px); }
  .slide h2 { margin-top: 16px; font-size: clamp(22px, 2.1vw, 27px); }
  .slide-body { margin-top: 8px; }
  .slide-action { margin-top: 15px; }
  .carousel-controls { margin-top: 12px; }
  .insight-privacy { margin-top: 9px; }
}

@media (max-width: 940px) {
  .login-page { grid-template-columns: minmax(340px, .92fr) minmax(390px, 1.08fr); gap: 42px; width: min(100% - 36px, 980px); }
  .slide { padding: 34px 30px 30px; }
  .slides { height: 500px; }
}

@media (min-width: 761px) and (max-width: 940px) and (max-height: 820px) {
  .login-page { padding-top: 26px; padding-bottom: 30px; }
  .insights-panel { padding-top: 23px; padding-bottom: 23px; }
  .slides { height: 442px; }
  .slide { padding: 28px 27px 24px; }
  .slide-metric { margin-top: 12px; font-size: clamp(46px, 5vw, 60px); }
  .slide-metric.small { font-size: clamp(36px, 4vw, 47px); }
  .slide h2 { margin-top: 16px; font-size: clamp(22px, 2.4vw, 26px); }
  .slide-body { margin-top: 8px; }
  .slide-action { margin-top: 15px; }
  .carousel-controls { margin-top: 12px; }
  .insight-privacy { margin-top: 9px; }
}

@media (max-width: 760px) {
  .login-v24 { --header-h: 58px; --rotate-ms: 10500ms; }
  body { background: #fff; }
  .site-header { padding: 0 18px; }
  .header-new-member { display: none; }
  .login-page {
    width: 100%;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
    padding: 28px 18px 42px;
  }
  .signin-inner { width: 100%; }
  .eyebrow { font-size: 11px; }
  .signin-inner h1 { margin-top: 7px; font-size: 38px; line-height: 1.04; }
  .signin-intro { margin-top: 10px; max-width: none; font-size: 15px; line-height: 1.48; }
  .signin-form { margin-top: 23px; }
  .form-field { margin-top: 16px; }
  .form-field input { height: 52px; }
  .signin-button { min-height: 52px; margin-top: 19px; }
  .signin-note { font-size: 11px; }
  .support-links { justify-content: center; margin-top: 18px; padding-top: 17px; font-size: 11px; }
  .mobile-new-member { display: block; margin-top: 19px; color: var(--muted); font-size: 12px; text-align: center; }
  .mobile-new-member a { color: var(--blue); font-weight: 700; text-decoration: none; }

  .insights-panel { order: 2; margin: 0; border-radius: 24px; padding: 17px; box-shadow: none; }
  .insights-topbar { align-items: flex-start; }
  .updated-label { max-width: 110px; text-align: right; line-height: 1.3; }
  .preview-badge { display: none; }
  .insight-card { margin-top: 15px; border-radius: 20px; }
  .slides { height: 466px; }
  .slide { min-height: 0; padding: 29px 22px 24px; }
  .slide.active { position: absolute; }
  .slide-metric { margin-top: 14px; font-size: 49px; }
  .slide-metric.small { font-size: 39px; }
  .slide h2 { max-width: none; margin-top: 19px; font-size: 23px; line-height: 1.16; }
  .slide-body { font-size: 14px; }
  .slide-action { width: 100%; justify-self: stretch; margin-top: 20px; }
  .slide-footnote { font-size: 9px; }
  .carousel-controls { grid-template-columns: 1fr auto; gap: 12px; }
  .carousel-dots { display: none; }
  .carousel-actions { justify-self: end; }
  .insight-privacy { margin-top: 12px; }
  .intent-toast { bottom: 14px; border-radius: 16px; text-align: center; }
}

@media (min-width: 601px) and (max-width: 760px) {
  .slides { height: 390px; }
}

@media (min-width: 431px) and (max-width: 600px) {
  .slides { height: 440px; }
}

@media (min-width: 331px) and (max-width: 430px) {
  .slides { height: 466px; }
}

@media (min-width: 321px) and (max-width: 330px) {
  .slides { height: 516px; }
}

@media (max-width: 320px) {
  .slides { height: 542px; }
}

@media (max-width: 360px) {
  .login-page { padding-inline: 15px; }
  .support-separator { display: none; }
  .support-links { flex-direction: column; gap: 7px; }
  .insights-panel { padding: 14px; }
  .slide { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
  
.signin-button:disabled { opacity: 0.72; cursor: not-allowed; transform: none; }
.login-v24-banner { margin-bottom: 14px; border-radius: 12px; padding: 11px 13px; font-size: 13px; font-weight: 600; }
.login-v24-banner.info { background: var(--blue-050); color: var(--navy); }
.login-v24-banner.warn { background: var(--red-bg); color: var(--red); }

/* Forgot password — single-column, same typography as sign-in (no nested Tailwind card) */
.login-v24.forgot-password .login-page {
  grid-template-columns: 1fr;
  width: min(520px, calc(100% - 48px));
  justify-items: start;
  align-items: start;
  padding-top: clamp(48px, 8vh, 88px);
}
.login-v24.forgot-password .signin-inner {
  width: 100%;
}
.login-v24.forgot-password .signin-inner h1 {
  font-size: clamp(36px, 5vw, 48px);
}
.login-v24.forgot-password .signin-intro strong {
  color: var(--ink);
  font-weight: 600;
}
.login-v24.forgot-password .support-links.no-rule {
  border-top: 0;
  padding-top: 8px;
}
.login-v24.forgot-password .text-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.login-v24.forgot-password .text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

