/* ═══════════════════════════════════════════════════════════════════
   CLRW WATERWORKS — IMPECCABLE DESIGN SYSTEM
   Management & Field Operations Authentication
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Core Deep Midnight & Slate Palette */
  --slate-950:       #060b14;
  --slate-900:       #0a1120;
  --slate-850:       #0d172c;
  --slate-800:       #121f3a;
  --slate-700:       #1e2f52;
  --slate-600:       #334770;
  
  /* Text & Inks */
  --ink-primary:     #0f172a;
  --ink-secondary:   #475569;
  --ink-muted:       #64748b;
  --ink-faint:       #94a3b8;
  --ink-inverse:     #ffffff;
  
  /* Brand Water Utility Accents */
  --brand-navy:      #0b2559;
  --brand-navy-dark: #07193d;
  --brand-navy-light:#15377a;
  --brand-sky:       #0284c7;
  --brand-cyan:      #06b6d4;
  --brand-teal:      #0d9488;
  
  /* Surfaces & Backgrounds */
  --bg-page:         #f8fafc;
  --bg-surface:      #ffffff;
  --bg-surface-sub:  #f1f5f9;
  --bg-card-hover:   #fcfdfe;
  
  /* Borders & Dividers */
  --border-subtle:   #e2e8f0;
  --border-strong:   #cbd5e1;
  --border-focus:    #0284c7;
  --ring-focus:      rgba(2, 132, 199, 0.16);
  
  /* Feedback States */
  --emerald-500:     #10b981;
  --emerald-600:     #059669;
  --emerald-bg:      #ecfdf5;
  --emerald-border:  #a7f3d0;
  --rose-500:        #ef4444;
  --rose-bg:         #fef2f2;
  --rose-border:     #fecaca;

  /* Typography */
  --font-sans:       'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:       'JetBrains Mono', monospace;

  /* Elevation Shadows */
  --shadow-sm:       0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card:     0 1px 3px rgba(15, 23, 42, 0.04), 0 12px 32px -8px rgba(15, 23, 42, 0.08);
  --shadow-card-hover: 0 4px 12px rgba(15, 23, 42, 0.06), 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  --shadow-modal:    0 24px 64px -12px rgba(6, 11, 20, 0.45);
  
  /* Radii */
  --radius-sm:       8px;
  --radius-md:       12px;
  --radius-lg:       16px;
  --radius-xl:       20px;
  --radius-full:     9999px;
}

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

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

body.auth-body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--ink-primary);
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════
   MAIN LAYOUT GRID
   ══════════════════════════════════════════════ */
.auth-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  align-items: stretch;
}

/* ══════════════════════════════════════════════
   LEFT PANEL — Executive Utility Authority Canvas
   ══════════════════════════════════════════════ */
.panel-left {
  flex: 1.15;
  background: linear-gradient(160deg, var(--slate-950) 0%, var(--slate-900) 40%, var(--slate-850) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 64px;
  overflow: hidden;
  color: var(--ink-inverse);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* Atmospheric dynamic light mesh */
.canvas-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 85% 15%, rgba(2, 132, 199, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(13, 148, 136, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(11, 37, 89, 0.25) 0%, transparent 60%);
  filter: blur(50px);
}

/* Architectural technical grid overlay */
.canvas-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black 60%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 95%);
}

/* Brand Strip */
.brand-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.brand-seal {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-seal img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-badge {
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Hero Content Area */
.hero-content {
  position: relative;
  z-index: 2;
  margin: 40px 0;
  max-width: 520px;
}

.telemetry-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  animation: pulseGlow 2.4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.5; }
}

.telemetry-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
}

.telemetry-code {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.06em;
}

.hero-headline {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 18px;
}

.hero-subline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 400;
}

/* Capability List */
.capability-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.capability-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateX(3px);
}

.cap-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
  flex-shrink: 0;
  margin-top: 2px;
}

.cap-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cap-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.cap-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.45;
}

/* Footer Section */
.left-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-dot {
  color: rgba(255, 255, 255, 0.25);
}

.footer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

/* ══════════════════════════════════════════════
   RIGHT PANEL — Authentication Hub
   ══════════════════════════════════════════════ */
.panel-right {
  flex: 0.95;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  position: relative;
}

