/* ClutchZone Login - Ultra-Advanced Fixed Version */

/* Enhanced CSS Variables - Aligned with Global Design */
:root {
    /* Primary Gaming Colors */
    --primary-color: #00ff88;
    --primary-dark: #00cc6a;
    --primary-light: #33ff99;
    
    /* Secondary Colors */
    --secondary-color: #ff6b35;
    --accent-color: #8b5cf6;
    
    /* Background Colors */
    --background-dark: #0a0a0f;
    --background-secondary: #141421;
    --background-tertiary: #1e1e2e;
    --surface-color: #262638;
    --card-background: #2a2a3e;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b4b4c8;
    --text-muted: #8b8ba0;
    
    /* Status Colors */
    --success-color: #22c55e;
    --error-color: #ef4444;
    
    /* Gradient Definitions */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #ff4500 100%);
    
    /* Shadow System */
    --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-floating: 0 16px 48px rgba(0, 0, 0, 0.2);
    --cyber-glow: 0 0 20px rgba(0, 255, 136, 0.3);
    --neon-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Animation Timing */
    --timing-fast: 0.2s;
    --timing-normal: 0.3s;
    --timing-slow: 0.5s;
    
    /* Typography */
    --font-primary: 'Rajdhani', sans-serif;
    --font-mono: 'Orbitron', monospace;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Border & Effects */
    --border-color: #33334a;
    --border-light: #44445a;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Z-Index Layering */
    --z-background: -1;
    --z-content: 1;
    --z-elevated: 10;
    --z-floating: 100;
    --z-modal: 1000;
    --z-overlay: 10000;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--background-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: var(--font-weight-normal);
    background: linear-gradient(135deg, 
        var(--background-dark) 0%, 
        var(--background-secondary) 25%, 
        var(--background-tertiary) 50%, 
        var(--background-secondary) 75%, 
        var(--background-dark) 100%);
    background-size: 400% 400%;
    animation: bodyPulse 20s ease-in-out infinite;
    min-height: 100vh;
}

@keyframes bodyPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Main Content Container */
.main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: var(--z-content);
    padding: 2rem;
    padding-top: 90px; /* Account for navbar */
}

/* Advanced Background Effects */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--z-background);
    overflow: hidden;
    background: linear-gradient(135deg, 
        var(--background-dark) 0%, 
        var(--background-secondary) 25%, 
        var(--background-tertiary) 50%, 
        var(--background-secondary) 75%, 
        var(--background-dark) 100%);
}

.login-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

#loginCanvas {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.particles-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 98px,
        rgba(0, 255, 136, 0.03) 100px
    ),
    repeating-linear-gradient(
        0deg,
        transparent,
        transparent 98px,
        rgba(0, 255, 136, 0.03) 100px
    );
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridFloat 30s ease-in-out infinite;
}

@keyframes gridFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
    50% { transform: translate(20px, 20px) rotate(1deg); opacity: 0.6; }
}

/* Enhanced Navbar */
.advanced-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: var(--z-floating);
    transition: all var(--timing-normal) ease;
    height: 70px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--timing-normal) ease;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--cyber-glow);
}

.brand-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: invert(1);
}

.brand-text {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--timing-normal) ease;
    font-weight: var(--font-weight-medium);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Login Container - FIXED VERSION */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    background: rgba(42, 42, 62, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    animation: containerSlideIn 1.2s ease-out;
    position: relative;
}

@keyframes containerSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 255, 136, 0.03) 0%, 
        rgba(139, 92, 246, 0.03) 50%, 
        rgba(255, 107, 53, 0.03) 100%);
    z-index: -1;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Welcome Panel */
.welcome-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    position: relative;
    background: linear-gradient(135deg, 
        var(--background-dark) 0%, 
        var(--background-secondary) 50%, 
        var(--background-tertiary) 100%);
    border-right: 1px solid rgba(0, 255, 136, 0.2);
    overflow: hidden;
}

.welcome-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 255, 136, 0.1) 0%, transparent 70%),
        radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: welcomeGlow 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes welcomeGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.welcome-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

