/* ════════════════════════════════════════════════════════════════════════════
   ULTRA-HD 4K RETINA ANIMATED LOGIN & AUTHENTICATION STYLING
   Sistem Komkordik RSUD Kabupaten Bekasi
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Typography & Sub-pixel Anti-Aliasing ────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── Reset Body & App Container on Auth Page ────────────────────────────── */
body.auth-page {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: #080c18 !important;
  color: #f1f5f9;
  overflow-x: hidden;
  position: relative;
}

body.auth-page .app {
  max-width: 100% !important;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: transparent !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* ── Clean, Static HD Medical Navy Background (Ultra-Lightweight & Fast) ──── */
.auth-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(1100px circle at 50% 20%, #0d1a38 0%, #080d1e 55%, #03060f 100%) !important;
}

body.auth-page.light-mode .auth-bg-canvas {
  background: radial-gradient(1100px circle at 50% 20%, #e0f2fe 0%, #f1f5f9 60%, #e2e8f0 100%) !important;
}

/* Crisp Geometric Matrix Grid (Zero Animation, Zero Filter) */
.auth-grid-overlay {
  position: absolute;
  inset: 0;
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 45%, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, black 45%, transparent 85%);
  pointer-events: none;
  z-index: 1;
}

body.auth-page.light-mode .auth-grid-overlay {
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

/* ── Top Bar Branding & Theme Toggle ────────────────────────────────────── */
.auth-top-nav {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  box-sizing: border-box;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.auth-brand-badge img {
  height: 22px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.btn-auth-theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.btn-auth-theme-toggle:hover {
  background: rgba(30, 41, 59, 0.85);
  transform: translateY(-2px) scale(1.08);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
}

/* ── Main Auth Shell ────────────────────────────────────────────────────── */
.auth-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 85px 20px 45px;
  position: relative;
  z-index: 5;
  box-sizing: border-box;
}

/* ── Clean & Fast Ultra-HD Auth Card ─────────────────────────────────────── */
.auth-card-wrap {
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

/* Card Default: Deep Clean Sapphire Slate (Fast & Crisp HD) */
.auth-card {
  width: 100%;
  max-width: 440px;
  position: relative;
  background: rgba(13, 21, 38, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px;
  padding: 34px 28px 28px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
  color: #f8fafc !important;
  overflow: hidden;
  box-sizing: border-box;
}

/* Crystal Light Mode Styling */
body.auth-page.light-mode .auth-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  color: #0f172a !important;
}

/* Crisp Top Accent Line */
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 50%, #10b981 100%);
  z-index: 2;
}

/* ── Crisp High-Definition Holographic Biometric Badge (Zero Lag) ───────── */
.auth-badge-container {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-badge {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 30%, #1e40af 0%, #0c172e 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  position: relative;
  overflow: hidden;
}

/* Ultra-HD Face Recognition SVG */
.hd-facerecog-svg {
  width: 48px;
  height: 48px;
  overflow: visible;
}

/* ── Live Status HUD Chip ───────────────────────────────────────────────── */
.auth-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

body.auth-page.light-mode .auth-status-chip {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.4);
}

.status-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

/* ── Dynamic Ultra-HD Metallic Heading ─────────────────────────────────── */
.auth-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 45%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(56, 189, 248, 0.3));
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.auth-page.light-mode .auth-title {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.15));
}

.title-icon-wrap {
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  -webkit-text-fill-color: initial;
}

.auth-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0 0 16px;
  font-weight: 500;
  letter-spacing: 0.15px;
  line-height: 1.4;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.auth-page.light-mode .auth-sub {
  color: #64748b;
}

/* ── Segmented Switcher (Masuk / Daftar) ────────────────────────────────── */
.seg-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 4px;
  margin-bottom: 22px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.auth-page.light-mode .seg-switch {
  background: rgba(241, 245, 249, 0.9);
  border-color: #e2e8f0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.seg-switch button {
  flex: 1;
  padding: 9px 16px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.88rem;
  color: #94a3b8;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.seg-switch button:hover {
  color: #f8fafc;
}

body.auth-page.light-mode .seg-switch button:hover {
  color: #0f172a;
}

.seg-switch button.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  transform: translateY(-1px);
}

