/* ==========================================================================
   LIFE-LINE ENTERPRISE SYSTEM CORE ARCHITECTURE
   ========================================================================== */
#themeToggler{
    position: fixed !important;
    top:10px !important;
    right: 10px !important;
}
input:-internal-autofill-selected{
    background-color: transparent !important;
    background-image: none !important;
}

:root {
    /* Pitch Dark Premium Dark Mode Theme Tokens */
    --bg-main: #000000;                     /* Deep Pitch Black Base */
    --bg-card: rgba(15, 21, 26, 0.75);      /* Apple-style Glassmorphism Layer */
    --bg-sidebar: #090d14;                  /* Sidebar Panel Base */
    
    /* Global Brand Signature Tokens (Dono Mode Me Bilkul Same Rahenge) */
    --primary: #8ccda2;                     /* Your Signature Sage Green (SOLID) */
    --primary-hover: #a3dbb7;               /* Interactive Hover Glow State */
    --primary-glow: rgba(140, 205, 162, 0.35);/* Enhanced Shadow Radial Glow */
    --primary-soft: rgba(140, 205, 162, 0.06);/* Soft Background Accents Tint */
    
    /* Semantic Component Utilities */
    --border-color:#333333;/* Razor-Thin Grid Borders */
    --border-inout-color:#585858;/* Razor-Thin Grid Borders */

    --input-bg: #0b0f12;                    /* Minimalist Input Well Base */
    --text-main: #ffffff;                   /* Primary High-Contrast Text */
    --text-muted: #94a3b8;                  /* Optimized Secondary Info Subtexts */
}

/* Light Theme Mode Overrides (Keeping Primary Colors Purely Identical) */
[data-theme="light"] {
    /* Background & Structural Layers Swapped Cleanly to Light Alternatives */
    --bg-main: #f4f6f8;                     /* Clean Professional Neutral Light Gray */
    --bg-card: rgba(255, 255, 255, 0.82);   /* Premium White Frosted Acrylic Glass Layer */
    --bg-sidebar: #0e1622;                  /* Sidebar remains deep luxurious dark for rich contrast symmetry */
    
    /* Semantic Utilities Mapped for High-Readability Light Contrast */
    --border-color: rgba(15, 23, 42, 0.09);  /* Ultra-smooth subtle slate border tracking paths */
    --input-bg: #ffffff;                    /* Stark White High Contrast Inputs */
    --text-main: #0f172a;                   /* Deep Navy Slate for perfect typography weight */
    --text-muted: #64748b;                  /* Balanced secondary text density */
    --border-inout-color:  #c6dbd3;/* Razor-Thin Grid Borders */
    /* [STRICT ALIGNMENT]: Your brand core parameters completely retained below */
    /* --primary, --primary-hover, --primary-glow, --primary-soft stay fully inherited from :root! */
}

/* ==========================================================================
   GLOBAL RESET MATRIX & SYSTEM ROUTINE FOUNDATIONS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none !important;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dynamic Radial Engine Blends (Dono themes ke dynamic responsive depth gradients) */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background-image: radial-gradient(circle at center, rgba(140, 205, 162, 0.08) 0%, transparent 100%);
    pointer-events: none;
}

[data-theme="light"] body {
    background-image: 
        radial-gradient(at 0% 0%, hsla(145, 30%, 93%, 0.6) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(210, 40%, 95%, 1) 0, transparent 50%), 
        radial-gradient(at 100% 100%, hsla(145, 30%, 94%, 0.5) 0, transparent 50%);
}

/* ==========================================================================
   LAYOUT STRUCTURES (SPLIT LAYOUT PANEL ARCHITECTURE)
   ========================================================================== */
