/* ═══════════════════════════════════════════════════════════════
   auth-modern.css — premium overlay for /login and /register
   Activated when <body class="cl-modern">. Loaded AFTER the legacy
   inline <style> blocks so it wins via specificity + !important.
   ═══════════════════════════════════════════════════════════════ */

body.cl-modern {
  --au-primary: #0b47d4;
  --au-primary-2: #2563eb;
  --au-purple: #7c3aed;
  --au-pink: #ec4899;
  --au-teal: #06b6d4;
  --au-text: #0f172a;
  --au-muted: #64748b;
  --au-bg: #f8fafc;
  --au-card: #ffffff;
  --au-border: #e2e8f0;
  --au-success: #10b981;
  --au-radius: 14px;
  --au-radius-lg: 24px;
  --au-shadow-sm: 0 1px 3px rgba(15,23,42,.06);
  --au-shadow-md: 0 12px 32px rgba(15,23,42,.10);
  --au-shadow-lg: 0 30px 80px rgba(15,23,42,.18);

  background: var(--au-bg) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: var(--au-text) !important;
  margin: 0 !important;
}
body.cl-modern * { box-sizing: border-box; }

/* Kill the legacy bodies, hero gradients */
body.cl-modern.bg-blue,
body.cl-modern .scr-1.auth-hero { background: var(--au-bg) !important; }

/* ───────────────────────────────────────────────────────────────
   PAGE BACKGROUND + LAYOUT WRAPPERS
   ─────────────────────────────────────────────────────────────── */
body.cl-modern .login-section,
body.cl-modern .auth-section {
  background: transparent !important;
  position: relative !important;
  min-height: calc(100vh - 80px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 56px 24px !important;
  font-family: inherit !important;
}
@media (max-width: 700px) {
  body.cl-modern .login-section,
  body.cl-modern .auth-section { padding: 24px 14px !important; min-height: 0 !important; }
}

/* Subtle gradient mesh in the page bg */
body.cl-modern .login-bg {
  position: fixed !important;
  inset: 0 !important;
  background:
    radial-gradient(900px 500px at 12% 8%,  rgba(11,71,212,.14) 0%, transparent 60%),
    radial-gradient(800px 500px at 90% 20%, rgba(124,58,237,.12) 0%, transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(16,185,129,.08) 0%, transparent 60%),
    radial-gradient(600px 400px at 100% 80%, rgba(236,72,153,.06) 0%, transparent 60%) !important;
  opacity: 1 !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

body.cl-modern .login-wrapper,
body.cl-modern .auth-wrapper,
body.cl-modern .auth-wrapper--small {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: 1140px !important;
  margin: 0 auto !important;
}

/* ───────────────────────────────────────────────────────────────
   THE CARD (login + register)
   ─────────────────────────────────────────────────────────────── */
body.cl-modern .login-card,
body.cl-modern .auth-card,
body.cl-modern .auth-card--compact {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) !important;
  background: var(--au-card) !important;
  border: 1px solid var(--au-border) !important;
  border-radius: var(--au-radius-lg) !important;
  box-shadow: var(--au-shadow-lg) !important;
  overflow: hidden !important;
  position: relative !important;
  /* Slight 3-d lift by pseudo-shadow under the card */
}
body.cl-modern .login-card::before,
body.cl-modern .auth-card::before,
body.cl-modern .auth-card--compact::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(11,71,212,.20), transparent 30%, transparent 70%, rgba(124,58,237,.20));
  border-radius: inherit;
  z-index: -1;
  filter: blur(0);
  pointer-events: none;
}
@media (max-width: 980px) {
  body.cl-modern .login-card,
  body.cl-modern .auth-card,
  body.cl-modern .auth-card--compact {
    grid-template-columns: 1fr !important;
    border-radius: 20px !important;
  }
}

/* ───────────────────────────────────────────────────────────────
   BRAND PANEL (left)
   ─────────────────────────────────────────────────────────────── */