body.auth-page.light-mode .seg-switch button.active {
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* ── Modern Floating Form Controls (Ultra-HD Glass) ─────────────────────── */
.form-floating {
  margin-bottom: 12px;
  position: relative;
}

.form-floating > .form-control,
.form-floating > .form-select {
  height: 44px;
  padding: 0.65rem 0.85rem 0.15rem 2.6rem !important;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(255, 255, 255, 0.05) !important;
}

body.auth-page.light-mode .form-floating > .form-control,
body.auth-page.light-mode .form-floating > .form-select {
  background: rgba(248, 250, 252, 0.85) !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: #38bdf8 !important;
  box-shadow: 
    0 0 0 3px rgba(56, 189, 248, 0.25),
    0 6px 18px -4px rgba(56, 189, 248, 0.35) !important;
  transform: translateY(-1px);
}

body.auth-page.light-mode .form-floating > .form-control:focus,
body.auth-page.light-mode .form-floating > .form-select:focus {
  background: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 
    0 0 0 3px rgba(37, 99, 235, 0.18),
    0 6px 16px -4px rgba(37, 99, 235, 0.15) !important;
}

.form-floating > label {
  padding: 0.65rem 0.85rem 0.65rem 2.6rem;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 500;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
  pointer-events: none !important;
  background-color: transparent !important;
}

.form-floating > label::after {
  display: none !important;
  background-color: transparent !important;
}

body.auth-page.light-mode .form-floating > label {
  color: #64748b;
  background-color: transparent !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  transform: scale(0.74) translateY(-0.62rem) translateX(0.15rem);
  color: #38bdf8;
  font-weight: 700;
  background-color: transparent !important;
}

body.auth-page.light-mode .form-floating > .form-control:focus ~ label,
body.auth-page.light-mode .form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: #2563eb;
  background-color: transparent !important;
}

/* Leading Input Icon */
.input-prefix-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 18px;
  pointer-events: none;
  z-index: 5;
  transition: color 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.form-floating:focus-within .input-prefix-icon {
  color: #38bdf8;
  transform: translateY(-50%) scale(1.12);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.75));
}

body.auth-page.light-mode .form-floating:focus-within .input-prefix-icon {
  color: #2563eb;
  filter: drop-shadow(0 0 6px rgba(37, 99, 235, 0.5));
}

/* Password Toggle Eye Icon (High Clickability & Contrast) */
.input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  z-index: 35 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.input-icon:hover {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.16);
  transform: translateY(-50%) scale(1.1);
}

.input-icon:active {
  transform: translateY(-50%) scale(0.95);
}

.input-icon i {
  font-size: 19px;
  pointer-events: none;
}

/* ── Auxiliary Links (Forgot PW & WA Help) ──────────────────────────────── */
.aux-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 16px;
  font-size: 0.82rem;
}

.aux-row a {
  color: #60a5fa;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.aux-row a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

body.auth-page.light-mode .aux-row a {
  color: #2563eb;
}

body.auth-page.light-mode .aux-row a:hover {
  color: #1d4ed8;
}

.wa-help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80 !important;
  font-weight: 700 !important;
  font-size: 12px;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.wa-help-link:hover {
  background: rgba(34, 197, 94, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
  color: #86efac !important;
}

body.auth-page.light-mode .wa-help-link {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d !important;
}

/* ── Primary Action Button (Tactile 3D Bevel & Laser Sweep) ─────────────── */
.btn-primary-auth {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  height: 44px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #06b6d4 100%) !important;
  box-shadow: 
    0 10px 24px -4px rgba(37, 99, 235, 0.5),
    0 0 25px rgba(6, 182, 212, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.45) !important;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Smooth hover sheen (Zero continuous CPU loop) */
.btn-primary-auth::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-22deg);
  transition: left 0.45s ease;
}

.btn-primary-auth:hover::before {
  left: 140%;
}

.btn-primary-auth:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 
    0 20px 42px -6px rgba(37, 99, 235, 0.75),
    0 0 45px rgba(6, 182, 212, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
}

.btn-primary-auth:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.6) !important;
}

/* Material Click Ripple Effect */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ── Social Login & Divider ─────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0 16px;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.auth-page.light-mode .divider::before,
body.auth-page.light-mode .divider::after {
  border-color: #e2e8f0;
}

.divider:not(:empty)::before {
  margin-right: 0.85em;
}

.divider:not(:empty)::after {
  margin-left: 0.85em;
}

.btn-social {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

body.auth-page.light-mode .btn-social {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.4);
}

body.auth-page.light-mode .btn-social:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 10px 20px -4px rgba(0, 0, 0, 0.1);
}

.btn-social svg {
  width: 20px;
  height: 20px;
}

.switch-text {
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 20px;
  margin-bottom: 0;
}

body.auth-page.light-mode .switch-text {
  color: #64748b;
}