.auth-card {
    width: 100%;
    max-width: 1120px; 
    display: grid;
    grid-template-columns: 440px 1fr;
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(20px);
    animation: cardReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .auth-card {
    box-shadow: 0 40px 90px -30px rgba(15, 23, 42, 0.12);
}

.sidebar-panel {
    background: var(--bg-sidebar);
    background-image: 
        radial-gradient(circle at 0% 0%, var(--primary-glow) 0%, transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--border-color);
    position: relative;
    text-align: left;
    color: #ffffff !important; /* Sidebar text dark mode variant default texture hold karega */
}

/* Structural ensures sidebar titles maintain clarity always */
.sidebar-panel .hero-wrap h1, 
.sidebar-panel .hero-wrap h1 span,
.sidebar-panel h1, 
.sidebar-panel h2 {
    color: #ffffff !important;
}

.sidebar-panel h1 span, .sidebar-panel h2 span {
    background: linear-gradient(to right, #ffffff, var(--primary)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.form-panel {
    padding: 60px 80px;
    position: relative;
    background: transparent;
}

/* ==========================================================================
   UI COMPONENTS & REUSABLE CONTROL ELEMENTS
   ========================================================================== */
.card-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.75px;
    color: #cbd5e1;
    text-transform: uppercase;
}

.hero-wrap h1 { 
    font-size: 34px; 
    font-weight: 800; 
    line-height: 1.2; 
    margin: 25px 0 12px; 
    letter-spacing: -1.5px; 
}

.hero-wrap h1 span {
    background: linear-gradient(to right, #ffffff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-wrap p, .sidebar-main-desc { 
    color: #cbd5e1; 
    font-size: 14px; 
    line-height: 1.6; 
}

/* Reusable Dynamic Status Micro Indicators */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.3px;
}

[data-theme="light"] .status-indicator {
    color: #94a3b8; /* Persistent clear metadata tracking */
}

.dot-pulse {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}

/* Typography Headers Inside Form */
.header-text h2 {
    font-weight: 800;
    font-size: 34px;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.header-text h2 span {
    color: var(--primary) !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.header-text p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 15px;
    line-height: 1.5;
}

/* Form Fields & Micro-Layout Foundations */
.field-box {
    margin-bottom: 24px;
    text-align: left;
}

.field-box label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.input-wrap i.main-icon {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-size: 20px;
    z-index: 5;
    transition: color 0.3s ease;
}

/* Premium Luxurious Universal Input System */
.lux-input {
    width: 100%;
    height: 56px;
    border-radius: 14px;
    background: var(--input-bg);
    border: 1.5px solid var(--border-inout-color);
    padding: 0 20px 0 52px;
    font-weight: 600;
    color: var(--text-main) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lux-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px var(--primary-glow);
    background: var(--input-bg);
}

.lux-input:focus + i.main-icon {
    color: var(--primary);
}

.pass-toggle {
    position: absolute;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.pass-toggle:hover {
    color: var(--primary);
}

/* Action CTA Base Buttons (Dono Modes me Standard High Density Execution) */
.btn-primary-lux {
    width: 100%;
    height: 58px;
    border-radius: 16px;
    background: var(--primary);
    color: #000000 !important; /* Always readable black on sage green */
    border: none;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-primary-lux:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px var(--primary-glow);
}

/* Dropdown Handling Elements */
select.lux-input {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

select.lux-input option {
    background-color: #0f151a !important;
    color: #ffffff !important;
}

[data-theme="light"] select.lux-input option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* Core Interface Validation Intercept Wrappers */
.error-tip {
    color: #f87171;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    display: none;
}

.is-invalid-lux {
    border-color: #f87171 !important;
    background: rgba(248, 113, 113, 0.04) !important;
}

/* Core System Keyframe Animations Loop */
@keyframes cardReveal { to { opacity: 1; transform: translateY(0); } }
@keyframes drawPulseWave { 0% { stroke-dashoffset: 200; } 45% { stroke-dashoffset: 0; } 90%, 100% { stroke-dashoffset: -200; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0px rgba(140, 205, 162, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(140, 205, 162, 0); } 100% { box-shadow: 0 0 0 0px rgba(140, 205, 162, 0); } }
@keyframes premiumGlowBlink { 0%, 100% { opacity: 0.4; filter: drop-shadow(0 0 2px var(--primary)); } 50% { opacity: 1; filter: drop-shadow(0 0 12px var(--primary)) drop-shadow(0 0 4px #ffffff); } }

.spinner-loader, .spinner-border { animation: spinRotate 0.8s linear infinite; display: inline-block; }
@keyframes spinRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ==========================================================================
   COMMON SVG HEADERS TRAILER LOGIC
   ========================================================================== */
.pulse-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawPulseWave 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.glow-blink-target {
    animation: premiumGlowBlink 2s infinite ease-in-out;
    filter: drop-shadow(0 0 4px var(--primary));
}

/* Custom Social Federated Google Buttons Layout */
.btn-outline-custom {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    height: 52px;
    transition: all 0.2s ease !important;
}
.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(140, 205, 162, 0.4) !important; /* Light accent signature tracer trace on hover */
}

[data-theme="light"] .btn-outline-custom {
    background: #ffffff !important;
}
[data-theme="light"] .btn-outline-custom:hover {
    background: #f8fafc !important;
}

.divider-text {
    color: var(--text-muted) !important;
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
}
.divider-line { border-top: 1px solid var(--border-color) !important; opacity: 1 !important; }

/* Responsive Mobile Breakpoint Layout Engine */
@media (max-width: 991px) {
    .auth-card { grid-template-columns: 1fr; border-radius: 24px; }
    .sidebar-panel { display: none; }
    .form-panel { padding: 45px 25px; }
}


/* ==========================================================================
   LIFE-LINE ENTERPRISE TOPBAR & MODALS LAYER (THEME VARIABLE INTERCEPT)
   ========================================================================== */

/* Stripping Global Bootstrap Blue Anchor Reboots inside topbar dropdown scopes */
.dropdown-menu-custom a,
.dropdown-menu-custom a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

/* --- APPLE STYLE SLIDE MODAL MODULATOR OVERLAYS --- */
.apple-popup-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6) !important; /* Premium dim darkening mask */
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    z-index: 999999; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

[data-theme="light"] .apple-popup-overlay {
    background: rgba(15, 23, 42, 0.2) !important; /* Gentle shadow background blur layer */
}

.apple-popup-card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    width: 100%; 
    max-width: 360px; 
    border-radius: 24px; 
    padding: 32px 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6) !important;
    border: 1px solid var(--border-color) !important; 
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .apple-popup-card {
    box-shadow: 0 30px 70px -10px rgba(15, 23, 42, 0.12) !important;
}

/* Custom Warning Neon Icon Container Block */
.apple-popup-icon-wrap {
    width: 56px; 
    height: 56px; 
    background: rgba(248, 113, 113, 0.08) !important; 
    color: #f87171 !important; /* Solid Crimson Red warning accent */
    border: 1px solid rgba(248, 113, 113, 0.15);
    border-radius: 100px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin: 0 auto 20px auto; 
    font-size: 24px;
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.05);
}

.apple-popup-title {
    font-size: 18px; 
    font-weight: 800; 
    color: var(--text-main) !important; 
    margin-bottom: 8px; 
    letter-spacing: -0.4px;
}

.apple-popup-text {
    font-size: 13.5px; 
    color: var(--text-muted) !important; 
    font-weight: 500; 
    line-height: 1.5; 
    margin-bottom: 26px; 
    padding: 0 5px;
}

.apple-popup-actions-grid {
    display: flex; 
    gap: 12px;
}

.apple-popup-btn {
    width: 100%; 
    height: 48px; 
    border-radius: 14px; 
    font-size: 14px; 
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); 
    border: none; 
    outline: none;
    cursor: pointer;
}

/* Dismiss Cancel Button Layout config */
.apple-popup-btn.cancel-btn-style {
    background: rgba(255, 255, 255, 0.04) !important; 
    color: var(--text-main) !important;
    border: 1px solid var(--border-color);
}
.apple-popup-btn.cancel-btn-style:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="light"] .apple-popup-btn.cancel-btn-style {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: none;
}
[data-theme="light"] .apple-popup-btn.cancel-btn-style:hover {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

/* Dispatch Confirm Disconnect Button Layout config */
.apple-popup-btn.confirm-btn-style {
    background: var(--primary) !important; 
    color: #000000 !important; /* Forcing readability index */
    font-weight: 700;
    box-shadow: 0 8px 20px var(--primary-glow);
}
.apple-popup-btn.confirm-btn-style:hover {
    background: var(--primary-hover) !important; 
    transform: translateY(-1px);
    box-shadow: 0 12px 25px var(--primary-glow);
}
.apple-popup-btn.confirm-btn-style:active {
    transform: translateY(0);
}

/* PREMIUM SMOOTH SYSTEM MOTION TRANSLATIONS */
.animate-popup-slide {
    animation: popupSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes popupSlideIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}   