* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

html {
    background: #0A0A0F !important;
}

body {
    background: #0A0A0F !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

.futuristic-bg {
    background: radial-gradient(ellipse at top, #0A0A0F 0%, #1A1A2E 50%, #0A0A0F 100%) !important;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

.glass-card {
    background: rgba(26, 26, 46, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.neon-border {
    border: 1px solid transparent;
    background: linear-gradient(45deg, #00D4FF, #8B5CF6, #00FF88, #EC4899) border-box;
    background-clip: border-box;
    position: relative;
}

.neon-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(45deg, #00D4FF, #8B5CF6, #00FF88, #EC4899);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: glow 3s ease-in-out infinite;
}

.form-input {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #FFFFFF;
}

.form-input:focus {
    border-color: #00D4FF;
    box-shadow: 
        0 0 0 3px rgba(0, 212, 255, 0.1),
        0 0 20px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

.btn-primary {
    background: linear-gradient(135deg, #00D4FF 0%, #8B5CF6 100%);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
    content: '';
    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.5s;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(0, 212, 255, 0.4),
        0 0 30px rgba(0, 212, 255, 0.3);
}

.logo-glow {
    text-shadow: 
        0 0 10px #00D4FF,
        0 0 20px #00D4FF,
        0 0 30px #00D4FF;
    animation: glow 2s ease-in-out infinite alternate;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00D4FF;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    animation: floatParticle 15s linear infinite;
    opacity: 0;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 14s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 16s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; animation-duration: 13s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; animation-duration: 15s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; animation-duration: 17s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; animation-duration: 14s; }
.particle:nth-child(8) { left: 80%; animation-delay: 1s; animation-duration: 13s; }
.particle:nth-child(9) { left: 90%; animation-delay: 3s; animation-duration: 16s; }
.particle:nth-child(10) { left: 15%; animation-delay: 5s; animation-duration: 15s; }
.particle:nth-child(11) { left: 25%; animation-delay: 7s; animation-duration: 14s; }
.particle:nth-child(12) { left: 35%; animation-delay: 9s; animation-duration: 17s; }
.particle:nth-child(13) { left: 45%; animation-delay: 11s; animation-duration: 12s; }
.particle:nth-child(14) { left: 55%; animation-delay: 13s; animation-duration: 16s; }
.particle:nth-child(15) { left: 65%; animation-delay: 1.5s; animation-duration: 15s; }
.particle:nth-child(16) { left: 75%; animation-delay: 4.5s; animation-duration: 13s; }
.particle:nth-child(17) { left: 85%; animation-delay: 6.5s; animation-duration: 14s; }

@keyframes floatParticle {
    0% { 
        transform: translateY(100vh) translateX(0) rotate(0deg); 
        opacity: 0; 
    }
    10% { 
        opacity: 0.6; 
    }
    90% { 
        opacity: 0.6; 
    }
    100% { 
        transform: translateY(-100px) translateX(100px) rotate(360deg); 
        opacity: 0; 
    }
}

@keyframes floatParticle {
    0% { 
        transform: translateY(100vh) translateX(0) rotate(0deg); 
        opacity: 0; 
    }
    10% { 
        opacity: 0.6; 
    }
    90% { 
        opacity: 0.6; 
    }
    100% { 
        transform: translateY(-100px) translateX(100px) rotate(360deg); 
        opacity: 0; 
    }
}

@keyframes glow {
    from { text-shadow: 0 0 10px #00D4FF, 0 0 20px #00D4FF, 0 0 30px #00D4FF; }
    to { text-shadow: 0 0 20px #00D4FF, 0 0 30px #00D4FF, 0 0 40px #00D4FF; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.error-message {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.success-message {
    animation: slideUp 0.5s ease-out;
}

.cyber-grid {
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Force dark theme */
html, body {
    background: #0A0A0F !important;
    color: #FFFFFF !important;
    scroll-behavior: smooth;
}

/* Chrome autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(10, 10, 15, 0.8) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    background: rgba(10, 10, 15, 0.8) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    backdrop-filter: blur(10px) !important;
}

input:-moz-autofill {
    background: rgba(10, 10, 15, 0.8) !important;
    color: #ffffff !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
}

.min-h-screen {
    background: #0A0A0F !important;
}

/* Premium Button Styles (Matching Landing Page) */
.premium-btn {
    position: relative;
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00D4FF;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.premium-btn::before {
    content: '';
    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;
}

.premium-btn:hover::before {
    left: 100%;
}

.premium-btn:hover {
    border-color: rgba(0, 212, 255, 0.6);
    background: rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 212, 255, 0.3),
        0 0 30px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #00D4FF;
}

.premium-btn:active {
    transform: translateY(0) scale(0.98);
}

.premium-btn-primary {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
    color: #FFFFFF;
}

.premium-btn-primary:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: 
        0 8px 25px rgba(0, 212, 255, 0.4),
        0 0 40px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 100vh !important;
        height: auto !important;
    }

    .futuristic-bg {
        min-height: 100vh !important;
        height: auto !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .glass-card {
        margin-top: 0.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .form-input {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    /* Reduce spacing on mobile */
    form .space-y-4 > * + * {
        margin-top: 0.75rem !important;
    }

    form .space-y-6 > * + * {
        margin-top: 1rem !important;
    }
}

/* Custom Scrollbar - Matching Landing Page */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 15, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.3) rgba(10, 10, 15, 0.5);
}