/* ══════════════════════════════════════════════
   Signup Page — Page Styles
   ══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex; flex-direction: column;
}

/* ── AMBIENT ── */
.ambient-tl {
  position: fixed; top: -180px; left: -180px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(128,0,32,0.11) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
  animation: drift 14s ease-in-out infinite alternate;
}
.ambient-br {
  position: fixed; bottom: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(85,107,47,0.08) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(55px,65px); } }

/* ── LAYOUT ── */
.page-shell {
  flex: 1; display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  position: relative; z-index: 1;
}

/* ── LEFT PANEL ── */
.left-panel {
  background: var(--text);
  display: flex; flex-direction: column;
  padding: 48px 56px;
  position: relative; overflow: hidden;
}
.left-panel::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(128,0,32,0.22) 0%, transparent 62%);
  pointer-events: none;
}
.left-panel::after {
  content: '';
  position: absolute; bottom: -80px; left: -60px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(85,107,47,0.16) 0%, transparent 62%);
  pointer-events: none;
}
.lp-logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; margin-bottom: auto;
  position: relative; z-index: 1;
}
.lp-logo-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 800; font-size: 15px; color: #fff;
  box-shadow: 0 4px 18px rgba(128,0,32,0.38);
  flex-shrink: 0;
}
.lp-logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 19px; color: rgba(255,255,255,0.95);
}
.lp-logo-text span { color: var(--primary); }
.lp-body {
  position: relative; z-index: 1;
  margin-bottom: 40px;
}
.lp-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 18px; display: block;
}
.lp-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 900; color: #fff;
  line-height: 1.07; letter-spacing: -1px;
  margin-bottom: 20px;
}
.lp-h1 em { color: var(--primary); font-style: italic; }
.lp-sub {
  font-size: 15px; color: rgba(255,255,255,0.55);
  font-weight: 300; line-height: 1.75;
  max-width: 360px;
}
.lp-features {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 36px;
  position: relative; z-index: 1;
}
.lp-feature {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
}
.lp-feature-icon { font-size: 20px; flex-shrink: 0; }
.lp-feature-text { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 300; line-height: 1.4; }
.lp-feature-text strong { color: rgba(255,255,255,0.92); font-weight: 600; display: block; margin-bottom: 2px; }
.lp-back {
  position: relative; z-index: 1; margin-top: auto; padding-top: 32px;
}
.lp-back a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color 0.15s;
  font-weight: 400;
}
.lp-back a:hover { color: rgba(255,255,255,0.7); }

/* ── RIGHT PANEL ── */
.right-panel {
  display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 56px;
  background: var(--bg);
  overflow-y: auto;
}
.auth-box {
  width: 100%; max-width: 440px;
  padding: 8px 0 40px;
}

/* STEP indicator */
.steps {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 32px;
}
.step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border2); transition: background 0.3s, width 0.3s, border-radius 0.3s;
  flex-shrink: 0;
}
.step-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }
.step-dot.done   { background: var(--green); }

/* STEP transitions */
.step { display: none; }
.step.active { display: block; animation: slideIn 0.35s ease; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Typography */
.auth-h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.5px; margin-bottom: 6px;
}
.auth-h2 em { color: var(--primary); font-style: italic; }
.auth-sub {
  font-size: 13px; color: var(--text3); font-weight: 300;
  margin-bottom: 24px; line-height: 1.6;
}

/* Back button */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text3); font-weight: 500;
  background: none; border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif; padding: 0;
  margin-bottom: 20px;
  transition: color 0.15s;
}
.back-btn:hover { color: var(--primary); }

/* Form layout */
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--text3); margin-bottom: 7px;
}
.form-input {
  width: 100%; height: 46px; padding: 0 14px;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px; color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input::placeholder { color: var(--text3); }
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(128,0,32,0.12);
}
.form-input.error { border-color: var(--primary); }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237A5040' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Password */
.pw-wrap { position: relative; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text3); padding: 4px;
  display: flex; align-items: center;
  transition: color 0.15s;
}
.pw-toggle:hover { color: var(--text2); }

