/* ==========================================================================
   Centralized Auth Layout (Webmotors Style)
   ========================================================================== */

html, body {
  min-height: 100%;
}

body {
  background: #FFFFFF;
  font-family: 'Inter', sans-serif;
  margin: 0;
  display: block;
}

/* ── Centered Layout ── */
.auth-page {
  display: flex;
  width: 100%;
  min-height: 100vh;
  justify-content: center;
  align-items: flex-start;
  padding: 2.5rem 1.5rem;
  box-sizing: border-box;
  background: #FFFFFF;
}

/* ── Main Card ── */
.auth-card {
  display: flex;
  width: 100%;
  max-width: 1080px;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  min-height: auto;
  overflow: hidden;
  margin: 0 auto;
}

/* ── Left panel — LIGHT ── */
.auth-left {
  flex: 1;
  background: #F9FAFB;
  border-right: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.75rem 3rem;
  position: relative;
  box-sizing: border-box;
}

.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.auth-left__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.auth-left__orb--1 {
  width: 380px;
  height: 380px;
  background: rgba(0, 0, 0, 0.03);
  top: -80px;
  left: -60px;
}

.auth-left__orb--2 {
  width: 280px;
  height: 280px;
  background: rgba(0, 0, 0, 0.02);
  bottom: 60px;
  right: -40px;
}

/* Brand */
.auth-left__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.auth-left__brand-mark {
  width: 38px;
  height: 38px;
  background: #111111;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.auth-left__brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: #111111;
  letter-spacing: -0.04em;
}

/* Content */
.auth-left__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 2rem 0;
}

.auth-left__eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 1.25rem;
}

.auth-left__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #111111;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.auth-left__title em {
  font-style: normal;
  position: relative;
  display: inline-block;
}

.auth-left__title em::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(232, 93, 4, 0.45);
  border-radius: 2px;
}

.auth-left__desc {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.8;
  max-width: 360px;
  margin-bottom: 2.5rem;
}

/* Steps (Register specific) */
.auth-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 0;
  position: relative;
}

.auth-step::after {
  content: '';
  position: absolute;
  left: 15px;
  top: calc(0.9rem + 30px);
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.auth-step:last-child::after {
  display: none;
}

.auth-step__num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 900;
  color: #666666;
  flex-shrink: 0;
}

.auth-step__body {
  padding-top: 0.3rem;
}

.auth-step__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.15rem;
}

.auth-step__desc {
  font-size: 0.73rem;
  color: #888888;
  line-height: 1.5;
}

.auth-left__footer {
  font-size: 0.65rem;
  color: #AAAAAA;
  position: relative;
  z-index: 1;
}

/* ── Right panel ── */
.auth-right {
  width: 520px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 2.25rem;
  background: #FFFFFF;
  box-sizing: border-box;
}

.auth-right__inner {
  width: 100%;
  max-width: 440px;
}

/* Mobile brand */
.auth-mobile-brand {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  text-decoration: none;
}

.auth-mobile-brand__mark {
  width: 32px;
  height: 32px;
  background: #111111;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #FFFFFF;
}

.auth-mobile-brand__name {
  font-size: 1.1rem;
  font-weight: 900;
  color: #111111;
  letter-spacing: -0.04em;
}

/* Free badge */
.auth-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803D;
  margin-bottom: 1.25rem;
}

.auth-free-badge::before {
  content: '✓';
}

/* Form header */
.auth-form-header {
  margin-bottom: 1.75rem;
}

.auth-form-header__title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #111111;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}

.auth-form-header__sub {
  font-size: 0.78rem;
  color: #888888;
  line-height: 1.5;
}

/* Inputs */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #666666;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.input-wrapper {
  position: relative;
  transition: transform 0.15s;
}

.input-wrapper:focus-within {
  transform: scale(1.01);
}

.input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px !important;
  color: #CCCCCC;
  pointer-events: none;
  transition: color 0.18s;
}

.input-wrapper:focus-within .input-icon {
  color: #111111;
}

.input-icon--right {
  left: auto;
  right: 0.875rem;
  pointer-events: all;
  cursor: pointer;
  background: none;
  border: none;
  color: #CCCCCC;
  transition: color 0.15s;
}

.input-icon--right:hover {
  color: #555555;
}

.form-input {
  width: 100%;
  padding: 0.75rem 0.875rem 0.75rem 2.6rem;
  background: #F8F9FA;
  border: 1.5px solid #EBEBEB;
  border-radius: 10px;
  color: #111111;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  outline: none;
}

.form-input::placeholder {
  color: #CCCCCC;
}

.form-input:focus {
  background: #FFFFFF;
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.form-hint {
  display: block;
  font-size: 0.66rem;
  color: #AAAAAA;
  margin-top: 0.3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Section label */
.form-section-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #CCCCCC;
  margin: 1.25rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #EBEBEB;
}

/* Error alert */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: #991B1B;
  line-height: 1.5;
}

.auth-alert .material-icons-round {
  font-size: 16px;
  color: #EF4444;
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-alert ul {
  margin: 0;
  padding-left: 1rem;
}

/* Submit */
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem;
  background: #E85D04;
  color: #FFFFFF;
  border: none;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  margin-top: 0.375rem;
}