body.cl-modern .login-left,
body.cl-modern .auth-left {
  background:
    radial-gradient(900px 600px at 100% 0%, rgba(124,58,237,.55), transparent 55%),
    radial-gradient(700px 500px at 0% 100%, rgba(6,182,212,.35), transparent 50%),
    linear-gradient(140deg, #0b47d4 0%, #2563eb 45%, #6d28d9 100%) !important;
  color: #fff !important;
  display: flex !important;
  align-items: stretch !important;
  position: relative !important;
  overflow: hidden !important;
  min-height: 580px;
}
/* Decorative concentric rings */
body.cl-modern .login-left::before,
body.cl-modern .auth-left::before {
  content: '';
  position: absolute;
  top: -40%; right: -25%;
  width: 480px; height: 480px;
  background:
    radial-gradient(circle, rgba(255,255,255,.18), transparent 35%, rgba(255,255,255,.10) 45%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
body.cl-modern .login-left::after,
body.cl-modern .auth-left::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -20%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
body.cl-modern .login-left-inner,
body.cl-modern .auth-left-inner {
  padding: 48px 44px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 20px !important;
  position: relative;
  z-index: 1;
  align-items: stretch !important;
  text-align: left !important;
  width: 100%;
}

/* Top row: logo + verified pill */
body.cl-modern .cl-au-brand-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 6px !important;
}
body.cl-modern .login-left-logo,
body.cl-modern .auth-logo {
  max-width: 64px !important;
  height: 64px !important;
  width: 64px !important;
  margin: 0 !important;
  filter: none !important;
  background: #fff;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
body.cl-modern .cl-au-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
}
body.cl-modern .cl-au-pill i { font-size: 11px; color: #fde047; }

/* Heading + lead */
body.cl-modern .login-left-inner h1,
body.cl-modern .auth-left-inner h1 {
  margin: 0 !important;
  font-size: 36px !important;
  font-weight: 800 !important;
  letter-spacing: -.025em !important;
  line-height: 1.08 !important;
  color: #fff !important;
}
body.cl-modern .cl-au-h1-soft {
  display: block;
  font-size: 22px !important;
  font-weight: 600 !important;
  background: linear-gradient(90deg, #fde047, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 6px !important;
  letter-spacing: -.01em;
}
body.cl-modern .login-left-inner p,
body.cl-modern .auth-left-inner p {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: rgba(255,255,255,.92) !important;
  opacity: 1 !important;
  max-width: 420px;
}

/* Stats grid */
body.cl-modern .cl-au-stats {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px !important;
}
body.cl-modern .cl-au-stat {
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  transition: transform .18s, background .18s;
}
body.cl-modern .cl-au-stat:hover { transform: translateY(-2px); background: rgba(255,255,255,.16); }
body.cl-modern .cl-au-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
body.cl-modern .cl-au-stat-lbl {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Benefit checklist (legacy ul/li) */
body.cl-modern .login-left-inner ul,
body.cl-modern .auth-left-inner ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 4px 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
}
body.cl-modern .login-left-inner ul li,
body.cl-modern .auth-left-inner ul li {
  position: relative;
  padding-left: 30px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: rgba(255,255,255,.96) !important;
  font-weight: 500;
}
body.cl-modern .login-left-inner ul li::before,
body.cl-modern .auth-left-inner ul li::before {
  content: '\f00c';
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
  font-weight: 900;
  position: absolute;
  left: 0; top: 1px;
  width: 20px; height: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.30), rgba(255,255,255,.10));
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  margin: 0 !important;
  color: #fff;
}

/* Testimonial */
body.cl-modern .cl-au-quote {
  margin-top: 4px !important;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 16px 18px;
  position: relative;
}
body.cl-modern .cl-au-quote-icon {
  position: absolute;
  top: -10px; left: 16px;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  color: #78350f !important;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 6px 14px rgba(245,158,11,.40);
}
body.cl-modern .cl-au-quote p {
  margin: 6px 0 12px !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: rgba(255,255,255,.96) !important;
  font-style: italic;
  font-weight: 500;
}
body.cl-modern .cl-au-quote-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
body.cl-modern .cl-au-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  color: #78350f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
body.cl-modern .cl-au-quote-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}
body.cl-modern .cl-au-quote-role {
  font-size: 11px;
  color: rgba(255,255,255,.80);
  font-weight: 500;
}

/* Mobile: keep brand panel as a compact stacked banner above the form */
@media (max-width: 980px) {
  body.cl-modern .login-left,
  body.cl-modern .auth-left {
    min-height: 0 !important;
    display: flex !important;
  }
  body.cl-modern .login-left-inner,
  body.cl-modern .auth-left-inner {
    padding: 28px 24px !important;
    gap: 14px !important;
  }
  body.cl-modern .login-left-inner h1,
  body.cl-modern .auth-left-inner h1 { font-size: 26px !important; }
  body.cl-modern .cl-au-h1-soft { font-size: 16px !important; }
  body.cl-modern .login-left-inner p,
  body.cl-modern .auth-left-inner p { font-size: 14px !important; }
  /* hide testimonial + benefit list on mobile so the brand panel stays
     short and the form is reachable without scrolling forever */
  body.cl-modern .login-left .cl-au-quote,
  body.cl-modern .auth-left .cl-au-quote,
  body.cl-modern .login-left ul,
  body.cl-modern .auth-left ul { display: none !important; }
  body.cl-modern .cl-au-stats { gap: 8px !important; }
  body.cl-modern .cl-au-stat { padding: 10px 8px !important; }
  body.cl-modern .cl-au-stat-num { font-size: 18px !important; }
  body.cl-modern .cl-au-stat-lbl { font-size: 9.5px !important; }
}
@media (max-width: 700px) {
  body.cl-modern .login-left-inner,
  body.cl-modern .auth-left-inner { padding: 22px 18px !important; gap: 10px !important; }
  body.cl-modern .login-left-inner h1,
  body.cl-modern .auth-left-inner h1 { font-size: 22px !important; }
  body.cl-modern .cl-au-h1-soft { font-size: 14px !important; }
  body.cl-modern .login-left-inner p,
  body.cl-modern .auth-left-inner p { font-size: 13px !important; line-height: 1.5 !important; }
  body.cl-modern .cl-au-pill { font-size: 10px !important; padding: 5px 9px !important; }
  body.cl-modern .login-left-logo,
  body.cl-modern .auth-logo {
    max-width: 52px !important;
    width: 52px !important;
    height: 52px !important;
    padding: 5px !important;
  }
}

/* ───────────────────────────────────────────────────────────────
   FORM PANEL (right)
   ─────────────────────────────────────────────────────────────── */
body.cl-modern .login-right,
body.cl-modern .auth-right {
  padding: 48px 48px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  background: #fff !important;
  position: relative;
}
@media (max-width: 700px) {
  body.cl-modern .login-right,
  body.cl-modern .auth-right { padding: 32px 22px !important; gap: 14px !important; }
}

/* Mobile-only headline at top of form */
body.cl-modern .auth-title-mobile {
  display: none;
  margin: 0 0 6px !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  color: var(--au-text) !important;
  letter-spacing: -.018em;
  border: none !important;
  padding: 0 !important;
}
@media (max-width: 980px) {
  body.cl-modern .auth-title-mobile { display: block; }
}

body.cl-modern .login-header h2 {
  margin: 0 !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  color: var(--au-text) !important;
  letter-spacing: -.022em;
  line-height: 1.15;
}
body.cl-modern .login-header p {
  margin: 6px 0 0 !important;
  font-size: 14px !important;
  color: var(--au-muted) !important;
  line-height: 1.5;
}
body.cl-modern .auth-title {
  margin: 0 0 4px !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: var(--au-text) !important;
  letter-spacing: -.018em;
  border: none !important;
  padding: 0 !important;
  line-height: 1.15;
}

/* ───────────────────────────────────────────────────────────────
   EMAIL / PHONE TOGGLE (login)
   ─────────────────────────────────────────────────────────────── */
body.cl-modern .login-toggle {
  margin: 8px 0 4px !important;
  background: #f1f5f9 !important;
  padding: 5px !important;
  border-radius: 14px !important;
  border: 1px solid var(--au-border) !important;
  display: flex !important;
  gap: 4px !important;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.04);
}
body.cl-modern .login-toggle .toggle-btn {
  flex: 1 !important;
  border: none !important;
  padding: 11px 0 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  background: transparent !important;
  color: var(--au-muted) !important;
  cursor: pointer !important;
  transition: all .2s !important;
  font-family: inherit !important;
  box-shadow: none !important;
}
body.cl-modern .login-toggle .toggle-btn p {
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
body.cl-modern .login-toggle .toggle-btn.active {
  background: #fff !important;
  color: var(--au-primary) !important;
  box-shadow: 0 6px 14px rgba(15,23,42,.10) !important;
  font-weight: 700 !important;
}
body.cl-modern .login-toggle .toggle-btn.active p { font-weight: 700 !important; }

/* ───────────────────────────────────────────────────────────────
   FORM INPUTS (login + register)
   ─────────────────────────────────────────────────────────────── */
body.cl-modern .form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  margin: 0 !important;
}
/* legacy .hidden helper: my .form-group rule was beating display:none.
   Re-assert hidden so the email/phone toggle can actually hide one. */
