/* 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: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: 16px 18px 16px 12px;
  --card-w: min(calc((100vh - 32px) * 608 / 662), calc(100vw - 600px));
}

.auth-left {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  align-self: stretch;
  box-sizing: border-box;
  height: auto;
  max-height: none;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  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: min(540px, calc(100% - 16px));
  margin: 0 auto;
  padding: 0 6px;
  position: absolute;
  top: calc(50% - (var(--card-w) * 662 / 608) / 2 + 44px);
  left: 0;
  right: 0;
}

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

.auth-switch {
  margin: 0;
  color: #8b93a3;
  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: 0 auto;
  background: #fff;
  border: 1px solid rgba(254, 191, 15, 0.28);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(254, 191, 15, 0.05),
    0 0 22px rgba(254, 191, 15, 0.08),
    0 16px 40px rgba(15, 35, 70, 0.05);
  padding: 30px 34px 24px;
  justify-content: flex-start;
  overflow: visible;
}

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

.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 auto;
  align-self: center;
  box-sizing: border-box;
  width: var(--card-w);
  max-width: none;
  max-height: calc(100vh - 32px);
  height: calc(var(--card-w) * 662 / 608);
  aspect-ratio: 608 / 662;
  margin-left: 0;
  border: 1px solid rgba(254, 191, 15, 0.22);
  box-shadow:
    0 0 0 1px rgba(254, 191, 15, 0.04),
    0 0 22px rgba(254, 191, 15, 0.06);
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 16px 44px 12px;
  border-radius: 20px;
  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;
}

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

.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;
}

.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 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
}

.orbit-beams path {
  fill: none;
  stroke: rgba(254, 191, 15, 0.72);
  stroke-width: 1.35;
  stroke-dasharray: 2.2 3.6;
  stroke-linecap: round;
}

.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 {
  filter: drop-shadow(0 0 4px rgba(254, 191, 15, 0.85));
}

.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;
}

.orbit-core img {
  width: 64%;
  height: auto;
  display: block;
}

.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;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  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); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-rings circle,
  .orbit-beams circle {
    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; }
  .auth-left,
  .auth-showcase { flex: none; width: 100%; max-width: none; height: auto; max-height: none; }
  .auth-left { padding: 20px 16px 28px; position: static; }
  .auth-topbar { position: static; top: auto; left: auto; right: auto; width: min(540px, 100%); margin: 0 auto 18px; }
  .auth-form-panel { width: 100%; margin: 28px auto 0; }
  .auth-showcase {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    min-height: 0;
    overflow: visible;
    border-radius: 22px;
    padding: 22px 16px 18px;
  }
  .showcase-copy { position: relative; z-index: 3; }
  .showcase-copy h1 { font-size: 1.35rem; line-height: 1.3; max-width: 16em; }
  .orbit {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 608 / 662;
    margin: 4px 0 2px;
    overflow: visible;
  }
  .orbit-beams { top: -14%; height: 100%; bottom: auto; }
  .orbit-core { top: calc(53.7% - 14%); width: 16%; }
  .orbit-card { width: 44%; padding: 5px 8px 5px 5px; }
  .orbit-card--nw { top: calc(26.9% - 14%); left: 1.5%; }
  .orbit-card--ne { top: calc(26.9% - 14%); right: 1.5%; }
  .orbit-card--sw { top: calc(72.5% - 14%); left: 1.5%; }
  .orbit-card--se { top: calc(72.5% - 14%); right: 1.5%; }
  .orbit-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .showcase-stats { margin-top: 4px; gap: 18px; }
  .showcase-stat strong { font-size: 1.7rem; }
  .orbit-card strong { font-size: 11px; line-height: 1.15; }
}