/* Password strength */
.pw-strength-bar {
  height: 3px; border-radius: 2px;
  background: var(--border);
  margin-top: 8px; overflow: hidden;
}
.pw-strength-fill {
  height: 100%; width: 0%;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.form-hint {
  font-size: 11px; color: var(--text3); margin-top: 5px;
}

/* Experience level picker */
.level-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 4px;
}
.level-card {
  background: var(--card); border: 2px solid var(--border);
  border-radius: 12px; padding: 16px 10px;
  cursor: pointer; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  user-select: none;
}
.level-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(19,10,6,0.09);
}
.level-card.selected {
  border-color: var(--primary);
  background: rgba(128,0,32,0.04);
  box-shadow: 0 0 0 1px var(--primary), 0 6px 20px rgba(128,0,32,0.15);
}
.level-emoji { font-size: 24px; }
.level-name { font-size: 13px; font-weight: 700; color: var(--text); }
.level-desc { font-size: 10px; color: var(--text3); font-weight: 300; }

/* Style chips */
.style-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 6px;
}
.style-chip {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 6px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px; font-weight: 500; color: var(--text2);
  cursor: pointer; transition:border-color 0.18s,color 0.18s;
  user-select: none;
}
.style-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.style-chip.selected {
  background: rgba(128,0,32,0.08);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* Submit button */
.submit-btn {
  width: 100%; height: 48px; margin-top: 8px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition:border-color 0.2s,color 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 24px rgba(128,0,32,0.34);
  position: relative; overflow: hidden;
}
.submit-btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.submit-btn:active { transform: translateY(0); }
.submit-btn.loading { pointer-events: none; opacity: 0.75; }
.submit-btn .spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.submit-btn.loading .btn-label { display: none; }
.submit-btn.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Error banner */
.error-banner {
  background: rgba(128,0,32,0.08);
  border: 1px solid rgba(128,0,32,0.25);
  border-radius: 9px; padding: 12px 14px;
  margin-bottom: 16px; display: none;
  align-items: flex-start; gap: 10px;
}
.error-banner.show { display: flex; }
.error-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.error-msg { font-size: 13px; color: var(--primary); font-weight: 400; line-height: 1.5; }

/* Footer row */
.auth-footer-row {
  margin-top: 20px; text-align: center;
  font-size: 13px; color: var(--text3);
}
.auth-footer-row a { color: var(--primary); text-decoration: none; font-weight: 500; }
.auth-footer-row a:hover { text-decoration: underline; }

/* Terms note */
.terms-note {
  margin-top: 14px; text-align: center;
  font-size: 11px; color: var(--text3); line-height: 1.5; font-weight: 300;
}
.terms-note a { color: var(--primary); text-decoration: none; }
.terms-note a:hover { text-decoration: underline; }

/* ── SUCCESS SCREEN ── */
.success-wrap { text-align: center; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(58,158,111,0.12);
  border: 2px solid rgba(58,158,111,0.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  color: var(--green);
  animation: popIn 0.45s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 24px;
  margin: 24px 0 0; text-align: left;
}
.success-card-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.success-card-row:last-child { border-bottom: none; }
.success-card-label { color: var(--text3); font-weight: 400; }
.success-card-val { color: var(--text); font-weight: 600; }

/* ── MOBILE LOGO (hidden on desktop, visible when left panel is gone) ── */
.mobile-logo {
  display: none;
  margin-bottom: 24px;
}
.mobile-logo .logo-img {
  height: 44px;
  width: auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .page-shell { grid-template-columns: 1fr; }
  .left-panel { display: none; }
  .right-panel { padding: 32px 24px; padding-top: 36px; align-items: flex-start; }
  .auth-box { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .level-grid { grid-template-columns: repeat(3,1fr); }
  .mobile-logo { display: block; }
}