body.cl-modern .hidden,
body.cl-modern .form-group.hidden,
body.cl-modern .form-outline.hidden { display: none !important; }
body.cl-modern .form-outline {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  margin: 0 !important;
  width: 100% !important;
}
body.cl-modern .form-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--au-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  margin: 0 !important;
  font-family: inherit !important;
}

/* Inputs */
body.cl-modern .form-input,
body.cl-modern .form-control,
body.cl-modern .form-control-lg,
body.cl-modern .auth-right select,
body.cl-modern .auth-right input[type="text"],
body.cl-modern .auth-right input[type="email"],
body.cl-modern .auth-right input[type="tel"],
body.cl-modern .auth-right input[type="number"],
body.cl-modern .auth-right input[type="password"],
body.cl-modern .login-right input[type="text"],
body.cl-modern .login-right input[type="email"],
body.cl-modern .login-right input[type="tel"],
body.cl-modern .login-right input[type="password"] {
  width: 100% !important;
  padding: 13px 14px !important;
  height: 50px !important;
  border-radius: 12px !important;
  border: 1.5px solid var(--au-border) !important;
  font-size: 15px !important;
  font-family: inherit !important;
  color: var(--au-text) !important;
  background: #fff !important;
  outline: none !important;
  transition: border-color .18s, box-shadow .18s, background .18s !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: none !important;
  background-image: none !important;
}
body.cl-modern .form-input:focus,
body.cl-modern .form-control:focus,
body.cl-modern .auth-right select:focus,
body.cl-modern .login-right input:focus,
body.cl-modern .auth-right input:focus {
  background: #fff !important;
  border-color: var(--au-primary) !important;
  box-shadow: 0 0 0 4px rgba(11,71,212,.12) !important;
}
body.cl-modern .form-input::placeholder,
body.cl-modern .form-control::placeholder,
body.cl-modern input::placeholder {
  color: #94a3b8 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}
body.cl-modern .form-input.small,
body.cl-modern .form-control-lg.small {
  height: 46px !important;
  padding: 11px 13px !important;
  font-size: 14px !important;
}

/* Textarea (business request) */
body.cl-modern .auth-right textarea,
body.cl-modern .auth-right textarea.form-control,
body.cl-modern textarea.form-input {
  width: 100% !important;
  min-height: 120px !important;
  height: auto !important;
  padding: 14px !important;
  border-radius: 12px !important;
  border: 1.5px solid var(--au-border) !important;
  font-size: 14.5px !important;
  font-family: inherit !important;
  color: var(--au-text) !important;
  background: #fff !important;
  outline: none !important;
  transition: border-color .15s, box-shadow .15s !important;
  resize: vertical !important;
  line-height: 1.5 !important;
}
body.cl-modern .auth-right textarea:focus,
body.cl-modern textarea.form-input:focus {
  border-color: var(--au-primary) !important;
  box-shadow: 0 0 0 4px rgba(11,71,212,.10) !important;
}

/* Select with custom chevron */
body.cl-modern .auth-right select,
body.cl-modern .select-arrow {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='%2364748b'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 36px !important;
  cursor: pointer !important;
  color: var(--au-text) !important;
}

/* Input with leading icon */
body.cl-modern .input-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}
body.cl-modern .input-wrapper .input-icon {
  position: absolute !important;
  left: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 15px !important;
  color: var(--au-muted) !important;
  z-index: 2;
  pointer-events: none;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  line-height: 1 !important;
}
body.cl-modern .input-wrapper .input-icon i {
  font-size: 15px !important;
  line-height: 1 !important;
  color: inherit !important;
}
body.cl-modern .input-wrapper .form-input,
body.cl-modern .login-right .input-wrapper input.form-input,
body.cl-modern .auth-right .input-wrapper input.form-input {
  padding-left: 50px !important;
}

