/* NILM Analytics - Futuristic AI Login Page Styles */

/* === BODY OVERRIDE === */
body.login-body,
html {
    margin: 0 !important;
    padding: 0 !important;
    background: 
        radial-gradient(ellipse at center, rgba(0, 20, 40, 0.9) 0%, rgba(0, 0, 0, 1) 100%),
        linear-gradient(135deg, #001122 0%, #002244 50%, #000011 100%) !important;
    height: 100vh !important;
    width: 100vw !important;
    overflow: hidden !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
}

/* Force dark background on all elements */
* {
    box-sizing: border-box;
}

body.login-body * {
    background-color: transparent !important;
}

/* === LOGIN BODY === */
.login-body {
    margin: 0 !important;
    padding: 0 !important;
    background: 
        radial-gradient(ellipse at center, rgba(0, 20, 40, 0.9) 0%, rgba(0, 0, 0, 1) 100%),
        linear-gradient(135deg, #001122 0%, #002244 50%, #000011 100%) !important;
    height: 100vh !important;
    width: 100vw !important;
    overflow: hidden !important;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
}

/* === LOGIN HEADER BRAND === */
.login-header-brand {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.login-logo .xenius-logo {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
}

.login-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.brand-powered {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}


.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

/* === NEURAL NETWORK BACKGROUND === */
.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.neural-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #00d4ff 0%, #0099cc 50%, transparent 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.6),
        0 0 40px rgba(0, 212, 255, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    animation: neuralPulse 3s ease-in-out infinite;
}

.neural-node:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.neural-node:nth-child(2) { top: 20%; left: 85%; animation-delay: 0.5s; }
.neural-node:nth-child(3) { top: 40%; left: 10%; animation-delay: 1s; }
.neural-node:nth-child(4) { top: 60%; left: 90%; animation-delay: 1.5s; }
.neural-node:nth-child(5) { top: 80%; left: 20%; animation-delay: 2s; }
.neural-node:nth-child(6) { top: 30%; left: 50%; animation-delay: 0.3s; }
.neural-node:nth-child(7) { top: 70%; left: 70%; animation-delay: 1.2s; }
.neural-node:nth-child(8) { top: 15%; left: 60%; animation-delay: 0.8s; }
.neural-node:nth-child(9) { top: 85%; left: 40%; animation-delay: 1.8s; }
.neural-node:nth-child(10) { top: 50%; left: 30%; animation-delay: 2.3s; }

@keyframes neuralPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 0 20px rgba(0, 212, 255, 0.6),
            0 0 40px rgba(0, 212, 255, 0.3);
    }
    50% { 
        transform: scale(1.2);
        box-shadow: 
            0 0 30px rgba(0, 212, 255, 0.8),
            0 0 60px rgba(0, 212, 255, 0.5);
    }
}

/* === ENERGY GRID === */
.energy-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.3;
}

.grid-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    height: 1px;
    width: 100%;
    animation: gridFlow 4s linear infinite;
}

.grid-line:nth-child(1) { top: 20%; animation-delay: 0s; }
.grid-line:nth-child(2) { top: 40%; animation-delay: 1s; }
.grid-line:nth-child(3) { top: 60%; animation-delay: 2s; }
.grid-line:nth-child(4) { top: 80%; animation-delay: 3s; }
.grid-line:nth-child(5) { top: 10%; animation-delay: 1.5s; }

@keyframes gridFlow {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* === FLOATING PARTICLES === */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #00ff80 0%, transparent 70%);
    border-radius: 50%;
    animation: floatParticle 8s linear infinite;
}

.particle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 30%; left: 80%; animation-delay: 1s; }
.particle:nth-child(3) { top: 50%; left: 10%; animation-delay: 2s; }
.particle:nth-child(4) { top: 70%; left: 90%; animation-delay: 3s; }
.particle:nth-child(5) { top: 20%; left: 60%; animation-delay: 4s; }
.particle:nth-child(6) { top: 80%; left: 40%; animation-delay: 5s; }
.particle:nth-child(7) { top: 40%; left: 30%; animation-delay: 6s; }
.particle:nth-child(8) { top: 60%; left: 70%; animation-delay: 7s; }
.particle:nth-child(9) { top: 15%; left: 50%; animation-delay: 2.5s; }
.particle:nth-child(10) { top: 85%; left: 15%; animation-delay: 4.5s; }

