/* ── SIGNUP PAGE STYLES ── */

/* Lock page to viewport */
body { overflow: hidden; height: 100vh; }

.page {
  position: fixed; inset: 0;
  z-index: 2;
  display: flex; padding: 70px 24px 16px; gap: 0;
  align-items: center; justify-content: center;
  overflow-y: auto;
}

/* Left Panel */
.left-panel { flex: 1; max-width: 480px; padding-right: 60px; display: flex; flex-direction: column; justify-content: center; }
.lp-tag    { font-size: 10px; letter-spacing: 3px; color: var(--purple); text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.lp-tag::before { content: ''; width: 20px; height: 1px; background: var(--purple); }
.lp-h1  { font-size: clamp(26px,3vw,40px); font-weight: 200; line-height: 1.15; color: rgba(255,255,255,0.88); margin-bottom: 12px; }
.lp-sub { font-size: 13px; color: var(--gray); line-height: 1.7; margin-bottom: 28px; max-width: 360px; }
.trust-items { display: flex; flex-direction: column; gap: 14px; }
.trust-item  { display: flex; align-items: center; gap: 12px; }
.trust-icon  { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.trust-text  { font-size: 12.5px; color: rgba(255,255,255,0.65); }
.trust-text strong { display: block; color: white; font-weight: 400; margin-bottom: 1px; font-size: 13px; }

/* Auth Card — 100% transparent glass */
.auth-card {
  width: 100%; max-width: 420px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  padding: 26px 32px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 0 0 1px rgba(124,106,247,0.10), 0 20px 50px rgba(0,0,0,0.25);
  animation: cardIn .55s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }

/* Step Indicator */
.steps     { display: flex; align-items: center; gap: 0; margin-bottom: 20px; }
.step      { display: flex; align-items: center; gap: 0; flex: 1; }
.step-dot  { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.15); color: var(--gray2); background: rgba(255,255,255,0.04); transition: all .3s; }
.step-dot.active { background: var(--purple); border-color: var(--purple); color: white; }
.step-dot.done   { background: rgba(74,222,128,0.2); border-color: rgba(74,222,128,0.4); color: var(--green); }
.step-line { flex: 1; height: 1px; background: rgba(255,255,255,0.07); transition: background .3s; }
.step-line.done { background: rgba(74,222,128,0.3); }

.auth-title { font-size: 20px; font-weight: 200; margin-bottom: 4px; }
.auth-sub   { font-size: 12.5px; color: var(--gray); margin-bottom: 14px; line-height: 1.55; }

/* Form Steps */
.form-step        { display: none; }
.form-step.active { display: block; }
.form-group { margin-bottom: 10px; }
.form-label { font-size: 11px; color: var(--gray2); letter-spacing: .5px; margin-bottom: 6px; }
.form-input { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); border-radius: 12px; padding: 10px 14px; color: white; font-size: 13.5px; font-family: inherit; font-weight: 300; outline: none; transition: border-color .2s, background .2s; }
.form-input::placeholder { color: rgba(255,255,255,0.2); }
.form-input:focus { border-color: rgba(124,106,247,0.5); background: rgba(124,106,247,0.05); }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Password Strength */
.pwd-strength { margin-top: 6px; }
.pwd-bars     { display: flex; gap: 4px; margin-bottom: 4px; }
.pwd-bar      { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,0.08); transition: background .3s; }
.pwd-bar.weak   { background: #f87171; }
.pwd-bar.ok     { background: #fbbf24; }
.pwd-bar.strong { background: var(--green); }
.pwd-hint { font-size: 10.5px; color: var(--gray2); }

/* Plan Select */
.plan-select { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; margin-bottom: 14px; }
.plan-opt    { border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 11px 8px; text-align: center; cursor: pointer; transition: all .2s; background: rgba(18,18,36,0.4); backdrop-filter: blur(24px); }
.plan-opt:hover { border-color: rgba(255,255,255,0.18); }
.plan-opt.selected { background: rgba(124,106,247,0.12); border-color: rgba(124,106,247,0.45); }
.plan-opt-name  { font-size: 12.5px; font-weight: 400; margin-bottom: 3px; }
.plan-opt-price { font-size: 10.5px; color: var(--gray2); }
.plan-opt.selected .plan-opt-name  { color: white; }
.plan-opt.selected .plan-opt-price { color: var(--purple); }

/* Checkbox */
.check-row { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; cursor: pointer; }
.check-box { width: 17px; height: 17px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.18); flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; font-size: 10px; transition: all .2s; background: rgba(255,255,255,0.04); }
.check-box.checked { background: rgba(124,106,247,0.25); border-color: var(--purple); color: var(--purple); }
.check-label   { font-size: 12px; color: var(--gray); line-height: 1.5; }
.check-label a { color: white; text-decoration: none; }

/* Verify Code */
.code-boxes { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.code-box   { width: 42px; height: 48px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; text-align: center; font-size: 20px; font-weight: 300; color: white; font-family: inherit; outline: none; transition: border-color .2s; }
.code-box:focus { border-color: rgba(124,106,247,0.5); }
.resend-hint   { text-align: center; font-size: 12px; color: var(--gray2); margin-bottom: 14px; }
.resend-hint a { color: var(--purple); cursor: pointer; text-decoration: none; }

/* Buttons */
.btn-primary { width: 100%; padding: 12px; background: linear-gradient(135deg,rgba(124,106,247,.85),rgba(90,70,200,.85)); border: none; border-radius: 14px; color: white; font-size: 14px; font-weight: 400; cursor: pointer; font-family: inherit; letter-spacing: .3px; transition: opacity .2s, transform .1s; margin-bottom: 10px; }
.btn-primary:hover  { opacity: .88; }
.btn-primary:active { transform: scale(.98); }
.btn-back { width: 100%; padding: 10px; background: none; border: 1px solid rgba(255,255,255,0.1); color: var(--gray); border-radius: 14px; font-size: 13px; cursor: pointer; font-family: inherit; transition: border-color .2s, color .2s; margin-bottom: 10px; }
.btn-back:hover { border-color: rgba(255,255,255,0.25); color: white; }

/* Social */
.social-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.btn-social    { display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 10px; cursor: pointer; font-family: inherit; color: var(--gray); font-size: 12px; transition: border-color .2s, background .2s, color .2s; }
.btn-social:hover { border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.07); color: white; }
.btn-social svg   { width: 16px; height: 16px; flex-shrink: 0; }
.auth-divider     { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.07); }
.auth-divider span { font-size: 11px; color: var(--gray2); }
.auth-footer { text-align: center; font-size: 12.5px; color: var(--gray); }
.auth-footer a { color: white; text-decoration: none; font-weight: 400; }
.auth-footer a:hover { color: var(--purple); }