/* Show/hide password eye */
body.cl-modern .cl-au-pwd-toggle {
  position: absolute !important;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--au-muted);
  cursor: pointer;
  font-size: 14px;
  transition: all .15s;
  z-index: 3;
}
body.cl-modern .cl-au-pwd-toggle:hover {
  color: var(--au-primary);
  background: rgba(11,71,212,.08);
}
body.cl-modern .input-wrapper:has(.cl-au-pwd-toggle) .form-input {
  padding-right: 50px !important;
}

/* Required asterisk */
body.cl-modern .form-outline:has(> input[required]) > label.form-label::after,
body.cl-modern .form-outline:has(> select[required]) > label.form-label::after,
body.cl-modern .form-outline:has(> textarea[required]) > label.form-label::after {
  content: "*";
  color: var(--au-primary);
  font-weight: 800;
  margin-left: 2px;
}

/* ───────────────────────────────────────────────────────────────
   GRIDS (register)
   ─────────────────────────────────────────────────────────────── */
body.cl-modern .grid-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  align-items: stretch !important;
}
body.cl-modern .grid-3 {
  display: grid !important;
  grid-template-columns: 1.3fr 1fr 1.2fr !important;
  gap: 12px !important;
  align-items: stretch !important;
}
body.cl-modern .grid-4 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  align-items: stretch !important;
}
@media (max-width: 900px) {
  body.cl-modern .grid-3 { grid-template-columns: 1fr 1fr !important; }
  body.cl-modern .grid-4 { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 520px) {
  body.cl-modern .grid-2 { grid-template-columns: 1fr !important; }
  body.cl-modern .grid-3 { grid-template-columns: 1fr !important; }
  body.cl-modern .grid-4 { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
}

/* ───────────────────────────────────────────────────────────────
   OPTIONS ROW (remember me / forgot)
   ─────────────────────────────────────────────────────────────── */
body.cl-modern .login-options {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 4px 0 0 !important;
  flex-wrap: wrap;
  gap: 10px;
}
body.cl-modern .checkbox-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  font-size: 13.5px !important;
  color: var(--au-text) !important;
  cursor: pointer !important;
  margin: 0 !important;
  user-select: none;
  font-weight: 500;
}
body.cl-modern .checkbox-label input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  accent-color: var(--au-primary);
  cursor: pointer !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
}
body.cl-modern .link-small {
  font-size: 13.5px !important;
  color: var(--au-primary) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}
