/* Senior Figma-style 50/50 Split Auth Screen for Sign In & Sign Up */

body.landing #login.px-auth-split,
body.landing #register.px-auth-split {
  min-height: 100vh;
  width: 100%;
  padding: 0;
  margin: 0;
  display: block;
  background: #09090b !important;
}

.px-auth-shell {
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: stretch;
}

/* ── Left Half: Unboxed, Airy, Focused Auth Form ── */
.px-auth-form-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  background: #09090b;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.px-auth-form-wrap {
  width: 100%;
  max-width: 390px;
}

.px-auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.px-auth-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fafafa;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.px-auth-wordmark img,
body.landing #login.px-auth-split .px-auth-wordmark img,
body.landing #register.px-auth-split .px-auth-wordmark img,
body.landing #login.px-auth-split .px-stage-logo,
body.landing #register.px-auth-split .px-stage-logo {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  display: block !important;
  object-fit: contain !important;
}

.px-auth-wordmark img {
  width: 28px !important;
  height: 28px !important;
  border-radius: 7px !important;
}

/* Segmented Sign In / Sign Up Switcher (SmartSave-inspired) */
.px-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  border-radius: 11px;
  background: #131316;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.px-auth-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #8f8f99 !important;
  text-decoration: none !important;
  transition: color 0.16s ease, background 0.16s ease;
}

.px-auth-tab:hover {
  color: #e4e4e7 !important;
}

.px-auth-tab.is-current {
  background: #202026;
  color: #fafafa !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Strip bulky glass box from default landing form rule */
body.landing #login.px-auth-split form,
body.landing #register.px-auth-split form {
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.landing #login.px-auth-split h1,
body.landing #register.px-auth-split h1 {
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  color: #fafafa !important;
  margin: 0 0 6px !important;
}

body.landing #login.px-auth-split .px-auth-sub,
body.landing #register.px-auth-split .px-auth-sub {
  font-size: 14px !important;
  color: #8e8e98 !important;
  margin: 0 0 22px !important;
}

body.landing #login.px-auth-split .auth-input,
body.landing #register.px-auth-split .auth-input {
  height: 46px !important;
  min-height: 46px !important;
  background: #121215 !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 10px !important;
  font-size: 14px !important;
}

body.landing #login.px-auth-split .auth-input:focus,
body.landing #register.px-auth-split .auth-input:focus {
  background: #151519 !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07) !important;
}

body.landing #login.px-auth-split p.px-auth-error,
body.landing #register.px-auth-split p.px-auth-error {
  color: var(--ds-danger, #f87171) !important;
  font-size: 13.5px !important;
  margin: 0;
}

body.landing #login.px-auth-split p.px-auth-success {
  color: var(--ds-success, #86efac) !important;
  font-size: 13.5px !important;
  margin: 0;
}

body.landing #login.px-auth-split .px-auth-forgot {
  text-align: right;
  margin: -4px 0 14px;
}

body.landing #login.px-auth-split .px-auth-forgot a {
  font-size: 12.5px;
  font-weight: 500;
  color: #a1a1aa;
  text-decoration: none;
}

body.landing #login.px-auth-split .px-auth-forgot a:hover {
  color: #fafafa;
}

/* ── Right Half: Distinct Elevated Inset Showcase Stage (Voice Aura inspired) ── */
.px-auth-promo-col {
  display: flex;
  padding: 18px 18px 18px 18px;
  background: #09090b;
  min-width: 0;
}

.px-stage {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 36px);
  padding: 28px 34px 24px;
  border-radius: 22px;
  background: #131318;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 24px 60px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  isolation: isolate;
}

/* Dot-Matrix Halftone + Polaris Magenta-Rose Ambient Glow */
.px-stage-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.px-stage-halftone {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.3px, transparent 1.3px);
  background-size: 14px 14px;
  opacity: 0.42;
  mask-image: radial-gradient(ellipse 74% 64% at 50% 45%, #000 18%, rgba(0, 0, 0, 0.38) 60%, transparent 94%);
  -webkit-mask-image: radial-gradient(ellipse 74% 64% at 50% 45%, #000 18%, rgba(0, 0, 0, 0.38) 60%, transparent 94%);
}

.px-stage-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(76px);
}

.px-stage-glow-a {
  width: 420px;
  height: 340px;
  top: 12%;
  right: -8%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.24), transparent 70%);
}

.px-stage-glow-b {
  width: 380px;
  height: 300px;
  bottom: 10%;
  left: -10%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.14), transparent 70%);
}

/* Stage Header */
.px-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.px-stage-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f4f4f5;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.px-stage-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: contain;
}

.px-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
  font-size: 11.5px;
  font-weight: 600;
}

.px-stage-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #86efac;
  box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.2);
}

/* Viewport & Slides */
.px-stage-viewport {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  align-items: center;
}

.px-stage-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.42s;
}

.px-stage-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

/* Floating UI Mockup + Spatial Pins */
.px-hero-scene {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 12px auto 0;
  padding: 28px 18px;
}

.px-float-pin {
  position: absolute;
  display: flex;
  align-items: center;
  z-index: 2;
}

.px-pin-tl {
  top: 2px;
  left: 6px;
}

.px-pin-br {
  bottom: 2px;
  right: 6px;
}

