/* ============================================================
   Weblift AI — Auth Page Styles
   ============================================================ */

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

:root {
  --v1: #8b5cf6;
  --v2: #7c3aed;
  --c1: #22d3ee;
  --bg: #0f172a;
  --bg2: #1e1b4b;
  --card: rgba(255,255,255,.05);
  --border: rgba(255,255,255,.1);
  --text: #f8fafc;
  --muted: rgba(248,250,252,.55);
  --error: #f87171;
  --radius: 14px;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
}

/* ── Layout ───────────────────────────────────────────────── */
.auth-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: 100vh;
  width: 100%;
}

/* ── Left panel ───────────────────────────────────────────── */
.auth-left {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #0c1a2e 100%);
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,.3) 0%, transparent 70%);
  pointer-events: none;
}

.auth-left::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(34,211,238,.2) 0%, transparent 70%);
  pointer-events: none;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  position: relative;
  z-index: 1;
}

.auth-left-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 2rem 0;
}

.auth-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c1);
  margin-bottom: 1rem;
}

.auth-headline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}

.auth-grad {
  background: linear-gradient(90deg, var(--v1), var(--c1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-sub {
  font-size: .97rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 380px;
  margin-bottom: 2rem;
}

/* Perks list */
.auth-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.auth-perks li {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
}

.auth-perk-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--v1), var(--c1));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.auth-perks li div {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.auth-perks li strong {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

.auth-perks li span {
  font-size: .8rem;
  color: var(--muted);
}

/* Social proof */
.auth-social-proof {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .84rem;
  color: var(--muted);
}

.auth-avatars {
  display: flex;
}

.auth-avatars span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  margin-left: -6px;
}

.auth-avatars span:first-child { margin-left: 0; }

.auth-social-proof strong { color: var(--text); }

/* ── Right panel ──────────────────────────────────────────── */
.auth-right {
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.5rem;
}

.auth-card {
  width: 100%;
  max-width: 560px;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: .4rem;
  background: rgba(255,255,255,.05);
  border-radius: 12px;
  padding: .35rem;
  margin-bottom: 2rem;
}

.auth-tab {
  flex: 1;
  padding: .6rem .5rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}

.auth-tab.is-active {
  background: var(--v1);
  color: #fff;
  font-weight: 600;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-plan-card,
.auth-addons {
  background: rgba(255,255,255,.055);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.auth-plan-top,
.auth-addons-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.auth-plan-kicker,
.auth-addons-head span {
  display: block;
  font-size: .72rem;
  color: var(--c1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .15rem;
}

.auth-plan-top strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
}

.auth-plan-price {
  text-align: right;
  white-space: nowrap;
}

.auth-plan-price span {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.auth-plan-price small,
.auth-addons-head small,
.auth-addon small {
  display: block;
  color: var(--muted);
  font-size: .76rem;
}

.auth-plan-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem .8rem;
  list-style: none;
  margin-top: .9rem;
}

.auth-plan-options,
.auth-addon-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
  margin-top: .9rem;
}

.auth-plan-option {
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  text-align: left;
  width: 100%;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: .75rem;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.auth-plan-option:hover,
.auth-plan-option.is-active {
  border-color: rgba(139,92,246,.72);
  background: rgba(139,92,246,.1);
}

.auth-plan-option-top {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
}

.auth-plan-option strong {
  font-size: .9rem;
}

.auth-plan-option small,
.auth-plan-option p {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}

.auth-plan-option p {
  margin-top: .3rem;
}

.auth-plan-list li,
.auth-addon {
  font-size: .82rem;
  color: rgba(248,250,252,.72);
}

.auth-plan-list li::before {
  content: '✓';
  color: #4ade80;
  font-weight: 800;
  margin-right: .35rem;
}

.auth-addons {
  display: block;
}

.auth-addons-head {
  margin-bottom: .25rem;
}

#quote-total {
  color: #fff;
  font-size: .86rem;
  text-align: right;
}

.auth-addon {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  border-radius: 10px;
  padding: .65rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.auth-addon:hover {
  border-color: rgba(139,92,246,.5);
  background: rgba(139,92,246,.08);
}

.auth-addon.is-included {
  border-color: rgba(74,222,128,.38);
  background: rgba(74,222,128,.08);
}

.auth-addon input,
.auth-terms input {
  width: auto;
  appearance: auto;
  -webkit-appearance: auto;
  margin-top: .15rem;
  accent-color: var(--v1);
}

.auth-addon strong {
  display: block;
  color: rgba(248,250,252,.9);
  font-size: .82rem;
  margin-bottom: .12rem;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

.auth-terms a {
  color: var(--v1);
  text-decoration: none;
}

.auth-terms a:hover { text-decoration: underline; }

.auth-hidden { display: none !important; }

.auth-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.auth-field label {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(248,250,252,.75);
  letter-spacing: .01em;
}

.auth-optional {
  font-weight: 400;
  color: var(--muted);
}

.auth-field input,
.auth-field select {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .7rem .95rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .93rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.auth-field input::placeholder { color: rgba(248,250,252,.28); }

.auth-field select {
  appearance: none;
  cursor: pointer;
}

.auth-field select option {
  background: #111827;
  color: #f8fafc;
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--v1);
  box-shadow: 0 0 0 3px rgba(139,92,246,.18);
}

.auth-pass-wrap {
  position: relative;
}

.auth-pass-wrap input {
  width: 100%;
  padding-right: 2.8rem;
}

.auth-eye {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  opacity: .5;
  transition: opacity .2s;
  padding: .2rem;
}

.auth-eye:hover { opacity: 1; }

/* Error */
.auth-error {
  font-size: .82rem;
  color: var(--error);
  min-height: 1rem;
}

/* Submit button */
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: linear-gradient(135deg, var(--v1), #6d28d9);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .85rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .97rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  margin-top: .25rem;
}

.auth-submit:hover { opacity: .9; transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Legal */
.auth-legal {
  font-size: .76rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.auth-legal a {
  color: var(--v1);
  text-decoration: none;
}

.auth-legal a:hover { text-decoration: underline; }

/* Forgot */
.auth-forgot-wrap {
  text-align: center;
}

.auth-forgot {
  background: none;
  border: none;
  color: var(--v1);
  font-size: .84rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity .2s;
}

.auth-forgot:hover { opacity: .8; }

.auth-forgot-sent {
  font-size: .84rem;
  color: #4ade80;
  text-align: center;
  padding: .6rem 1rem;
  background: rgba(74,222,128,.1);
  border-radius: 8px;
  border: 1px solid rgba(74,222,128,.3);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 800px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-left {
    padding: 2rem 1.5rem 1.5rem;
    min-height: auto;
  }

  .auth-left-body {
    padding: 1.5rem 0 .5rem;
  }

  .auth-perks { display: none; }

  .auth-right {
    padding: 1.5rem;
    align-items: flex-start;
    min-height: 100vh;
  }

  .auth-card { max-width: 100%; }

  .auth-plan-list,
  .auth-addon-list {
    grid-template-columns: 1fr;
  }

  .auth-plan-top,
  .auth-addons-head {
    flex-direction: column;
  }

  .auth-plan-price,
  #quote-total {
    text-align: left;
  }
}