body.cl-modern .link-small:hover { text-decoration: underline !important; }

/* ───────────────────────────────────────────────────────────────
   AGREEMENTS (register)
   ─────────────────────────────────────────────────────────────── */
body.cl-modern .agreements {
  margin: 8px 0 0 !important;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  border: 1px solid rgba(11,71,212,.18);
  border-radius: 14px;
  padding: 14px 16px;
}
body.cl-modern .chk {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 0 !important;
  cursor: pointer !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: var(--au-text) !important;
}
body.cl-modern .chk-input,
body.cl-modern .chk input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  margin: 1px 0 0 !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  accent-color: var(--au-primary) !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  display: inline-block !important;
  opacity: 1 !important;
  position: static !important;
}
body.cl-modern .chk-text {
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: var(--au-text) !important;
  font-weight: 500;
  flex: 1;
}
body.cl-modern .chk-text a,
body.cl-modern .chk a {
  color: var(--au-primary) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
body.cl-modern .chk-text a:hover,
body.cl-modern .chk a:hover { text-decoration: underline !important; }

/* ───────────────────────────────────────────────────────────────
   PRIMARY BUTTON
   ─────────────────────────────────────────────────────────────── */
body.cl-modern .login-btn,
body.cl-modern .btn-primary-lg,
body.cl-modern .btnRegister,
body.cl-modern input.btnRegister[type="submit"],
body.cl-modern .auth-right button[type="submit"],
body.cl-modern .auth-right input[type="submit"],
body.cl-modern .login-right button[type="submit"] {
  margin-top: 10px !important;
  width: 100% !important;
  padding: 16px 24px !important;
  border: none !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--au-primary), var(--au-primary-2)) !important;
  color: #fff !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: 0 12px 28px rgba(11,71,212,.32) !important;
  transition: transform .18s, box-shadow .18s !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  height: auto !important;
  position: relative;
  overflow: hidden;
}
body.cl-modern .login-btn::after,
body.cl-modern .btn-primary-lg::after,
body.cl-modern .auth-right button[type="submit"]::after,
body.cl-modern .login-right button[type="submit"]::after {
  content: '\f061';
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
  font-weight: 900;
  font-size: 12px;
  margin-left: 4px;
  transition: transform .2s;
}
body.cl-modern .login-btn:hover,
body.cl-modern .btn-primary-lg:hover,
body.cl-modern .btnRegister:hover,
body.cl-modern .auth-right button[type="submit"]:hover,
body.cl-modern .auth-right input[type="submit"]:hover,
body.cl-modern .login-right button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(11,71,212,.42) !important;
}
body.cl-modern .login-btn:hover::after,
body.cl-modern .btn-primary-lg:hover::after,
body.cl-modern .btnRegister:hover::after,
body.cl-modern .auth-right button[type="submit"]:hover::after,
body.cl-modern .login-right button[type="submit"]:hover::after { transform: translateX(4px); }

