/* ==========================================================================
   NEXT-GENERATION EXECUTIVE AUTH SUITE - HIGH CONTRAST & SEAMLESS DARK THEME
   Cable TV & Broadband Enterprise Management Portal
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;

  /* Color Palette */
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-primary-dark: #3730a3;
  --color-cyan: #38bdf8;
  --color-accent: #ec4899;
  --color-purple: #8b5cf6;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  /* Dark Theme Surfaces */
  --bg-deep: #060914;
  --bg-gradient: radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.28) 0%, transparent 45%),
                 radial-gradient(circle at 85% 85%, rgba(236, 72, 153, 0.22) 0%, transparent 50%),
                 radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.12) 0%, transparent 55%),
                 linear-gradient(135deg, #050711 0%, #0a1026 50%, #04060e 100%);

  /* Glass Card */
  --card-bg: rgba(12, 18, 36, 0.82);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.75),
                 0 0 50px -10px rgba(99, 102, 241, 0.28),
                 inset 0 1px 0 rgba(255, 255, 255, 0.12);

  /* Inputs */
  --input-bg: rgba(18, 26, 48, 0.8);
  --input-border: rgba(255, 255, 255, 0.16);
  --input-focus-border: #6366f1;
  --input-focus-shadow: 0 0 0 4px rgba(99, 102, 241, 0.28), inset 0 2px 4px rgba(0, 0, 0, 0.25);

  /* Text Colors */
  --text-white: #ffffff;
  --text-body: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --touch-target: 48px;
  --radius-lg: 1.5rem;
  --radius-md: 0.85rem;
}

/* ==========================================================================
   Base Structure & Viewport Layout
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body.modern-auth-body {
  font-family: var(--font-primary);
  background-color: var(--bg-deep) !important;
  color: var(--text-body);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout Wrapper */
.modern-auth-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-gradient);
  background-attachment: fixed;
  position: relative;
  z-index: 1;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

/* Top Indeterminate Loading Bar */
#auth-top-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #38bdf8, #ec4899, #6366f1);
  background-size: 200% 100%;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#auth-top-progress.active {
  opacity: 1;
  animation: topProgressAnim 1.5s infinite linear;
}

@keyframes topProgressAnim {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Interactive Canvas */
#auth-particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

/* Ambient Floating Glow Orbs */
.aurora-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(95px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  animation: orbDrift 20s ease-in-out infinite alternate;
}

.aurora-orb-1 {
  width: clamp(280px, 45vw, 550px);
  height: clamp(280px, 45vw, 550px);
  background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
  top: -120px;
  left: -90px;
  animation-duration: 18s;
}

.aurora-orb-2 {
  width: clamp(300px, 50vw, 580px);
  height: clamp(300px, 50vw, 580px);
  background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0) 70%);
  bottom: -140px;
  right: -100px;
  animation-duration: 22s;
  animation-delay: -6s;
}

.aurora-orb-3 {
  width: clamp(220px, 35vw, 420px);
  height: clamp(220px, 35vw, 420px);
  background: radial-gradient(circle, #38bdf8 0%, rgba(56, 189, 248, 0) 70%);
  top: 35%;
  right: 12%;
  animation-duration: 25s;
  animation-delay: -11s;
}

@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, 55px) scale(1.12); }
  100% { transform: translate(-35px, 30px) scale(0.92); }
}

/* ==========================================================================
   Brand Header & Logo Badge
   ========================================================================== */

.auth-header-container {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1.15rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 0.85rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 100%;
}

@media (hover: hover) {
  .auth-brand-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
  }
}

.brand-live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.brand-live-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.6);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.9; }
  50% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

.brand-badge-text {
  font-size: clamp(0.725rem, 1.8vw, 0.775rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e2e8f0;
  white-space: nowrap;
}

/* Premium Frosted Logo Badge */
.auth-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.4),
              0 0 20px rgba(99, 102, 241, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .auth-logo-badge:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(99, 102, 241, 0.5);
  }
}

.auth-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   3D Studio Glass Card
   ========================================================================== */

.auth-3d-scene {
  perspective: 1200px;
  width: 100%;
}

