/* Auth pages: full-viewport split matching the signup mock. */

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background: #f7f9fc;
  padding: 0 !important;
  min-height: 100vh;
  align-items: stretch !important;
}

.auth-wrapper {
  background: transparent;
  padding: 0;
  box-shadow: none;
  animation: none;
  max-width: none;
  width: 100%;
  height: 100vh;
  border-radius: 0;
}

.auth-card {
  background: #f7f9fc;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  width: 100%;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0;
}

.auth-left {
  flex: 1 1 50%;
  width: 50%;
  min-width: 0;
  align-self: stretch;
  box-sizing: border-box;
  height: auto;
  max-height: none;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px 32px 32px;
  background-color: #f7f9fc;
  background-image:
    linear-gradient(rgba(15, 35, 70, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 35, 70, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0 6px;
  position: relative;
  top: auto;
  left: auto;
  right: auto;
}

.form-logo {
  height: 22px;
  max-height: 22px;
  width: auto;
  margin: 0;
}

.auth-switch {
  margin: 0;
  color: #5c6678;
  font-size: 0.8rem;
  text-align: right;
}

.auth-switch a {
  color: #003366;
  font-weight: 700;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-form-panel {
  flex: 0 0 auto;
  width: min(540px, 100%);
  margin: auto;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  /* Single border only — an extra 0 0 0 1px ring was drawing a stray gold line on the left */
  border: 1px solid rgba(254, 191, 15, 0.26);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 35, 70, 0.04),
    0 8px 16px rgba(15, 35, 70, 0.05),
    0 18px 40px rgba(15, 35, 70, 0.08);
  padding: 30px 34px 24px;
  justify-content: flex-start;
  overflow: visible;
  position: relative;
}

/* Kill the legacy 2px left gold divider from inline login/signup CSS */
.auth-form-panel::before {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  transform: none !important;
  background: none !important;
  box-shadow: none !important;
}

.auth-form-header {
  margin-bottom: 26px;
}

.auth-form-header h2 {
  color: #003366;
  font-size: 1.72rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.05;
}

.title-mark {
  background-image: linear-gradient(
    90deg,
    transparent,
    rgba(254, 191, 15, 0.25) 12%,
    #febf0f 32%,
    #febf0f 68%,
    rgba(254, 191, 15, 0.25) 88%,
    transparent
  );
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 calc(100% - 1px);
  padding-bottom: 2px;
}

.auth-form-header p {
  color: #7d8696;
  font-size: 0.86rem;
  margin-top: 6px;
  line-height: 1.35;
}

.auth-form-panel .form-row {
  gap: 12px;
}

.auth-form-panel .form-group {
  margin-bottom: 12px;
}

.auth-form-panel .form-group label {
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #3d4758;
}

.auth-form-panel .required {
  display: none;
}

.auth-form-panel .form-group input,
.auth-form-panel .form-group select {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  background: #f6f8fb;
  border: 1px solid #e6ebf2;
}

.step-indicator {
  display: none !important;
}

.password-hint {
  margin: -2px 0 20px;
  color: #8b93a3;
  font-size: 0.76rem;
}

.auth-legal {
  margin: 16px 0 0;
  text-align: center;
  color: #8b93a3;
  font-size: 0.76rem;
}

.auth-legal a {
  color: #003366;
  font-weight: 700;
  text-decoration: none;
}

.auth-legal a:hover {
  text-decoration: underline;
}

.auth-form-panel .auth-btn {
  border-radius: 20px;
  padding: 14px 16px;
  background: #febf0f;
  color: #1a1a1a;
  font-size: 0.95rem;
  margin-top: 4px;
}

.auth-links {
  margin-top: 14px;
}

.auth-showcase {
  flex: 0 0 50%;
  align-self: stretch;
  box-sizing: border-box;
  width: 50%;
  max-width: none;
  max-height: none;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  transform: none;
  border: none;
  border-left: 1.5px solid rgba(254, 191, 15, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 170, 0.22),
    inset 0 -1px 0 rgba(8, 28, 72, 0.35);
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 28px 48px 24px;
  border-radius: 32px 0 0 32px;
  background: linear-gradient(180deg, #0c3174 0%, #081c48 58%, #071433 100%);
  color: #fff;
}

.auth-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 54%, #000 28%, transparent 82%);
  pointer-events: none;
  z-index: 0;
}

/* Dimensional rim only — keep away from the headline so copy stays crisp */
.auth-showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, transparent 18%),
    radial-gradient(ellipse 70% 45% at 88% 8%, rgba(254, 191, 15, 0.08), transparent 50%);
  z-index: 0;
}