/* Inline error banner above the form */
body.cl-modern .cl-bz-error {
  margin: 0 0 14px !important;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.cl-modern .cl-bz-error::before {
  content: '\f071';
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
  font-weight: 900;
  color: #f59e0b;
}

/* Form container in business page (auth-right) — column gap */
body.cl-modern .auth-right form {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
body.cl-modern .actions {
  margin: 12px 0 0 !important;
  text-align: center !important;
}

/* ───────────────────────────────────────────────────────────────
   "Don't have account?" link row + decorative divider
   ─────────────────────────────────────────────────────────────── */
body.cl-modern .login-register {
  margin: 6px 0 0 !important;
  text-align: center !important;
  font-size: 13.5px !important;
  color: var(--au-muted) !important;
  position: relative;
  padding-top: 18px;
}
body.cl-modern .login-register::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--au-border) 30%, var(--au-border) 70%, transparent);
}
body.cl-modern .login-register a {
  color: var(--au-primary) !important;
  font-weight: 700 !important;
  margin-left: 4px !important;
  text-decoration: none !important;
}
body.cl-modern .login-register a:hover { text-decoration: underline !important; }

/* ───────────────────────────────────────────────────────────────
   ERRORS
   ─────────────────────────────────────────────────────────────── */
body.cl-modern .error,
body.cl-modern p.error {
  margin: 4px 0 0 !important;
  font-size: 12px !important;
  color: #dc2626 !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  gap: 5px;
}
body.cl-modern .error::before {
  content: '\f06a';
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
  font-weight: 900;
  font-size: 11px;
}