#welcomeCanvas {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-trophy, .floating-star, .floating-crown {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: floatAround 20s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.floating-trophy {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-star {
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.floating-crown {
    bottom: 30%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes floatAround {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
        opacity: 0.6; 
    }
    25% { 
        transform: translateY(-20px) translateX(10px) rotate(5deg); 
        opacity: 0.8; 
    }
    50% { 
        transform: translateY(-10px) translateX(-15px) rotate(-3deg); 
        opacity: 1; 
    }
    75% { 
        transform: translateY(-25px) translateX(5px) rotate(2deg); 
        opacity: 0.7; 
    }
}

.welcome-content {
    position: relative;
    z-index: 2;
    animation: contentSlideIn 1.5s ease-out;
}

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

.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px var(--primary-color));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: glowPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

.welcome-title {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-align: center;
}

.text-glow {
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientAnimate 3s ease-in-out infinite;
}

@keyframes gradientAnimate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
    animation: subtitleFade 1.5s ease-out 0.5s both;
}

@keyframes subtitleFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Live Stats Display */
.live-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    animation: statsSlideIn 1s ease-out 0.8s both;
}

@keyframes statsSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    transition: all var(--timing-normal) ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 255, 136, 0.05) 0%, 
        rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--timing-normal) ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--cyber-glow);
    border-color: var(--primary-color);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: block;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.pulse-effect {
    animation: pulseGlow 2s ease-in-out infinite;
}

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

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Login Bonus Section */
.login-bonus {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    animation: bonusSlideIn 1s ease-out 1s both;
}

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

.bonus-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
}

.bonus-icon {
    font-size: 1rem;
    animation: bonusIconSpin 3s ease-in-out infinite;
}

@keyframes bonusIconSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

.xp-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.xp-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 255, 136, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.xp-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0%;
    transition: width 2s ease-out;
    position: relative;
}

.animate-fill {
    animation: fillXP 2s ease-out 1.5s forwards;
}

@keyframes fillXP {
    0% { width: 0%; }
    100% { width: 50%; }
}

.xp-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* FORM PANEL - COMPLETELY FIXED */
.form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background: var(--card-background);
    position: relative;
    overflow: hidden;
    animation: formSlideIn 1.5s ease-out 0.3s both;
}

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

.form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 255, 136, 0.02) 0%, 
        rgba(139, 92, 246, 0.02) 100%);
    z-index: -1;
}

.form-container {
    position: relative;
    z-index: 2;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
}

/* LOGIN FORM - FIXED STYLES */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.input-container {
    position: relative;
    width: 100%;
}

/* CRITICAL FIX: Form Input Styles */
.form-input {
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: var(--font-primary);
    transition: all var(--timing-normal) ease;
    outline: none;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.form-input:focus {
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity var(--timing-normal) ease;
    z-index: 1;
    filter: blur(10px);
}

.form-input:focus ~ .input-glow {
    opacity: 0.3;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    z-index: 3;
    transition: color var(--timing-normal) ease;
}

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

.input-validation {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--success-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    opacity: 0;
    scale: 0;
    transition: all var(--timing-normal) ease;
    z-index: 3;
}

.input-validation.show {
    opacity: 1;
    scale: 1;
}

.input-validation.error {
    background: var(--error-color);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    gap: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.checkmark {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all var(--timing-normal) ease;
}

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

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

.forgot-password {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--timing-normal) ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.forgot-password:hover {
    color: var(--primary-color);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    height: 55px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--background-dark);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--timing-normal) ease;
    margin: 1rem 0;
    outline: none;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--neon-shadow);
}

.submit-btn:active {
    transform: translateY(-1px);
}

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

.btn-icon {
    font-size: 1.1rem;
    transition: transform var(--timing-normal) ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(3px);
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 3;
}

.submit-btn.loading .btn-content {
    opacity: 0;
}