.form-container {
  width: 100%;
  max-width: 410px;
  animation: impeccableFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes impeccableFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile brand presentation */
.mobile-brand {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.mobile-seal {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.mobile-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
}

.mobile-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
  font-weight: 500;
}

/* Form Header */
.form-header {
  margin-bottom: 24px;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.form-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.form-header p {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* Feedback Alerts */
.alert-box {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 18px;
  animation: impeccableFadeUp 0.25s ease both;
}

.alert-box.error {
  background-color: var(--rose-bg);
  border: 1px solid var(--rose-border);
  color: #991b1b;
}

.alert-box.success {
  background-color: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: #065f46;
}

.alert-icon-wrap {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.alert-icon-wrap svg {
  width: 100%;
  height: 100%;
}

/* Authentication Card */
.auth-card {
  background: var(--bg-surface);
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.auth-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(148, 163, 184, 0.6);
}

/* Google Sign-in Button */
.btn-google {
  width: 100%;
  padding: 12px 18px;
  background: #ffffff;
  color: var(--ink-primary);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.btn-google:hover {
  background: #f8fafc;
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.btn-google:active {
  transform: scale(0.985);
}

.google-svg {
  flex-shrink: 0;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.auth-divider span {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Form Groups & Inputs */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--ink-faint);
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-shell input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-primary);
  background: #ffffff;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-shell input::placeholder {
  color: var(--ink-faint);
}

.input-shell input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3.5px var(--ring-focus);
}

.input-shell:focus-within .input-icon {
  color: var(--border-focus);
}

.toggle-pw-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.toggle-pw-btn:hover {
  color: var(--ink-primary);
  background: #f1f5f9;
}

.toggle-pw-btn svg {
  width: 16px;
  height: 16px;
}

/* Primary Action Buttons */
.btn-primary {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(11, 37, 89, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--brand-navy-light) 0%, var(--brand-navy) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11, 37, 89, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:active {
  transform: scale(0.985);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-primary svg,
.btn-submit svg,
.btn-lock-icon {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  stroke: currentColor !important;
  fill: none !important;
  display: inline-block !important;
  vertical-align: middle;
  flex-shrink: 0;
}

.btn-arrow {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-lock-icon {
  width: 16px;
  height: 16px;
}

/* Auth Terms & Consent */
.auth-terms {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 16px;
  line-height: 1.5;
  text-align: center;
}

.link-terms {
  color: var(--brand-navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(11, 37, 89, 0.3);
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  transition: color 0.15s ease;
}

.link-terms:hover {
  color: var(--brand-sky);
  text-decoration-color: var(--brand-sky);
}

/* ══════════════════════════════════════════════
   VERIFICATION FLOW (OTP State)
   ══════════════════════════════════════════════ */
.verification-header {
  text-align: left;
  margin-bottom: 12px;
}

.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.btn-back-link:hover {
  background: #f1f5f9;
  color: var(--ink-primary);
}

.verification-center {
  text-align: center;
  margin-bottom: 20px;
}

.mail-badge {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.verify-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.verify-desc {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.user-email-chip {
  display: inline-block;
  font-weight: 600;
  color: var(--ink-primary);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 4px;
  word-break: break-all;
}

.otp-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 12px;
  text-align: left;
}

.otp-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.otp-cluster {
  display: flex;
  gap: 8px;
}

.otp-separator {
  color: var(--ink-faint);
  font-weight: 600;
  user-select: none;
}

.otp-cell {
  width: 44px;
  height: 52px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-primary);
  background: #ffffff;
  text-align: center;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.otp-cell:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.16);
}

.otp-cell.filled {
  border-color: var(--emerald-600);
  color: #065f46;
  background: #f0fdf4;
}

.otp-status {
  display: none;
  font-size: 12.5px;
  color: var(--emerald-600);
  font-weight: 600;
  margin-bottom: 12px;
  text-align: left;
}

.verification-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.subtle-action-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.subtle-action-btn:hover {
  color: var(--brand-sky);
  text-decoration: underline;
}

/* ══════════════════════════════════════════════
   ROLE PORTAL SWITCHER STRIP
   ══════════════════════════════════════════════ */
.portal-switch-card {
  margin-top: 20px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.portal-switch-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.switch-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.switch-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.switch-subtitle {
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.35;
}

.btn-switch-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  color: var(--brand-navy);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-switch-role:hover {
  background: #e2e8f0;
  color: #000000;
}

.btn-switch-role svg {
  transition: transform 0.2s ease;
}

.btn-switch-role:hover svg {
  transform: translateX(2px);
}

/* ══════════════════════════════════════════════
   IMPECCABLE PRIVACY MODAL
   ══════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 20, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.modal-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
}

.modal-subtitle {
  font-size: 11.5px;
  color: var(--ink-muted);
  font-weight: 500;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  border: none;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--ink-primary);
}

.modal-content {
  padding: 24px;
  overflow-y: auto;
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: #065f46;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.modal-section {
  margin-bottom: 20px;
}

.modal-section h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.modal-section p {
  font-size: 13px;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}

.modal-section ul {
  padding-left: 20px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.modal-section li {
  margin-bottom: 5px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-modal-dismiss {
  padding: 9px 20px;
  background: var(--slate-900);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-modal-dismiss:hover {
  background: var(--slate-800);
}

/* ══════════════════════════════════════════════
   RESPONSIVE DESIGN
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .auth-container {
    flex-direction: column;
  }

  .panel-left {
    padding: 40px 32px;
    flex: none;
  }

  .hero-headline {
    font-size: 32px;
  }

  .panel-right {
    padding: 40px 24px;
  }
}

@media (max-width: 640px) {
  .panel-left {
    display: none;
  }

  .mobile-brand {
    display: flex;
  }

  .panel-right {
    padding: 32px 16px;
    background: #f8fafc;
  }

  .auth-card {
    padding: 22px 18px;
  }

  .otp-cell {
    width: 38px;
    height: 46px;
    font-size: 18px;
  }

  .otp-grid {
    gap: 6px;
  }

  .otp-cluster {
    gap: 4px;
  }
}