/* Extracted verbatim from index.php */
:root {
  --ink:        #07080f;
  --ink-2:      #0b0d18;
  --glass:      rgba(20, 23, 40, 0.55);
  --glass-2:    rgba(28, 32, 54, 0.45);
  --glass-line: rgba(255, 255, 255, 0.09);
  --glass-line-2: rgba(255, 255, 255, 0.16);
  --text:       #ece8dd;
  --muted:      #8b90ab;
  --dim:        #565b78;
  --gold:       #e8c97a;
  --gold-2:     #f3d98f;
  --violet:     #7a5aff;
  --violet-2:   #9a7aff;
  --radius:     18px;
  --radius-sm:  12px;
  --blur:       blur(22px) saturate(140%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
  background: var(--ink);
  color: var(--text);
  height: 100vh;
  height: 100dvh;            /* track the VISIBLE viewport (mobile URL bar) */
  display: flex;
  position: relative;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient gradient field behind everything */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 18% 30%, rgba(122, 90, 255, 0.20) 0%, transparent 60%),
    radial-gradient(50% 50% at 85% 75%, rgba(232, 201, 122, 0.12) 0%, transparent 60%),
    radial-gradient(70% 70% at 50% 110%, rgba(122, 90, 255, 0.10) 0%, transparent 55%);
}

#particles-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: .4;
}

/* ── LEFT HERO ─────────────────────────────────── */
.hero {
  flex: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #f4f1e8;
  text-align: center;
  margin-bottom: .85rem;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 40px rgba(122,90,255,.25);
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 60%, #c8a040);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: .9rem;
  color: var(--muted);
  text-align: center;
  max-width: 340px;
  line-height: 1.75;
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}

/* ── SVG TREE ILLUSTRATION ─────────────────────── */
.tree-illustration {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
}

/* Glowing orbs behind tree */
.hero::before {
  content: '';
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,90,255,.22) 0%, transparent 68%);
  top: 32%; left: 50%; transform: translate(-50%, -50%);
  z-index: 0;
  filter: blur(8px);
}

/* Legend */
.legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.2rem;
  position: relative;
  z-index: 2;
}
.lr { display: flex; align-items: center; gap: .4rem; font-size: .73rem; color: #8a8fa8; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* ── RIGHT FORM PANEL ──────────────────────────── */
.panel {
  width: 100%;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  display: flex;
  /* flex-start + auto margins on .box: vertically centred when it fits, but
     scrollable from the top when a wizard step is taller than the screen
     (align-items:center would clip the top and block scrolling). */
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1.25rem;
  height: 100vh;
  height: 100dvh;           /* match visible area so content can overflow + scroll */
  position: relative;
  z-index: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-left: 1px solid var(--glass-line);
}

.box {
  width: 100%; max-width: 410px;
  margin-top: auto;
  margin-bottom: auto;
}

.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .15rem;
}
.brand-sub { font-size: .78rem; color: var(--muted); margin-bottom: 1.6rem; }

/* Tabs */
.tabs {
  display: flex;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--glass-line);
  border-radius: 13px;
  padding: 4px;
  margin-bottom: 1.5rem;
  gap: 3px;
}
.tab {
  flex: 1; padding: .6rem .5rem;
  border-radius: 10px; font-size: .85rem;
  cursor: pointer; color: var(--muted);
  border: none; background: none;
  font-family: inherit; font-weight: 500;
  transition: all .2s cubic-bezier(.4,0,.2,1);
}
.tab.on {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid var(--glass-line-2);
  color: #fff; font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.08);
}
.tab:hover:not(.on) { color: var(--text); }

/* Alert */
.alert {
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .83rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
  display: flex; gap: .5rem; align-items: flex-start;
  backdrop-filter: blur(8px);
}
.ae { background: rgba(122,40,40,.28); border: 1px solid rgba(220,90,90,.35); color: #f6b4b4; }
.as { background: rgba(40,122,70,.24); border: 1px solid rgba(90,220,130,.32); color: #aef4cb; }
.ai { background: rgba(50,70,140,.26); border: 1px solid rgba(110,150,240,.32); color: #b6d2f8; }

/* Form fields */
.f { margin-bottom: .9rem; }
.f label { display: block; font-size: .74rem; color: var(--muted); margin-bottom: 6px; letter-spacing: .02em; font-weight: 500; }
.f input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  padding: .72rem .95rem;
  color: var(--text);
  font-size: .9rem;
  outline: none;
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s, background .18s;
  -webkit-appearance: none;
}
.f input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px var(--gold-glow, rgba(232,201,122,.16));
}
.f input::placeholder { color: var(--dim); }

/* Section divider in signup form */
.form-section {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dim);
  margin: 1rem 0 .6rem;
  display: flex; align-items: center; gap: .6rem;
}
.form-section::after { content: ''; flex: 1; height: 1px; background: var(--glass-line); }

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #c8a040);
  color: #1a1206;
  border: none;
  border-radius: var(--radius-sm);
  padding: .85rem;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  margin-top: .6rem;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(232,201,122,.22);
  transition: transform .14s, box-shadow .18s, filter .18s;
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(232,201,122,.3); filter: brightness(1.04); }
.btn-submit:active { transform: translateY(0); }

.form-footer {
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  margin-top: .9rem;
}
.form-footer a { color: var(--gold); text-decoration: none; font-weight: 500; }
.form-footer a:hover { text-decoration: underline; }

/* Password strength bar */
.pass-wrap { position: relative; }
.pass-toggle {
  position: absolute; right: .75rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--dim); cursor: pointer; font-size: .85rem; padding: .2rem;
}

