:root {
  --lp-bg: #070a12;
  --lp-bg-card: #0c1019;
  --lp-bg-alt: #10141f;
  --lp-glass: rgba(255, 255, 255, 0.04);
  --lp-border: rgba(255, 255, 255, 0.1);
  --lp-border-soft: rgba(255, 255, 255, 0.07);
  --lp-text: #f1f5f9;
  --lp-muted: #94a3b8;
  --lp-brand: #2968b2;
  --lp-brand-strong: #1f5a9e;
  --lp-accent: #e08830;
  --lp-accent-strong: #c87520;
  --lp-danger: #ef4444;
  --lp-ok: #10b981;
}

html[data-theme="light"],
html[data-theme="dark"] {
  --bg: var(--lp-bg) !important;
  --surface: var(--lp-bg-card) !important;
  --line: var(--lp-border) !important;
  --ink: var(--lp-text) !important;
  --muted: var(--lp-muted) !important;
  --brand: var(--lp-brand) !important;
  --brand-strong: var(--lp-brand-strong) !important;
}

body {
  background:
    radial-gradient(700px 360px at 6% -8%, rgba(224, 136, 48, 0.2), transparent 65%),
    radial-gradient(780px 400px at 95% -10%, rgba(41, 104, 178, 0.22), transparent 66%),
    linear-gradient(180deg, var(--lp-bg) 0%, #090d16 100%) !important;
  color: var(--lp-text) !important;
}

.top {
  border-bottom: 1px solid var(--lp-border-soft) !important;
  background: rgba(7, 10, 18, 0.86) !important;
}

.container {
  width: min(1180px, 94%) !important;
}

.top-wrap {
  padding: 14px 0 !important;
}

.brand img {
  height: 42px !important;
}

.btn-soft {
  color: var(--lp-text) !important;
  border-color: var(--lp-border) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.btn-soft:hover {
  border-color: rgba(224, 136, 48, 0.45) !important;
  background: rgba(224, 136, 48, 0.12) !important;
}

.btn-brand {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-strong)) !important;
  box-shadow: 0 8px 22px rgba(224, 136, 48, 0.24);
}

.btn-brand:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.page {
  padding: 22px 0 20px !important;
}

.layout {
  max-width: 1180px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 22px !important;
  align-items: stretch;
}

.panel,
.side {
  display: block !important;
  border-radius: 22px;
  border: 1px solid var(--lp-border-soft);
  background:
    radial-gradient(500px 240px at 0% 0%, rgba(41, 104, 178, 0.16), transparent 64%),
    radial-gradient(500px 240px at 100% 100%, rgba(224, 136, 48, 0.14), transparent 64%),
    var(--lp-bg-alt);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
}

.panel-content,
.side-content {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.kicker,
.badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 12px !important;
  border: 1px solid rgba(224, 136, 48, 0.5) !important;
  color: #ffd7ad !important;
  background: rgba(224, 136, 48, 0.13) !important;
  font-weight: 800 !important;
  font-size: 0.75rem !important;
}

h1,
h2,
.auth-head h2,
.step-title {
  color: #f8fbff !important;
}

.lead,
.intro,
.auth-head p,
.help,
.switch,
.mode-text,
.preview ul li,
.list li {
  color: var(--lp-muted) !important;
}

.benefits,
.list,
.preview ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.benefits li,
.list li,
.preview ul li {
  color: #d9e6ff;
  font-size: 0.92rem;
  position: relative;
  padding-left: 18px;
}

.benefits li::before,
.list li::before,
.preview ul li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-brand));
  position: absolute;
  left: 0;
  top: 0.48rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  border: 1px solid var(--lp-border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 2px;
  color: #fff;
}

.stat span {
  color: var(--lp-muted) !important;
  font-size: 0.75rem;
}

.auth,
.card {
  border: 1px solid var(--lp-border-soft) !important;
  border-radius: 22px !important;
  background: rgba(12, 16, 25, 0.96) !important;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4) !important;
}

.status,
.warning,
.error-box,
.wizard,
.step,
.help,
.preview {
  border-color: var(--lp-border) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.status {
  color: #86efac !important;
}

.warning {
  color: #fdba74 !important;
}

.error-box {
  color: #fda4af !important;
}

.input,
.select {
  border-color: var(--lp-border) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #f5f9ff !important;
}

.input::placeholder {
  color: #8ea2c5 !important;
}

.select option {
  color: #0f274c !important;
  background: #fff !important;
}

.input:focus,
.select:focus {
  border-color: rgba(224, 136, 48, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(224, 136, 48, 0.18) !important;
}

.link,
.switch a,
.terms a {
  color: #ffb366 !important;
}

.mode {
  border-color: var(--lp-border) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

.mode.active {
  border-color: rgba(224, 136, 48, 0.56) !important;
  background: rgba(224, 136, 48, 0.13) !important;
}

#wizardBar {
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-brand)) !important;
}

.feedback.ok {
  color: #6ee7b7 !important;
}

.feedback.warn {
  color: #fdba74 !important;
}

.feedback.err {
  color: #fca5a5 !important;
}

footer {
  color: #8ea2c5 !important;
}

/* LP animations for login and signup */
.panel,
.side,
.auth,
.card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.panel::before,
.side::before,
.auth::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 62px 62px;
  background-position: 0 0;
  opacity: 0.7;
  pointer-events: none;
  animation: authGridDrift 22s linear infinite;
  z-index: 0;
}

.panel::after,
.side::after,
.auth::after,
.card::after {
  content: "";
  position: absolute;
  left: -28%;
  right: -28%;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(224, 136, 48, 0.8), rgba(41, 104, 178, 0.8), transparent);
  opacity: 0.55;
  pointer-events: none;
  animation: authSweep 6.8s ease-in-out infinite;
  z-index: 0;
}