.auth-submit:hover {
  background: #BF4E03;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232, 93, 4, 0.35);
}

.auth-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

.auth-submit .material-icons-round {
  font-size: 18px;
}

/* Footer */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #EBEBEB;
}

.auth-divider__text {
  font-size: 0.62rem;
  color: #CCCCCC;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form-footer {
  text-align: center;
  font-size: 0.8rem;
  color: #888888;
}

.auth-form-footer a {
  color: #111111;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.15);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}

.auth-form-footer a:hover {
  border-color: #111111;
}

/* ── Login missing styles ── */
.auth-stats { display: flex; gap: 2rem; margin-bottom: 2.5rem; }
.auth-stat__num { font-size: 1.6rem; font-weight: 900; color: #111111; letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.2rem; }
.auth-stat__label { font-size: 0.7rem; color: #999999; font-weight: 500; }

.auth-features { display: flex; flex-direction: column; gap: 0.75rem; }
.auth-feature { display: flex; align-items: center; gap: 0.75rem; }
.auth-feature__icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(0, 0, 0, 0.04); border: 1px solid rgba(0, 0, 0, 0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-feature__icon .material-icons-round { font-size: 15px; color: #666666; }
.auth-feature__text { font-size: 0.82rem; color: #555555; font-weight: 500; }

.forgot-link { display: block; text-align: right; margin-top: 0.4rem; font-size: 0.75rem; color: #AAAAAA; text-decoration: none; font-weight: 500; transition: color 0.15s; }
.forgot-link:hover { color: #111111; }

/* ── Forgot password missing styles ── */
/* Steps indicator */
.steps-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 2rem; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.15); background: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; color: #AAAAAA; flex-shrink: 0; transition: all 0.25s ease; }
.step-dot.active { background: #111111; border-color: #111111; color: #FFFFFF; }
.step-dot.done { background: #111111; border-color: #111111; color: #FFFFFF; }
.step-dot.done::after { content: '✓'; font-size: 0.65rem; }
.step-dot.done span { display: none; }
.step-connector { flex: 1; height: 2px; background: rgba(0,0,0,0.10); transition: background 0.3s; }
.step-connector.done { background: #111111; }

.support-list { display: flex; flex-direction: column; gap: 0.8rem; }
.support-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.support-item__icon { width: 28px; height: 28px; border-radius: 8px; background: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.support-item__icon .material-icons-round { font-size: 14px; color: #666666; }
.support-item__text { font-size: 0.8rem; color: #555555; line-height: 1.5; font-weight: 500; }

.otp-group { display: flex; gap: 0.5rem; justify-content: center; margin: 1.25rem 0; }
.otp-input { width: 52px; height: 64px; text-align: center; font-size: 1.6rem; font-weight: 800; font-family: 'Inter', sans-serif; color: #111111; background: #F8F9FA; border: 2px solid rgba(0,0,0,0.12); border-radius: 10px; outline: none; transition: border-color 0.18s, box-shadow 0.18s, transform 0.12s; caret-color: transparent; letter-spacing: 0; }
.otp-input:focus { border-color: #111111; background: #FFFFFF; box-shadow: 0 0 0 3px rgba(0,0,0,0.06); transform: scale(1.04); }
.otp-input.filled { border-color: rgba(0,0,0,0.3); background: #FFFFFF; }

.email-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: #F4F5F7; border: 1px solid rgba(0,0,0,0.10); border-radius: 8px; padding: 0.35rem 0.75rem; font-size: 0.82rem; font-weight: 600; color: #333333; margin: 0.5rem 0 1.25rem; }
.email-badge .material-icons-round { font-size: 14px; color: #777777; }

.expiry-hint { display: flex; align-items: center; justify-content: center; gap: 0.35rem; font-size: 0.72rem; color: #999999; margin-top: 0.75rem; }
.expiry-hint .material-icons-round { font-size: 14px; }

/* ── Consent Blocks ── */
.consent-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.25rem 0 1.5rem;
}

.consent-block {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #F8F9FA;
  border: 1.5px solid #EBEBEB;
  border-radius: 10px;
  padding: 0.75rem 0.875rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.consent-block:hover {
  background: #FFFFFF;
  border-color: #D1D5DB;
}

.consent-block input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #E85D04;
  cursor: pointer;
  flex-shrink: 0;
}

.consent-block__text {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #555555;
}

.consent-block__text a {
  color: #111111;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.consent-block__text a:hover {
  color: #E85D04;
}

/* Responsive */
@media (max-width: 900px) {
  .auth-page {
    padding: 1rem;
    align-items: flex-start;
  }

  .auth-card {
    flex-direction: column;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  .auth-left {
    display: none; /* Hide branding on mobile for simplicity, or we can keep a compact version */
  }

  .auth-right {
    width: 100%;
    background: #FFFFFF;
    align-items: flex-start;
    padding: 2.5rem 1.5rem;
  }

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

  .auth-mobile-brand {
    display: flex;
  }
}

@media (max-width: 480px) {
  .auth-right {
    padding: 2rem 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