.switch-text a {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.switch-text a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

body.auth-page.light-mode .switch-text a {
  color: #2563eb;
}

/* ── Password Strength Bar ──────────────────────────────────────────────── */
.strength-wrap {
  margin: -6px 0 16px;
}

.strength-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 6px;
}

body.auth-page.light-mode .strength-bar {
  background: #e2e8f0;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  transition: width 0.35s ease, background-color 0.35s ease;
}

.strength-label {
  font-size: 11px;
  color: #94a3b8;
  display: block;
}

body.auth-page.light-mode .strength-label {
  color: #64748b;
}

/* ── Smooth Pane Transitions ────────────────────────────────────────────── */
.pane {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer Copyright ───────────────────────────────────────────────────── */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.3px;
  user-select: none;
}

body.auth-page.light-mode .auth-footer {
  color: #64748b;
}

/* ── Mobile Responsive Overrides ────────────────────────────────────────── */
@media (max-width: 576px) {
  .auth-shell {
    padding: 72px 14px 28px !important;
  }

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

  .auth-card {
    padding: 28px 18px 22px !important;
    border-radius: 22px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .auth-title {
    font-size: 1.18rem !important;
  }

  .auth-sub {
    font-size: 0.82rem !important;
  }

  .auth-top-nav {
    padding: 12px 14px !important;
  }

  .auth-brand-badge {
    padding: 5px 12px !important;
    font-size: 10.5px !important;
    gap: 6px !important;
  }

  .auth-brand-badge span {
    max-width: 175px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-auth-theme-toggle {
    width: 38px !important;
    height: 38px !important;
    font-size: 15px !important;
  }
}

/* ── Modern Security CAPTCHA Box ────────────────────────────────────────── */
.auth-captcha-wrapper {
  margin-top: 14px;
  margin-bottom: 14px;
}

.auth-captcha-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.auth-captcha-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.auth-captcha-hint {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.auth-captcha-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.auth-captcha-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  height: 44px;
  padding: 2px 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.auth-captcha-img-wrap img {
  max-width: calc(100% - 32px);
  height: 38px;
  border-radius: 6px;
  cursor: pointer;
  display: block;
  user-select: none;
  transition: transform 0.2s ease;
  margin-right: auto;
  margin-left: 4px;
}

.auth-captcha-img-wrap img:hover {
  transform: scale(1.02);
}

.btn-refresh-captcha {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 25 !important;
  font-size: 13px;
  transition: all 0.25s ease;
}

.btn-refresh-captcha:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}

.btn-refresh-captcha i {
  pointer-events: none;
}

.auth-captcha-input-wrap {
  position: relative;
  height: 44px;
}

.auth-captcha-input {
  height: 44px !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  background: rgba(15, 23, 42, 0.55) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
  transition: all 0.25s ease !important;
  padding: 0 10px !important;
  box-sizing: border-box;
}

.auth-captcha-input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
  background: rgba(15, 23, 42, 0.85) !important;
}

body.auth-page.light-mode .auth-captcha-img-wrap {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.auth-page.light-mode .auth-captcha-input {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.auth-page.light-mode .auth-captcha-input:focus {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

body.auth-page.light-mode .auth-captcha-label {
  color: #475569;
}

/* ── High-Specificity Browser Autofill Fix (Eliminates Chrome/Edge yellow background) ───── */
.form-floating > .form-control:-webkit-autofill,
.form-floating > .form-control:-webkit-autofill:hover, 
.form-floating > .form-control:-webkit-autofill:focus, 
.form-floating > .form-control:-webkit-autofill:active,
.form-floating > input:-webkit-autofill,
.form-floating > input:-webkit-autofill:hover,
.form-floating > input:-webkit-autofill:focus,
.form-floating > input:-webkit-autofill:active,
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0d1527 inset !important;
  box-shadow: 0 0 0 1000px #0d1527 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  transition: background-color 50000s ease-in-out 0s;
  caret-color: #38bdf8 !important;
}

body.auth-page.light-mode .form-floating > .form-control:-webkit-autofill,
body.auth-page.light-mode .form-floating > .form-control:-webkit-autofill:hover, 
body.auth-page.light-mode .form-floating > .form-control:-webkit-autofill:focus, 
body.auth-page.light-mode .form-floating > .form-control:-webkit-autofill:active,
body.auth-page.light-mode input:-webkit-autofill,
body.auth-page.light-mode input:-webkit-autofill:hover, 
body.auth-page.light-mode input:-webkit-autofill:focus, 
body.auth-page.light-mode input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #0f172a !important;
  color: #0f172a !important;
  caret-color: #2563eb !important;
}