/* Cloudflare Turnstile widget container */
.cf-turnstile-wrap {
  margin-bottom: .9rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--glass-line);
  background: rgba(255,255,255,.03);
  padding: .4rem .5rem;
  width: 100%;
  box-sizing: border-box;
}
.cf-turnstile-wrap .cf-turnstile,
.cf-turnstile-wrap iframe {
  width: 100% !important;
  min-width: unset !important;
}
/* If keys are missing — show a warning box */
.cf-nokey {
  font-size: .75rem;
  color: #e8c060;
  background: #2a2010;
  border: 1px solid #5a4010;
  border-radius: 8px;
  padding: .65rem .9rem;
  margin-bottom: .85rem;
  text-align: center;
}

@media (min-width: 800px) {
  .hero  { display: flex; }
  .panel { width: 460px; flex-shrink: 0; border-left: 1px solid var(--glass-line); height: 100vh; height: 100dvh; }
}

/* Short screens (small laptops / landscape phones): compact the wizard so step 3
   fits with minimal/no scrolling. Scrolling still works via .panel if needed. */
@media (max-height: 760px) {
  .panel { padding: 1.1rem 1.25rem; }
  .brand { font-size: 1.45rem; }
  .brand-sub { font-size: .72rem; margin-bottom: .35rem; }
  .wizard-progress { margin-bottom: 1rem; }
  .wz-num { width: 28px; height: 28px; font-size: .82rem; }
  .form-section { margin: .65rem 0 .5rem; }
  .f { margin-bottom: .55rem; }
}
@media (min-width: 1200px) { .hero-title { font-size: 3.6rem; } }

/* ── WIZARD PROGRESS BAR ─────────────────────────────────── */
.wizard-progress {
  position: relative;
  margin-bottom: 1.6rem;
  padding-top: .25rem;
}
.wp-track {
  position: absolute;
  top: 17px; left: 12%; right: 12%;
  height: 2px;
  background: var(--glass-line);
  border-radius: 2px;
  z-index: 0;
}
.wp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-2), #c8a040);
  border-radius: 2px;
  width: 0%;
  box-shadow: 0 0 12px rgba(232,201,122,.5);
  transition: width .45s cubic-bezier(.4,0,.2,1);
}
.wp-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.wp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  flex: 1;
}
.wp-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--glass-line-2);
  background: rgba(20,23,40,.8);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700;
  color: var(--dim);
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.wp-step.active .wp-dot {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-color: var(--gold);
  color: #1a1206;
  box-shadow: 0 0 0 4px rgba(232,201,122,.18), 0 0 20px rgba(232,201,122,.35);
}
.wp-step.done .wp-dot {
  background: #2a5a2a;
  border-color: #4a9a4a;
  color: #90e490;
}
.wp-step.done .wp-dot::before { content: '✓'; }
.wp-step.done .wp-dot { font-size: 0; }   /* hide number when done */
.wp-step.done .wp-dot::before { font-size: .9rem; }
.wp-label {
  font-size: .67rem;
  color: #4a4f6a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color .3s;
  white-space: nowrap;
}
.wp-step.active .wp-label { color: #e8c97a; }
.wp-step.done  .wp-label  { color: #6aca6a; }

/* ── WIZARD STEP PANELS ──────────────────────────────────── */
.wz-step {
  animation: wzSlideIn .32s cubic-bezier(.4,0,.2,1);
}
@keyframes wzSlideIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0);    }
}
.wz-step.slide-back {
  animation: wzSlideBack .32s cubic-bezier(.4,0,.2,1);
}
@keyframes wzSlideBack {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0);     }
}

/* Step heading */
.wz-heading {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--glass-line);
}
.wz-icon {
  font-size: 1.7rem;
  width: 46px; height: 46px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--glass-line-2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.wz-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem; font-weight: 600;
  color: var(--text); line-height: 1.2;
}
.wz-sub { font-size: .73rem; color: var(--dim); margin-top: .1rem; }

/* Field extras */
.req { color: #e8c97a; }
.opt { color: #5a5f7a; font-size: .68rem; }
.field-hint { font-size: .68rem; color: #4a4f6a; margin-top: .25rem; }

/* Nav row */
.wz-nav {
  display: flex;
  gap: .65rem;
  align-items: center;
  margin-top: 1.25rem;
}
.btn-next {
  flex: 1;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #c8a040);
  color: #1a1206;
  border: none; border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  font-size: .92rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  box-shadow: 0 8px 24px rgba(232,201,122,.22);
  transition: box-shadow .18s, transform .12s, filter .18s;
}
.btn-next:hover { filter: brightness(1.04); transform: translateX(2px); box-shadow: 0 12px 32px rgba(232,201,122,.3); }
.btn-prev {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  padding: .8rem .95rem;
  font-size: .85rem; color: var(--muted);
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: .35rem;
  transition: all .15s;
}
.btn-prev:hover { color: var(--text); border-color: var(--glass-line-2); background: rgba(255,255,255,.06); transform: translateX(-2px); }
.nav-arrow { font-size: 1rem; }

/* Summary strip */
.wz-summary {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  padding: .7rem .95rem;
  font-size: .76rem;
  color: var(--muted);
  margin-top: .75rem;
  line-height: 1.8;
}
.wz-summary strong { color: var(--gold); }

/* Password strength */
.strength-wrap { margin-top: .35rem; }
.strength-bar {
  height: 4px; background: var(--glass-line); border-radius: 3px; overflow: hidden;
}
.strength-fill {
  height: 100%; width: 0%;
  border-radius: 3px;
  transition: width .3s, background .3s;
}
.strength-label { font-size: .68rem; margin-top: .2rem; }

/* Password match hint */
#match-hint.ok  { color: #6aca6a; }
#match-hint.bad { color: #e07070; }