/* Success Screen */
.success-screen { text-align: center; padding: 8px 0; }
.success-icon   { width: 64px; height: 64px; border-radius: 50%; background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.3); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 26px; }
.success-h   { font-size: 20px; font-weight: 200; margin-bottom: 8px; }
.success-sub { font-size: 12.5px; color: var(--gray); line-height: 1.6; margin-bottom: 22px; }

@media(max-width: 960px) { .left-panel { display: none; } .page { justify-content: center; } }
@media(max-width: 600px) { .auth-card { padding: 22px 20px; } }

/* ── SIGNUP MOBILE RESPONSIVE ── */
@media(max-width: 767px) {
  body { overflow: auto; height: auto; }

  .page {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 16px 40px;
    min-height: 100vh;
    overflow-y: auto;
  }

  .left-panel { display: none; }

  .auth-card {
    width: 100%;
    max-width: 100%;
    padding: 24px 18px;
    border-radius: 18px;
  }

  .auth-title { font-size: 20px; }
  .auth-sub { font-size: 13px; }

  /* Inputs prevent iOS zoom */
  .form-input {
    font-size: 16px !important;
    padding: 12px 14px;
    touch-action: manipulation;
  }
  input, select, textarea {
    font-size: 16px !important;
    touch-action: manipulation;
  }

  /* Input row → single column on mobile */
  .input-row { grid-template-columns: 1fr; }

  /* Plan select → single column */
  .plan-select { grid-template-columns: 1fr; gap: 8px; }
  .plan-opt { padding: 12px; }

  /* Social row */
  .btn-social {
    min-height: 44px;
    font-size: 12px;
    touch-action: manipulation;
  }

  /* Buttons */
  .btn-primary {
    min-height: 48px;
    font-size: 15px;
    padding: 13px;
    touch-action: manipulation;
  }
  .btn-back {
    min-height: 44px;
    font-size: 13px;
    touch-action: manipulation;
  }

  /* Checkboxes — bigger tap area */
  .check-row { padding: 4px 0; }
  .check-box {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 6px;
  }
  .check-label { font-size: 12.5px; }

  /* OTP boxes */
  .code-boxes { gap: 6px; }
  .code-box {
    width: 40px;
    height: 50px;
    font-size: 20px;
  }

  /* Resend hint */
  .resend-hint { font-size: 13px; }

  /* Steps indicator */
  .step-dot { width: 28px; height: 28px; font-size: 12px; }
}

@media(max-width: 380px) {
  .plan-select { grid-template-columns: 1fr; }
  .social-row { grid-template-columns: 1fr; }
  .code-box { width: 36px; height: 44px; font-size: 17px; }
}

@media(max-width: 767px) and (orientation: landscape) {
  .page { padding-top: 70px; }
  .auth-card { padding: 18px 16px; }
}