.modern-auth-card {
  position: relative;
  z-index: 2;
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: var(--radius-lg) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  box-shadow: var(--card-shadow) !important;
  overflow: hidden;
  transition: transform 0.15s ease-out, box-shadow 0.35s ease, border-color 0.35s ease;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 460px;
  transform-style: preserve-3d;
}

/* Glowing Hologram Perimeter */
.modern-auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #38bdf8, #ec4899, #8b5cf6, #6366f1);
  background-size: 300% 100%;
  animation: shimmerFlow 7s linear infinite;
}

@keyframes shimmerFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.modern-auth-card .card-body {
  padding: clamp(1.4rem, 3.5vw, 2.25rem) !important;
}

/* Card Header Typography */
.card-welcome-title {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3.2vw, 1.75rem);
  font-weight: 700;
  color: var(--text-white) !important;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

/* ==========================================================================
   Inputs & Floating Form Controls
   ========================================================================== */

.form-group-modern {
  margin-bottom: 1.2rem;
  position: relative;
}

.form-label-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(0.8125rem, 1.8vw, 0.875rem);
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 0.45rem;
}

.form-label-modern .required-star {
  color: #f87171;
  margin-left: 2px;
}

.input-counter-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.25s ease;
}

.input-counter-badge.valid {
  color: var(--color-success);
}

.input-wrapper-modern {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon-lead {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: #818cf8;
  font-size: 1.25rem;
  pointer-events: none;
  transition: color 0.25s ease, transform 0.25s ease;
  z-index: 3;
}

.form-control-modern {
  width: 100%;
  height: clamp(48px, 5.2vw, 52px);
  min-height: var(--touch-target);
  background: var(--input-bg) !important;
  border: 1px solid var(--input-border) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.65rem 1rem 0.65rem 3.15rem !important;
  color: #ffffff !important;
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
  font-family: var(--font-primary);
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.form-control-modern::placeholder {
  color: var(--text-dim) !important;
  font-weight: 400;
}

.form-control-modern:focus {
  background: rgba(24, 34, 62, 0.95) !important;
  border-color: var(--input-focus-border) !important;
  box-shadow: var(--input-focus-shadow) !important;
  outline: none !important;
}

.input-wrapper-modern:focus-within .input-icon-lead {
  color: var(--color-cyan);
  transform: translateY(-50%) scale(1.1);
}

/* Password Toggle Eye Button */
.btn-password-toggle {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  min-height: 40px;
  min-width: 40px;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 3;
  touch-action: manipulation;
}

@media (hover: hover) {
  .btn-password-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }
}

.btn-password-toggle:active {
  background: rgba(255, 255, 255, 0.16);
}

/* Caps Lock Warning Tooltip */
.capslock-warning {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  color: #fef08a;
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 0.45rem;
  margin-top: 0.4rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Remember Me & SSL Row */
.auth-remember-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.custom-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
  min-height: 28px;
}

.custom-auth-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--input-bg);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.custom-auth-check input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: #818cf8;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

.custom-auth-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.custom-auth-check .check-label {
  font-size: clamp(0.8125rem, 1.8vw, 0.875rem);
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .custom-auth-check:hover .check-label {
    color: #ffffff;
  }
}

.auth-ssl-badge {
  font-size: 0.725rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.75);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.25rem 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */

.btn-auth-submit {
  width: 100%;
  height: clamp(48px, 5.5vw, 54px);
  min-height: var(--touch-target);
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-heading) !important;
  font-size: clamp(0.95rem, 2vw, 1.05rem) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  box-shadow: 0 10px 25px -4px rgba(99, 102, 241, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  touch-action: manipulation;
}

@media (hover: hover) {
  .btn-auth-submit:hover {
    background: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%) !important;
    box-shadow: 0 14px 30px -4px rgba(99, 102, 241, 0.75), 0 0 25px rgba(56, 189, 248, 0.45) !important;
    transform: translateY(-2px);
  }
}

.btn-auth-submit:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 6px 15px -3px rgba(99, 102, 241, 0.4) !important;
}

.btn-auth-submit.btn-warning-state {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.45) !important;
}

.btn-auth-submit.btn-danger-state {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.45) !important;
}

