/* ============================================
   CarVerdict — Auth Pages (premium rebuild)
   ============================================ */

/* ---- Layout ---- */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 1;
}

/* ============================================
   Background fix — block orb bleed on profile/history
   ============================================ */
body.profile-page,
body.history-page {
  background: #080808;
}
body.profile-page main,
body.history-page main,
body.profile-page .profile-wrap,
body.history-page .history-wrap {
  position: relative;
  z-index: 1;
  background: #080808;
  min-height: 100vh;
}
body.profile-page footer,
body.history-page footer {
  position: relative;
  z-index: 2;
  background: #080808;
}
/* Hide orbs on profile/history — bleed through side margins */
body.profile-page .glow-orb,
body.history-page .glow-orb {
  display: none;
}


.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3.5rem;
  position: relative;
  z-index: 1;
  background: rgba(8,8,8,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Right: visual panel */
.auth-visual {
  background: linear-gradient(160deg, #0e0e06, #080808);
  border-left: .5px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.auth-visual::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,255,71,.08), transparent 70%);
  pointer-events: none;
}
.auth-visual::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(167,139,250,.06), transparent 70%);
  pointer-events: none;
}

/* ---- Logo in panel ---- */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 3rem;
}
.auth-logo img { width: 36px; height: 36px; border-radius: 9px; }
.auth-logo span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1.5px;
  color: #fff;
}

/* ---- Header ---- */
.auth-header { margin-bottom: 2rem; }

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(232,255,71,.07);
  border: .5px solid rgba(232,255,71,.2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: #E8FF47;
  padding: 5px 13px;
  margin-bottom: .9rem;
}

.auth-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: 1px;
  color: #fff;
  line-height: .95;
  margin-bottom: .5rem;
}

.auth-sub {
  font-size: 14.5px;
  color: #7d828a;
  line-height: 1.6;
}

/* ---- Messages ---- */
.auth-msg {
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 13.5px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
}
.auth-msg--error {
  background: rgba(239,68,68,.08);
  border: .5px solid rgba(239,68,68,.25);
  color: #fca5a5;
}
.auth-msg--success {
  background: rgba(34,197,94,.08);
  border: .5px solid rgba(34,197,94,.25);
  color: #86efac;
}

/* ---- Referral banner ---- */
.auth-ref-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(34,197,94,.07);
  border: .5px solid rgba(34,197,94,.25);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: #22c55e;
  margin-bottom: 1.25rem;
}
.auth-ref-banner b { color: #fff; }

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

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-field label {
  font-size: 11px;
  font-weight: 800;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-field input {
  background: #141414;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  padding: 14px 16px;
  width: 100%;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-field input:focus {
  border-color: rgba(232,255,71,.5);
  background: #161616;
}
.auth-field input::placeholder { color: #555; }

/* Password wrap */
.input-wrap { position: relative; }
.input-wrap input { padding-right: 46px; }
.toggle-pw {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  color: #777;
  transition: color .2s;
}
.toggle-pw:hover { color: #E8FF47; }

/* Password strength */
.pw-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}
.pw-strength-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  overflow: hidden;
}
.pw-strength-bar {
  height: 100%;
  border-radius: 99px;
  background: #E8FF47;
  transition: width .3s, background .3s;
  width: 0%;
}
.pw-strength-label {
  font-size: 11px;
  font-weight: 700;
  min-width: 52px;
  text-align: right;
}

/* ---- CTA button ---- */
.auth-btn {
  background: #E8FF47;
  border: none;
  border-radius: 14px;
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  padding: 15px;
  cursor: pointer;
  width: 100%;
  margin-top: .25rem;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-btn:hover { transform: translateY(-1px); background: #f0ff6a; }
.auth-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---- Divider ---- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.1rem 0;
  color: #666;
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.1);
}

/* ---- Google button ---- */
.auth-btn-google {
  background: #111;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  color: #ccc;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 13px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: border-color .2s, background .2s;
}
.auth-btn-google:hover { border-color: rgba(255,255,255,.25); background: #161616; color: #fff; }

/* ---- Footer links ---- */
.auth-link {
  color: #E8FF47;
  text-decoration: none;
  font-weight: 700;
}
.auth-link:hover { text-decoration: underline; }
.auth-link-sm {
  color: #777;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  transition: color .2s;
}
.auth-link-sm:hover { color: #E8FF47; }
.auth-switch {
  text-align: center;
  font-size: 14px;
  color: #999;
  margin-top: 1.25rem;
}
.auth-terms {
  text-align: center;
  font-size: 12px;
  color: #444;
  margin-top: .75rem;
}

/* ---- Spinner ---- */
.auth-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,.25);
  border-top-color: #000;
  border-radius: 50%;
  animation: authSpin .7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

/* ---- Visual panel content ---- */
.auth-vis-logo {
  width: 80px; height: 80px;
  border-radius: 22px;
  background: #E8FF47;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.auth-vis-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  color: #fff;
  line-height: .95;
  letter-spacing: .5px;
  text-align: center;
  margin-bottom: .75rem;
  position: relative;
  z-index: 1;
}
.auth-vis-heading .lime { color: #E8FF47; }

.auth-vis-sub {
  font-size: 14px;
  color: #666;
  text-align: center;
  max-width: 260px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

/* Perks list on visual panel */
.auth-perks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
  position: relative;
  z-index: 1;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255,255,255,.03);
  border: .5px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 13px 15px;
  transition: border-color .2s;
}
.perk-item:hover { border-color: rgba(232,255,71,.2); }

.perk-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.perk-item strong {
  display: block;
  font-size: 13.5px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 2px;
}
.perk-item span {
  font-size: 12px;
  color: #666;
  line-height: 1.45;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { padding: 5rem 1.5rem 3rem; max-width: 480px; margin: 0 auto; width: 100%; }
}