/* ───────────────────────────────────────────────────────────────
   LEGACY KILL SWITCHES — disable rules that fight us
   ─────────────────────────────────────────────────────────────── */
body.cl-modern .custom-checkbox::before,
body.cl-modern .custom-checkbox::after { display: none !important; content: none !important; }
body.cl-modern .custom-checkbox input[type="checkbox"] {
  opacity: 1 !important;
  display: inline-block !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  accent-color: var(--au-primary) !important;
  position: static !important;
  pointer-events: auto !important;
  visibility: visible !important;
}
body.cl-modern .form-control[type="text"],
body.cl-modern .form-control[type="email"],
body.cl-modern .form-control[type="tel"],
body.cl-modern .form-control[type="number"],
body.cl-modern .form-control[type="password"] {
  background-image: none !important;
  box-shadow: none !important;
}
body.cl-modern section.scr-1.auth-hero,
body.cl-modern section.scr-1 { background: transparent !important; }
body.cl-modern .container { max-width: 100% !important; padding: 0 !important; }

/* reCAPTCHA badge respect */
.grecaptcha-badge { z-index: 50 !important; }

/* ───────────────────────────────────────────────────────────────
   SEO TEXT BLOCK (calculator-business)
   ─────────────────────────────────────────────────────────────── */
body.cl-modern .seo-text {
  background: var(--au-card) !important;
  border: 1px solid var(--au-border) !important;
  border-image: none !important;
  border-radius: var(--au-radius-lg) !important;
  max-width: 1100px !important;
  margin: 32px auto !important;
  padding: 36px 40px !important;
  box-shadow: var(--au-shadow-sm) !important;
  position: relative;
  overflow: hidden;
  color: #475569 !important;
  line-height: 1.7;
  font-size: 14.5px;
}
body.cl-modern .seo-text::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--au-primary), var(--au-primary-2), var(--au-purple));
}
body.cl-modern .seo-text h2,
body.cl-modern .seo-text h3 {
  color: var(--au-text) !important;
  font-weight: 800 !important;
  letter-spacing: -.018em;
}
body.cl-modern .seo-text h2 { font-size: clamp(22px, 3vw, 28px) !important; text-align: left !important; }
body.cl-modern .seo-text h3 { font-size: 17px !important; color: var(--au-primary) !important; margin-top: 18px; }
body.cl-modern .seo-text p,
body.cl-modern .seo-text li { color: #475569 !important; line-height: 1.7; }
@media (max-width: 700px) {
  body.cl-modern .seo-text { padding: 22px 18px !important; max-width: calc(100% - 24px) !important; }
}

/* Hide legacy modal #modal in business until JS opens it */
body.cl-modern #modal {
  font-family: inherit !important;
}
body.cl-modern #modal-content {
  border-radius: var(--au-radius-lg) !important;
  font-family: inherit !important;
  border: 1px solid var(--au-border) !important;
  box-shadow: var(--au-shadow-lg) !important;
}
body.cl-modern #modal-content button {
  background: linear-gradient(135deg, var(--au-primary), var(--au-primary-2)) !important;
  border-radius: 12px !important;
  font-weight: 700;
  padding: 12px 24px !important;
}

/* Animation: subtle entrance */
@keyframes auCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.cl-modern .login-card,
body.cl-modern .auth-card,
body.cl-modern .auth-card--compact { animation: auCardIn .45s cubic-bezier(.4,0,.2,1); }