@keyframes floatParticle {
    0% { 
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* === AI SCAN LINES === */
.ai-scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation: scanMove 6s linear infinite;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.scan-line:nth-child(1) { top: 25%; animation-delay: 0s; }
.scan-line:nth-child(2) { top: 50%; animation-delay: 2s; }
.scan-line:nth-child(3) { top: 75%; animation-delay: 4s; }

@keyframes scanMove {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

.energy-visualization {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.energy-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(0, 191, 255, 0.1));
    clip-path: polygon(0 100%, 100% 100%, 100% 60%, 0 80%);
    animation: wave 8s ease-in-out infinite;
}

.energy-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 255, 255, 0.6);
    border-radius: 50%;
    animation: particle-float 6s linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: -2s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: -4s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: -1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes wave {
    0%, 100% {
        clip-path: polygon(0 100%, 100% 100%, 100% 60%, 0 80%);
    }
    50% {
        clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 60%);
    }
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* === MAIN CONTAINER === */
.main-container {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === LOGIN PAGE === */
.login-page {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    overflow: hidden;
}

/* === LOGIN CONTENT === */
.login-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    padding: 0.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.login-card {
    background: 
        linear-gradient(135deg, rgba(0, 20, 40, 0.95) 0%, rgba(0, 40, 80, 0.9) 100%);
    backdrop-filter: blur(25px);
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 25px;
    padding: 1.5rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(0, 212, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 100px rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: hidden;
    max-height: 100%;
    animation: card-glow 4s ease-in-out infinite alternate;
}

@keyframes card-glow {
    0% { 
        box-shadow: 
            0 25px 50px rgba(0, 0, 0, 0.7),
            0 0 0 1px rgba(0, 212, 255, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 100px rgba(0, 212, 255, 0.1);
    }
    100% { 
        box-shadow: 
            0 25px 50px rgba(0, 0, 0, 0.7),
            0 0 0 1px rgba(0, 212, 255, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 120px rgba(0, 212, 255, 0.15);
    }
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 128, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.login-card > * {
    position: relative;
    z-index: 2;
}

/* === LOGIN HEADER === */
.login-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 128, 0.15) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 2px solid rgba(0, 255, 128, 0.4);
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #00ff80;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 0 20px rgba(0, 255, 128, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: badge-pulse 3s ease-in-out infinite;
}

.welcome-badge i {
    color: var(--accent-color);
}

.login-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.connection-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 128, 0.1);
    border: 1px solid rgba(0, 255, 128, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #00ff80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(0, 255, 128, 0.4);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

.connection-status i {
    color: #00ff80;
    animation: pulse-icon 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(0, 255, 128, 0.2); }
    100% { box-shadow: 0 0 15px rgba(0, 255, 128, 0.4); }
}

@keyframes pulse-icon {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes badge-pulse {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(0, 255, 128, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(0, 255, 128, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* === LOGIN FOOTER === */
.login-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link:hover {
    color: #00d4ff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
    transform: translateY(-1px);
}

.footer-link i {
    font-size: 0.9rem;
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.4;
}

.security-info i {
    color: #00ff80;
    font-size: 0.8rem;
}

/* === INNOVATION FEATURES === */
.innovation-features {
    display: flex;
    justify-content: space-around;
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.feature-item i {
    font-size: 1.2rem;
    color: #00d4ff;
    animation: feature-pulse 2s ease-in-out infinite;
}

@keyframes feature-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* === LOGIN METHODS === */
.login-methods {
    margin: 1rem 0;
}

.method-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 0.25rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.method-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.method-tab.active {
    background: linear-gradient(135deg, #00d4ff, #00ff80);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.method-tab:hover:not(.active) {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.method-tab i {
    font-size: 1rem;
}

/* === LOGIN METHOD CONTENT === */
.login-method-content {
    margin: 1rem 0;
}

.biometric-auth, .qr-auth {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.biometric-icon, .qr-code {
    margin-bottom: 1rem;
}

.biometric-icon i, .qr-placeholder i {
    font-size: 3rem;
    color: #00d4ff;
    animation: pulse-glow 2s ease-in-out infinite;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biometric-auth h3, .qr-auth h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.biometric-auth p, .qr-auth p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.biometric-btn, .qr-refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #00d4ff, #00ff80);
    color: #000;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.biometric-btn:hover, .qr-refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.biometric-btn i, .qr-refresh-btn i {
    font-size: 1rem;
}

/* === FORCE TEXT VISIBILITY === */
.login-card .form-label,
.login-card .form-input,
.login-card .checkbox-label {
    color: #ffffff !important;
}

.login-card .form-label {
    color: #00ff80 !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(0, 255, 128, 0.5) !important;
}

.login-card .form-input {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.6) !important;
}

.login-card .form-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.login-card .checkbox-label {
    color: #00d4ff !important;
    font-weight: 600 !important;
    text-shadow: 0 0 6px rgba(0, 212, 255, 0.4) !important;
}
/* === LOGIN FORM === */
.login-form {
    margin-bottom: 0.25rem;
}

.form-group {
    margin-bottom: 0.625rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #00ff80;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(0, 255, 128, 0.5);
}

.form-label i {
    color: #00ff80;
}

.input-container {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 212, 255, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.form-input:focus {
    outline: none;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border-color: #00ff80;
    box-shadow: 
        0 0 25px rgba(0, 255, 128, 0.4),
        inset 0 0 25px rgba(0, 255, 128, 0.1),
        0 0 0 2px rgba(0, 255, 128, 0.3);
    transform: translateY(-1px);
}

.password-toggle {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: var(--accent-color);
    background: rgba(0, 255, 128, 0.1);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.375rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    color: #00ff80;
    text-shadow: 0 0 10px rgba(0, 255, 128, 0.6);
    transform: translateY(-1px);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #00d4ff, #00ff80);
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-primary);
    font-weight: bold;
    font-size: 12px;
}

.form-actions {
    margin-bottom: 0.125rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #00ff80 100%);
    color: #000;
    box-shadow: 
        0 15px 35px rgba(0, 212, 255, 0.4),
        0 0 0 1px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 20px 45px rgba(0, 212, 255, 0.5),
        0 0 0 2px rgba(0, 212, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.btn-text {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top: 2px solid var(--bg-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.input-error {
    color: var(--error-color);
    font-size: var(--font-size-xs);
    margin-top: var(--space-1);
    min-height: 1.25rem;
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
}

.error-content {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--error-color);
    font-size: var(--font-size-sm);
}

.error-content i {
    color: var(--error-color);
}

.error-message {
    flex: 1;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 640px) {
    .login-content {
        padding: 0.25rem;
        max-height: 90vh;
        max-width: 90vw;
    }
    
    .login-card {
        padding: 1rem;
    }
    
    .footer-links {
        gap: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-link {
        font-size: 0.75rem;
    }
    
    .security-info {
        font-size: 0.7rem;
        padding: 0 0.5rem;
    }
}
    
    .login-logo .xenius-logo {
        width: 80px;
        height: 80px;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .brand-powered {
        font-size: 0.65rem;
    }
    
    .login-title {
        font-size: 1.25rem;
    }
    
    .login-description {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .form-group {
        margin-bottom: 0.5rem;
    }
    
    .form-input {
        padding: 0.5rem 0.625rem;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
    }
    
    .btn-large {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .login-header {
        margin-bottom: 0.375rem;
    }
    
    .form-options {
        margin-bottom: 0.25rem;
    }
    
    .form-actions {
        margin-bottom: 0.0625rem;
    }
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
    .login-card {
        background: var(--bg-primary);
        border: 2px solid var(--text-primary);
    }
    
    .form-input {
        background: var(--bg-primary);
        border: 2px solid var(--text-primary);
        color: var(--text-primary);
    }
    
    .form-input::placeholder {
        color: var(--text-muted);
    }
}
.login-form {
    margin-bottom: var(--space-8);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-inverse);
    margin-bottom: var(--space-2);
}

.input-container {
    position: relative;
}

.form-input {
    width: 100%;
    padding: var(--space-4);
    font-size: var(--font-size-base);
    color: var(--text-inverse);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 128, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

/* === AI FORM STYLES === */
.ai-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ai-label i {
    color: #00ff80;
    font-size: 1rem;
}

.ai-input-container {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ai-input-container:focus-within {
    border-color: #00d4ff;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
}

.ai-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

.ai-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.ai-scan-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.ai-input:focus + .ai-scan-effect {
    left: 100%;
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ai-input:focus ~ .input-glow {
    opacity: 1;
}

.ai-password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #00d4ff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 3;
}

.ai-password-toggle:hover {
    color: #00ff80;
    background: rgba(0, 255, 128, 0.1);
}

/* === AI CHECKBOX STYLES === */
.ai-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ai-checkbox-label:hover {
    color: #00d4ff;
}

.ai-checkbox-label input[type="checkbox"] {
    display: none;
}

.ai-checkmark {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.ai-checkbox-label input[type="checkbox"]:checked + .ai-checkmark {
    background: linear-gradient(135deg, #00d4ff, #00ff80);
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.ai-checkbox-label input[type="checkbox"]:checked + .ai-checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: bold;
    font-size: 12px;
}

.ai-checkbox-label i {
    color: #00ff80;
    font-size: 0.9rem;
}

/* === AI LOGIN BUTTON === */
.ai-login-btn {
    position: relative;
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff80 100%);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(0, 212, 255, 0.3),
        0 0 0 1px rgba(0, 212, 255, 0.2);
}

.ai-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 40px rgba(0, 212, 255, 0.4),
        0 0 0 1px rgba(0, 212, 255, 0.3);
}

.ai-login-btn:active {
    transform: translateY(0);
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.btn-content i {
    font-size: 1.1rem;
    animation: brainPulse 2s ease-in-out infinite;
}

@keyframes brainPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.ai-login-btn:hover .btn-glow {
    left: 100%;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
}

.ai-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: aiSpin 1s linear infinite;
}

@keyframes aiSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.password-toggle {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--text-inverse);
}

/* === FORM OPTIONS === */
.form-options {
    margin-bottom: var(--space-6);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--text-inverse);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-inverse);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
}

/* === FORM ACTIONS === */
.form-actions {
    margin-bottom: 0.125rem;
}

.btn-large {
    width: 100%;
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    min-height: 3.5rem;
}

.btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: flex;
}

/* === LOGIN ERROR === */
.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--border-radius);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
}

.error-content {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--accent-error);
    font-size: var(--font-size-sm);
}

/* === LOGIN FOOTER === */
.login-footer {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.footer-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-inverse);
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-xs);
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
    .login-header-brand {
        top: 1rem;
        left: 1rem;
    }
    
    .login-logo .xenius-logo {
        width: 40px;
        height: 40px;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .brand-powered {
        font-size: 0.7rem;
    }
}

@media (max-width: 640px) {
    .login-content {
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .login-card {
        padding: 2rem;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .login-description {
        font-size: 0.9rem;
        margin-bottom: 1.75rem;
    }
    
    .login-header-brand {
        top: 0.5rem;
        left: 0.5rem;
    }
    
    .login-logo {
        gap: 0.75rem;
    }
    
    .login-logo .xenius-logo {
        width: 40px;
        height: 40px;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .brand-powered {
        font-size: 0.7rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .ai-input {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .ai-login-btn {
        padding: 1.25rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .login-content {
        padding: 1rem;
        max-height: 98vh;
    }
    
    .login-card {
        padding: 1.75rem;
    }
    
    .login-title {
        font-size: 1.8rem;
    }
    
    .login-description {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .ai-input {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .ai-login-btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .login-header-brand {
        top: 0.5rem;
        left: 0.5rem;
    }
    
    .login-logo .xenius-logo {
        width: 36px;
        height: 36px;
    }
    
    .brand-name {
        font-size: 0.9rem;
    }
    
    .brand-powered {
        font-size: 0.65rem;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    .floating-particles {
        animation: none;
    }
    
    .energy-wave {
        animation: none;
    }
    
    .particle {
        animation: none;
    }
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
    .login-card {
        background: var(--bg-primary);
        border: 2px solid var(--text-primary);
    }
    
    .form-input {
        background: var(--bg-primary);
        border: 2px solid var(--text-primary);
        color: var(--text-primary);
    }
    
    .form-input::placeholder {
        color: var(--text-muted);
    }
}