.showcase-copy,
.showcase-stats {
  position: relative;
  z-index: 2;
}

.orbit {
  position: relative;
}

.showcase-copy {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 2px 4px 0;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(6, 16, 40, 0.55);
  border: 1px solid rgba(254, 191, 15, 0.38);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.showcase-badge strong {
  color: #febf0f;
  font-weight: 700;
}

.showcase-copy h1 {
  margin: 0 auto;
  width: 100%;
  max-width: 11.6em;
  font-size: clamp(1.7rem, 2.3vw, 2.2rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 2px rgba(7, 20, 51, 0.35);
}

.showcase-copy h1 .tone,
.showcase-copy h1 .title-mark {
  color: #febf0f;
}

.orbit {
  position: absolute;
  inset: 0;
  flex: none;
  width: auto;
  min-height: 0;
  margin: 0;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.orbit-field {
  position: absolute;
  left: calc(50% - 140px);
  top: calc(50% - 140px);
  width: 280px;
  height: 280px;
}

.orbit-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit-ring,
.orbit-glyph,
.orbit-core,
.orbit-beams,
.orbit-dot {
  position: absolute;
  pointer-events: none;
}

.orbit-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orbit-rings circle {
  fill: none;
  stroke: rgba(254, 191, 15, 0.5);
  stroke-width: 0.28;
  stroke-dasharray: 0.85 1.65;
  stroke-linecap: round;
  transform-origin: center;
  transform-box: view-box;
}

.orbit-rings .ring-a { animation: ringSpinSvg 28s linear infinite; }
.orbit-rings .ring-b { animation: ringSpinSvg 40s linear infinite reverse; stroke: rgba(254, 191, 15, 0.4); }
.orbit-rings .ring-c { animation: ringSpinSvg 54s linear infinite; stroke: rgba(254, 191, 15, 0.3); }

.orbit-beams {
  /* Match outer CSS ring size/center so spokes touch the ring (never stretch the SVG) */
  position: absolute;
  top: 53.7%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: 54.2%;
  height: auto;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  overflow: visible;
  z-index: 2;
  pointer-events: none;
}

.orbit-beams path.beam-line {
  fill: none;
  stroke: rgba(254, 191, 15, 0.34);
  stroke-width: 0.75;
  stroke-dasharray: 1.6 4.2;
  stroke-linecap: round;
}

.orbit-beams path.beam-motion {
  fill: none;
  stroke: none;
}

.orbit-beams circle {
  fill: #febf0f;
}

.orbit-beams circle.ring {
  fill: none;
  stroke: rgba(254, 191, 15, 0.5);
  stroke-width: 1.15;
  stroke-dasharray: 2.2 3.8;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
}

.orbit-beams circle.ring-b { stroke: rgba(254, 191, 15, 0.4); animation: ringSpinSvg 40s linear infinite reverse; }
.orbit-beams circle.ring-a { animation: ringSpinSvg 28s linear infinite; }
.orbit-beams circle.ring-c { stroke: rgba(254, 191, 15, 0.32); animation: ringSpinSvg 54s linear infinite; }

.orbit-beams text.glyph {
  fill: rgba(254, 191, 15, 0.8);
  stroke: none;
  font-size: 14px;
  font-weight: 700;
  font-family: Inter, "Segoe UI", sans-serif;
}

.orbit-beams .glyph path {
  fill: none;
  stroke: rgba(254, 191, 15, 0.75);
  stroke-width: 1.7;
  stroke-dasharray: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orbit-beams .spark path {
  fill: #febf0f;
  stroke: none;
  stroke-dasharray: none;
}

.orbit-beams .spoke-mover {
  fill: rgba(254, 191, 15, 0.75);
  filter: drop-shadow(0 0 3px rgba(254, 191, 15, 0.45));
}

.orbit-glyph {
  color: rgba(254, 191, 15, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 2;
  line-height: 1;
}

.orbit-glyph--code { top: 15%; left: 60%; }
.orbit-glyph--hash { right: 8%; top: 46%; }
.orbit-glyph--pen { left: 46%; top: 71%; }
.orbit-glyph--mega {
  left: 7%;
  top: 44%;
  display: grid;
  place-items: center;
}

.orbit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #febf0f;
  box-shadow: 0 0 8px rgba(254, 191, 15, 0.8);
  z-index: 2;
}

.orbit-dot--ne { top: 27%; right: 27%; }
.orbit-dot--se { bottom: 27%; right: 27%; }
.orbit-dot--sw { bottom: 27%; left: 27%; }
.orbit-dot--nw { top: 27%; left: 27%; }

.orbit-core {
  left: 50%;
  top: 53.7%;
  width: 12.32%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #071a42;
  box-shadow:
    0 0 0 3px rgba(254, 191, 15, 0.45),
    0 0 18px rgba(254, 191, 15, 0.35);
  z-index: 6;
}

/* True circles around the core — not SVG stretched by the tall panel */
.orbit-core::before,
.orbit-core::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  box-sizing: border-box;
  border: 1.35px dashed rgba(254, 191, 15, 0.5);
  pointer-events: none;
  z-index: -1;
}

.orbit-core::before {
  width: 280%;
  height: 280%;
  transform: translate(-50%, -50%);
  animation: orbitHaloSpin 28s linear infinite;
}

.orbit-core::after {
  width: 440%;
  height: 440%;
  border-color: rgba(254, 191, 15, 0.38);
  transform: translate(-50%, -50%);
  animation: orbitHaloSpin 40s linear infinite reverse;
}

.orbit-core img {
  width: 64%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.orbit-card {
  position: absolute;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  gap: 8px;
  width: 31.73%;
  padding: 6px 12px 6px 6px;
  border-radius: 20px;
  background: #fff;
  color: #0b1f44;
  border: 1.5px solid rgba(254, 191, 15, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(254, 191, 15, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.18);
  z-index: 4;
  pointer-events: none;
}

.orbit-card strong {
  display: block;
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #10284f;
}

.orbit-card--nw { top: 26.9%; left: 5.74%; }
.orbit-card--ne { top: 26.9%; right: 6.75%; }
.orbit-card--sw { top: 72.5%; left: 5.74%; }
.orbit-card--se { top: 72.5%; right: 6.75%; }

.orbit-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0c3d8c;
  color: #febf0f;
}

.orbit-icon svg {
  width: 18px;
  height: 18px;
}

.showcase-stats {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: auto;
  z-index: 5;
  padding: 4px 0 2px;
}

.showcase-stat {
  text-align: center;
}

.showcase-stat strong {
  display: block;
  color: #febf0f;
  font-size: clamp(2rem, 2.8vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.showcase-stat span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
}

.showcase-rule {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.28);
}

@keyframes ringSpinSvg {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitHaloSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-rings circle,
  .orbit-beams circle,
  .orbit-core::before,
  .orbit-core::after {
    animation: none !important;
  }
}

@media (max-height: 760px) {
  .auth-showcase { padding: 14px 16px 12px; }
  .showcase-copy { gap: 8px; }
  .showcase-copy h1 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); }
  .orbit-field { left: calc(50% - 110px); top: calc(50% - 110px); width: 220px; height: 220px; }
  .orbit-core { width: 64px; height: 64px; }
  .orbit-core svg { width: 28px; height: 28px; }
  .orbit-card { padding: 6px 12px 6px 6px; }
  .orbit-card strong { font-size: 13px; }
  .orbit-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .orbit-icon svg { width: 18px; height: 18px; }
}

@media (max-width: 900px) {
  html, body { overflow: auto; height: auto; }
  .auth-wrapper, .auth-card { height: auto; min-height: 100vh; }
  .auth-card { flex-direction: column; padding: 12px; gap: 14px; }
  .auth-left,
  .auth-showcase { flex: none; width: 100%; max-width: none; height: auto; max-height: none; }
  .auth-left { padding: 20px 16px 12px; position: static; }
  .auth-topbar { position: static; top: auto; left: auto; right: auto; width: 100%; margin: 0 0 18px; }
  .auth-form-panel { width: 100%; margin: 0 auto; }
  .auth-showcase {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    min-height: 0;
    overflow: hidden;
    border: 1.5px solid rgba(254, 191, 15, 0.5);
    border-left: 1.5px solid rgba(254, 191, 15, 0.5);
    border-radius: 22px;
    padding: 20px 14px 16px;
    margin: 0;
    transform: none;
  }
  .showcase-copy {
    position: relative;
    z-index: 3;
    padding: 0 4px;
  }
  .showcase-copy h1 {
    font-size: clamp(1.2rem, 5.2vw, 1.45rem);
    line-height: 1.28;
    max-width: 16em;
  }

  /* Square stage so rings stay true circles on narrow phones */
  .orbit {
    position: relative;
    inset: auto;
    width: min(100%, 340px);
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 10px auto 6px;
    overflow: visible;
  }
  .orbit-beams {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 210px;
    height: 210px;
    transform: translate(-50%, -50%);
  }
  .orbit-core {
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    aspect-ratio: 1 / 1;
  }
  .orbit-core::before,
  .orbit-core::after {
    /* Fixed equal sizes — avoid % height bugs when width/height media rules collide */
    left: 50%;
    top: 50%;
  }
  .orbit-core::before {
    width: 132px;
    height: 132px;
  }
  .orbit-core::after {
    width: 210px;
    height: 210px;
  }
  .orbit-card {
    width: min(48%, 148px);
    padding: 5px 8px 5px 5px;
    gap: 6px;
    border-radius: 16px;
  }
  .orbit-card--nw { top: 10%; left: 0; }
  .orbit-card--ne { top: 10%; right: 0; }
  .orbit-card--sw { top: auto; bottom: 10%; left: 0; }
  .orbit-card--se { top: auto; bottom: 10%; right: 0; }
  .orbit-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .orbit-icon svg { width: 14px; height: 14px; }
  .orbit-card strong { font-size: 10.5px; line-height: 1.15; }
  .showcase-stats { margin-top: 8px; gap: 18px; position: relative; z-index: 3; }
  .showcase-stat strong { font-size: 1.55rem; }
}

@media (max-width: 900px) and (max-height: 760px) {
  /* Keep core/rings square when both mobile + short-height rules apply */
  .orbit-core {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 380px) {
  .orbit {
    width: min(100%, 300px);
  }
  .orbit-core {
    width: 46px;
    height: 46px;
  }
  .orbit-core::before {
    width: 116px;
    height: 116px;
  }
  .orbit-core::after {
    width: 184px;
    height: 184px;
  }
  .orbit-beams {
    width: 184px;
    height: 184px;
  }
  .orbit-card {
    width: min(49%, 132px);
    padding: 4px 6px 4px 4px;
  }
  .orbit-card strong { font-size: 9.5px; }
  .orbit-icon { width: 26px; height: 26px; flex-basis: 26px; }
}