.panel-content,
.side-content {
  position: relative;
  z-index: 1;
}

.auth > *,
.card > * {
  position: relative;
  z-index: 1;
}

.panel,
.side {
  animation: authCardFloat 8s ease-in-out infinite;
}

.panel-content h1,
.side-content h2 {
  background: linear-gradient(112deg, #f8fbff 0%, #f8fbff 36%, #ffd7ad 57%, #9bc2ff 76%, #f8fbff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: authHeadingShine 8.6s ease-in-out infinite;
}

.panel-content > *,
.side-content > * {
  opacity: 0;
  transform: translateY(14px);
  animation: authReveal 0.66s ease forwards;
}

.panel-content > :nth-child(1),
.side-content > :nth-child(1) { animation-delay: 0.04s; }
.panel-content > :nth-child(2),
.side-content > :nth-child(2) { animation-delay: 0.12s; }
.panel-content > :nth-child(3),
.side-content > :nth-child(3) { animation-delay: 0.2s; }
.panel-content > :nth-child(4),
.side-content > :nth-child(4) { animation-delay: 0.28s; }
.panel-content > :nth-child(5),
.side-content > :nth-child(5) { animation-delay: 0.36s; }
.panel-content > :nth-child(6),
.side-content > :nth-child(6) { animation-delay: 0.44s; }
.panel-content > :nth-child(7),
.side-content > :nth-child(7) { animation-delay: 0.52s; }
.panel-content > :nth-child(8),
.side-content > :nth-child(8) { animation-delay: 0.6s; }

.benefits li,
.list li,
.preview ul li {
  opacity: 0;
  transform: translateX(-10px);
  animation: authListIn 0.58s ease forwards;
}

.benefits li:nth-child(1),
.list li:nth-child(1),
.preview ul li:nth-child(1) { animation-delay: 0.22s; }
.benefits li:nth-child(2),
.list li:nth-child(2),
.preview ul li:nth-child(2) { animation-delay: 0.31s; }
.benefits li:nth-child(3),
.list li:nth-child(3),
.preview ul li:nth-child(3) { animation-delay: 0.4s; }
.benefits li:nth-child(4),
.list li:nth-child(4) { animation-delay: 0.49s; }
.benefits li:nth-child(5),
.list li:nth-child(5) { animation-delay: 0.58s; }
.benefits li:nth-child(6),
.list li:nth-child(6) { animation-delay: 0.67s; }

.benefits li::before,
.list li::before,
.preview ul li::before {
  box-shadow: 0 0 10px rgba(224, 136, 48, 0.45);
  animation: authDotPulse 2.6s ease-in-out infinite;
}

.stats .stat {
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  animation: authStatBreath 4.2s ease-in-out infinite;
}

.stats .stat:nth-child(2) { animation-delay: 0.25s; }
.stats .stat:nth-child(3) { animation-delay: 0.5s; }

.stats .stat:hover {
  transform: translateY(-2px);
  border-color: rgba(224, 136, 48, 0.42);
  box-shadow: 0 10px 28px rgba(224, 136, 48, 0.2);
}

.panel-content {
  padding-bottom: 32px;
}

.panel-content::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 176px;
  height: 14px;
  background:
    radial-gradient(circle 4px at 8px 7px, rgba(224, 136, 48, 0.95) 98%, transparent 100%),
    radial-gradient(circle 4px at 28px 7px, rgba(255, 255, 255, 0.24) 98%, transparent 100%),
    radial-gradient(circle 4px at 48px 7px, rgba(255, 255, 255, 0.24) 98%, transparent 100%),
    radial-gradient(circle 4px at 68px 7px, rgba(255, 255, 255, 0.24) 98%, transparent 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)) 90px 6px / 84px 2px no-repeat;
  pointer-events: none;
  z-index: 1;
}

.panel-content::before {
  content: "";
  position: absolute;
  left: 90px;
  bottom: 6px;
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(224, 136, 48, 0.95), rgba(224, 136, 48, 0.7));
  box-shadow: 0 0 8px rgba(224, 136, 48, 0.5);
  animation: authTrackSlide 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.auth,
.card {
  animation: authFormRise 0.74s ease both;
}

@keyframes authGridDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 62px, 62px 0; }
}

@keyframes authSweep {
  0%, 100% { transform: translateX(-12%); opacity: 0.36; }
  50% { transform: translateX(12%); opacity: 0.74; }
}

@keyframes authCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes authHeadingShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes authReveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes authListIn {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes authDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.82); opacity: 0.56; }
}

@keyframes authStatBreath {
  0%, 100% { transform: translateY(0); border-color: var(--lp-border-soft); }
  50% { transform: translateY(-2px); border-color: rgba(224, 136, 48, 0.36); }
}

@keyframes authTrackSlide {
  0%, 100% { transform: translateX(0); width: 34px; }
  50% { transform: translateX(50px); width: 54px; }
}

@keyframes authFormRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .panel,
  .side,
  .auth,
  .card,
  .panel::before,
  .side::before,
  .auth::before,
  .card::before,
  .panel::after,
  .side::after,
  .auth::after,
  .card::after,
  .panel-content > *,
  .side-content > *,
  .benefits li,
  .list li,
  .preview ul li,
  .stats .stat,
  .panel-content::before,
  .benefits li::before,
  .list li::before,
  .preview ul li::before {
    animation: none !important;
    transition: none !important;
  }

  .panel-content > *,
  .side-content > *,
  .benefits li,
  .list li,
  .preview ul li {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .panel,
  .side {
    display: none !important;
  }

  .container {
    width: min(560px, 94%) !important;
  }

  .top-wrap {
    padding: calc(10px + env(safe-area-inset-top)) 0 10px !important;
  }
}