.submit-btn.loading .btn-loader {
    opacity: 1;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--background-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    opacity: 0;
    transition: opacity var(--timing-normal) ease;
    z-index: 1;
    border-radius: var(--radius-md);
}

.submit-btn:hover .btn-glow {
    opacity: 0.8;
}

/* Social Login */
.social-login {
    margin-top: 1.5rem;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.divider span {
    margin: 0 1rem;
    background: var(--card-background);
    padding: 0 0.5rem;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    transition: all var(--timing-normal) ease;
    cursor: pointer;
}

.social-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
}

.social-btn.discord:hover {
    border-color: #5865f2;
    color: #5865f2;
    background: rgba(88, 101, 242, 0.1);
}

.social-btn.steam:hover {
    border-color: #00adee;
    color: #00adee;
    background: rgba(0, 173, 238, 0.1);
}

.social-btn.google:hover {
    border-color: #ea4335;
    color: #ea4335;
    background: rgba(234, 67, 53, 0.1);
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    animation: footerSlideIn 1s ease-out 2s both;
}

@keyframes footerSlideIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.register-link .link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all var(--timing-normal) ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.register-link .link:hover {
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    transform: translateY(-1px);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all var(--timing-slow) ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-container {
    text-align: center;
    max-width: 400px;
}

.loading-logo {
    position: relative;
    margin-bottom: 2rem;
}

.loading-logo-img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 30px var(--primary-color));
}

.loading-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: rotate 2s linear infinite;
}

.ring-1 {
    width: 100px;
    height: 100px;
    top: -10px;
    left: -10px;
    border-top-color: var(--primary-color);
}

.ring-2 {
    width: 80px;
    height: 80px;
    top: 0;
    left: 0;
    border-right-color: var(--accent-color);
    animation-direction: reverse;
    animation-duration: 3s;
}

.ring-3 {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-bottom-color: var(--secondary-color);
    animation-duration: 1.5s;
}

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

.loading-text {
    margin-bottom: 2rem;
}

.loading-message {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
}

.loading-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width var(--timing-slow) ease;
    border-radius: 3px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.step {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    border-radius: var(--radius-sm);
    transition: all var(--timing-normal) ease;
}

.step.active {
    color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--timing-slow) ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card-background);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: transform var(--timing-slow) ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-floating);
}

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

.modal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    z-index: -1;
}

#modalCanvas {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.success-icon-container {
    position: relative;
    margin-bottom: 1rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--background-dark);
    margin: 0 auto;
    animation: successPulse 2s ease-in-out infinite;
}

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

.modal-title {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.modal-close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 40px;
    height: 40px;
    background: var(--error-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--timing-normal) ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--timing-normal) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-btn.primary {
    background: var(--gradient-primary);
    color: var(--background-dark);
}

.modal-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.modal-btn:hover {
    transform: translateY(-2px);
}

/* Notification Container */
.notification-container {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: var(--z-overlay);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.notification {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform var(--timing-normal) ease;
    position: relative;
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
}

.notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.notification.error::before {
    background: var(--error-color);
}

.notification.success::before {
    background: var(--success-color);
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color var(--timing-normal) ease;
}

.notification-close:hover {
    color: var(--text-primary);
}

/* Connection Status */
.connection-status {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    z-index: var(--z-floating);
    transition: all var(--timing-normal) ease;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.connection-status.disconnected .status-indicator {
    background: var(--error-color);
}

.status-text {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 1rem;
    }
    
    .welcome-panel {
        padding: 2rem;
        border-right: none;
        border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    }
    
    .form-panel {
        padding: 2rem;
    }
    
    .live-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .main-content {
        padding: 1rem;
        padding-top: 90px;
    }
    
    .login-container {
        margin: 0.5rem;
    }
    
    .welcome-panel,
    .form-panel {
        padding: 1.5rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .live-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .notification-container {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .form-panel {
        padding: 1rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-input {
        height: 45px;
    }
    
    .submit-btn {
        height: 50px;
    }
}

/* Focus Indicators for Accessibility */
.form-input:focus,
.submit-btn:focus,
.social-btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