.px-pin-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 11px;
  border-radius: 11px;
  background: #1b1b22;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #fafafa;
  font-size: 14px;
  font-weight: 600;
}

.px-pin-text {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.px-pin-line {
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.9), rgba(244, 63, 94, 0.25));
}

.px-pin-br .px-pin-line {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.25), rgba(244, 63, 94, 0.9));
}

/* Centerpiece Glass UI Card */
.px-glass-card {
  position: relative;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(18, 18, 24, 0.88);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 56px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.px-glass-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.px-glass-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #9ca3af;
}

.px-glass-tab.is-on {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fafafa;
}

.px-glass-tab-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(134, 239, 172, 0.12);
  border: 1px solid rgba(134, 239, 172, 0.25);
  color: #86efac;
  font-size: 11px;
  font-weight: 600;
}

#login .px-stage p.px-glass-lead,
#register .px-stage p.px-glass-lead {
  margin: 0;
  font-size: 13.5px !important;
  line-height: 1.55;
  color: #d4d4d8 !important;
}

.px-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.px-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e4e4e7;
  font-size: 12px;
  font-weight: 500;
}

.px-chip.is-accent {
  background: rgba(255, 255, 255, 0.94);
  border-color: #ffffff;
  color: #09090b;
  font-weight: 600;
}

.px-glass-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.px-launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.34);
  color: #fda4af;
  font-size: 11.5px;
  font-weight: 600;
}

.px-launch-note {
  font-size: 12px;
  color: #a1a1aa;
}

/* Slide 2 Interactive Launcher Card */
.px-mock-window {
  padding: 14px;
  border-radius: 12px;
  background: rgba(10, 10, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.px-mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.px-mock-label {
  font-size: 11px;
  color: #71717a;
  font-weight: 500;
  margin-bottom: 2px;
}

.px-mock-val {
  font-size: 13.5px;
  font-weight: 600;
  color: #fafafa;
}

.px-mock-status {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d4d4d8;
  font-size: 11px;
  font-weight: 600;
}

.px-mock-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border-radius: 10px;
  background: #fafafa;
  color: #09090b;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.08);
}

.px-step-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 4px;
}

.px-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
  font-size: 11.5px;
  font-weight: 500;
}

.px-step-pill strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #fafafa;
}

.px-step-arrow {
  color: #52525b;
  font-size: 14px;
  font-weight: 700;
}

/* Slide 4 Shark Card Comparison */
.px-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.px-compare-col {
  padding: 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.px-compare-col.is-muted {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.px-compare-col.is-winner {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(244, 63, 94, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.px-compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.px-compare-name {
  font-size: 12px;
  font-weight: 600;
  color: #d4d4d8;
}

.px-compare-col.is-winner .px-compare-name {
  color: #fafafa;
}

.px-compare-tag {
  padding: 2px 7px;
  border-radius: 999px;
  background: #86efac;
  color: #09090b;
  font-size: 10.5px;
  font-weight: 700;
}

.px-compare-price {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fafafa;
  line-height: 1.1;
}

.px-compare-price.is-strike {
  color: #71717a;
  text-decoration: line-through;
}

.px-compare-list {
  margin: 2px 0 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: #a1a1aa;
}

.px-compare-col.is-winner .px-compare-list {
  color: #e4e4e7;
}

/* Slide 3 Discord Button */
.px-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9px;
  background: #5865f2;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: filter 0.15s ease;
}

.px-discord-btn:hover {
  filter: brightness(1.08);
}

/* Bottom Editorial Headline inside Slide */
.px-editorial {
  max-width: 500px;
}

.px-editorial-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #fafafa;
}

#login .px-stage p.px-editorial-sub,
#register .px-stage p.px-editorial-sub {
  margin: 0;
  font-size: 14px !important;
  line-height: 1.5;
  color: #a1a1aa !important;
}

/* Footer & 5.5s Loading Pills */
.px-stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.px-stage-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fafafa;
  font-variant-numeric: tabular-nums;
}

.px-counter-sep {
  color: #71717a;
  font-weight: 500;
}

.px-counter-name {
  margin-left: 6px;
  color: #a1a1aa;
  font-weight: 500;
}

.px-stage-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.px-stage-dots button.px-dot {
  position: relative !important;
  display: block !important;
  flex: 0 0 auto !important;
  width: 24px !important;
  min-width: 0 !important;
  height: 7px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  cursor: pointer !important;
  line-height: 0 !important;
  font-size: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease !important;
}

.px-stage-dots button.px-dot:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

.px-stage-dots button.px-dot.is-active {
  width: 58px !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

.px-dot-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fafafa;
  transform-origin: left center;
  transform: scaleX(0);
}

/* Responsive Tablet & Mobile */
@media (max-width: 991.98px) {
  .px-auth-shell {
    grid-template-columns: 1fr;
  }

  .px-auth-form-col {
    padding: 32px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .px-auth-promo-col {
    padding: 16px;
  }

  .px-stage {
    min-height: 0;
    padding: 22px 18px 18px;
  }

  .px-hero-scene {
    padding: 20px 4px;
  }

  .px-float-pin {
    display: none;
  }

  .px-compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .px-stage-slide,
  .px-stage-dots button.px-dot {
    transition: none !important;
  }
  .px-dot.is-active .px-dot-fill {
    animation: none;
    transform: scaleX(1);
  }
}