/* Ripple Micro-interaction */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleSpread 0.6s linear;
  background-color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

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

/* ==========================================================================
   Validation Errors & Input Highlighting
   ========================================================================== */

label.error {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #f87171 !important;
  margin-top: 0.4rem;
  padding-left: 0.3rem;
  animation: errorSlide 0.25s ease-out;
}

@keyframes errorSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-control-modern.error {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

/* ==========================================================================
   Feature Badges & Security Highlights
   ========================================================================== */

.auth-features-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.feature-pill i {
  color: var(--color-cyan);
  font-size: 0.875rem;
}

/* ==========================================================================
   Expiry Warning Alerts
   ========================================================================== */

.auth-notice-banner {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  border-radius: 1rem !important;
  padding: clamp(0.85rem, 2vw, 1.2rem) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  text-align: center;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15) !important;
}

.auth-notice-banner h5 {
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  font-weight: 600;
  color: #fca5a5 !important;
  margin-bottom: 0.3rem;
}

.auth-notice-banner h6 {
  font-size: clamp(0.775rem, 1.8vw, 0.825rem);
  color: #fecaca !important;
  margin-bottom: 0.5rem;
}

.auth-notice-banner .btn-renew {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.15rem;
  min-height: 40px;
  background: #ef4444 !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.auth-notice-banner .btn-renew:hover {
  background: #dc2626 !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   Legal Quick Links
   ========================================================================== */

.auth-quick-links {
  position: relative;
  z-index: 2;
  margin-top: 1.35rem;
  text-align: center;
}

.quick-link-item {
  color: var(--text-muted) !important;
  font-size: clamp(0.75rem, 1.7vw, 0.8125rem);
  font-weight: 500 !important;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 0.45rem;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

@media (hover: hover) {
  .quick-link-item:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
  }
}

.quick-link-item:active {
  background: rgba(255, 255, 255, 0.14);
}

.quick-link-separator {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 0.25rem;
  display: inline-block;
  user-select: none;
}

@media (max-width: 480px) {
  .quick-link-separator {
    display: none;
  }
  .quick-link-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin: 2px;
  }
}

/* ==========================================================================
   Seamless Dark Footer (Fixes White Bar Issue)
   ========================================================================== */

footer.footer, 
.footer, 
.auth-footer-container, 
.auth-footer-bar {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  position: relative !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  padding: 1.25rem 0 0.75rem 0 !important;
  margin-top: 2rem !important;
  z-index: 10 !important;
}

.auth-footer-text {
  font-size: 0.8125rem !important;
  color: #94a3b8 !important;
  line-height: 1.5 !important;
}

.auth-footer-text a {
  color: var(--color-cyan) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

@media (hover: hover) {
  .auth-footer-text a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
  }
}

/* Loading Spinner */
.btn-spinner {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

/* ==========================================================================
   Next-Generation Advanced UI Enhancements
   ========================================================================== */

/* Quick Clear Button */
.btn-input-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.15rem;
  padding: 4px;
  cursor: pointer;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 5;
}

.btn-input-clear.visible {
  display: flex;
}

.btn-input-clear:hover {
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

/* Password Strength Meter */
.pwd-meter-container {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  animation: fadeIn 0.3s ease;
}

.pwd-meter-container.active {
  display: flex;
}

.pwd-meter-bar {
  flex: 1;
  display: flex;
  gap: 4px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pwd-meter-bar span {
  flex: 1;
  height: 100%;
  border-radius: 9999px;
  transition: background-color 0.3s ease;
  background: transparent;
}

.pwd-meter-bar span.weak {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.pwd-meter-bar span.medium {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.pwd-meter-bar span.strong {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.pwd-meter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 55px;
  text-align: right;
  transition: color 0.3s ease;
}

.pwd-meter-label.weak { color: #ef4444; }
.pwd-meter-label.medium { color: #f59e0b; }
.pwd-meter-label.strong { color: #10b981; }

/* Quick Demo Assistant Bar */
.quick-access-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
}

.quick-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.quick-chip-btn {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.quick-chip-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: #818cf8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* System Telemetry Bar */
.auth-system-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.725rem;
  color: #10b981;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.status-ping-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulsePing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}


