* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #00ff88;
    --primary-green-dark: #00cc6a;
    --secondary-cyan: #00d4ff;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --surface: #1a1a2e;
    --surface-light: #2a2a4e;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-accent: #00ff88;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --error-red: #ff4757;
    --success-green: #2ed573;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

/* Enhanced Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, var(--bg-dark), var(--bg-darker));
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: float 25s ease-in-out infinite;
}

.bg-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 136, 0.05) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
    animation: pulse 15s ease-in-out infinite alternate;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 1;
    }
    33% { 
        transform: translateY(-20px) rotate(1deg) scale(1.02); 
        opacity: 0.8;
    }
    66% { 
        transform: translateY(10px) rotate(-1deg) scale(0.98); 
        opacity: 0.9;
    }
}

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo img {
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links li a:hover {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.cta-btn {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    color: #0a0a0f;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 24px;
    justify-content: space-between;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        width: 200px;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .cta-btn {
        display: none;
    }

    .nav-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        width: 100%;
        right: -100%;
    }

    .nav-links.active {
        right: 0;
    }
}

/* Enhanced Auth Container */
.auth-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    position: relative;
    margin: 2rem;
    box-shadow: 
        0 25px 80px rgba(0, 255, 136, 0.15),
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: containerGlow 3s ease-in-out infinite alternate;
}

@keyframes containerGlow {
    0% { 
        box-shadow: 
            0 25px 80px rgba(0, 255, 136, 0.15),
            0 10px 40px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    100% { 
        box-shadow: 
            0 30px 100px rgba(0, 255, 136, 0.2),
            0 15px 50px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

/* Enhanced Header */
.auth-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    position: relative;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(139, 92, 246, 0.05));
    pointer-events: none;
}

.auth-header .logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    position: relative;
}

.auth-header .logo::before {
    content: "◆";
    color: var(--primary-green);
    font-size: 1.4rem;
    animation: logoGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--primary-green));
}

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

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Enhanced Tab Navigation */
.tab-nav {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.tab-nav::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-cyan));
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 3px 3px 0 0;
}

.tab-nav.register::before {
    transform: translateX(100%);
}

.tab-btn {
    flex: 1;
    padding: 1.4rem;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: var(--text-secondary);
}

.tab-btn.active {
    color: var(--primary-green);
    background: rgba(0, 255, 136, 0.05);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Enhanced Form Container */
.form-container {
    position: relative;
    height: 650px;
    overflow: hidden;
}

.form-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.5s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(0, 255, 136, 0.01));
}

.form-content.hidden {
    transform: translateX(100%);
    opacity: 0;
}

.form-content.active {
    transform: translateX(0);
    opacity: 1;
}

/* Enhanced Form Fields */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    padding: 1.4rem 0 0.8rem 0;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    transition: all 0.4s ease;
    outline: none;
    position: relative;
}

.form-input:focus {
    border-bottom-color: var(--primary-green);
    box-shadow: 0 3px 15px rgba(0, 255, 136, 0.25);
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    transform: translateY(-2rem) scale(0.85);
    color: var(--primary-green);
}

.form-label {
    position: absolute;
    top: 1.4rem;
    left: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
    transform-origin: left top;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.form-input.error {
    border-bottom-color: var(--error-red);
    animation: shake 0.5s ease-in-out;
    box-shadow: 0 3px 15px rgba(255, 71, 87, 0.25);
}

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

.error-message {
    color: var(--error-red);
    font-size: 0.85rem;
    margin-top: 0.6rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Privacy Policy Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 0.8rem;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-input:checked {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.checkbox-input:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: var(--bg-dark);
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--secondary-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: var(--primary-green);
}

/* Enhanced Buttons */
.submit-btn {
    width: 100%;
    padding: 1.4rem;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-cyan));
    color: var(--bg-dark);
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--secondary-cyan), var(--accent-purple));
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 255, 136, 0.4);
}

.submit-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

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

.switch-link {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1.5rem;
}

.switch-link a {
    color: var(--secondary-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.switch-link a:hover {
    color: var(--primary-green);
}

/* Toast notification */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 10000;
    max-width: 300px;
    font-weight: 500;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

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

.toast.success {
    border-color: var(--success-green);
    box-shadow: 0 15px 40px rgba(46, 213, 115, 0.3);
}

.toast.error {
    border-color: var(--error-red);
    box-shadow: 0 15px 40px rgba(255, 71, 87, 0.3);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(10, 10, 15, 0.3);
    border-radius: 50%;
    border-top-color: var(--bg-dark);
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Floating Particles Enhancement */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: floatParticle 20s infinite linear;
    opacity: 0.4;
    box-shadow: 0 0 6px var(--primary-green);
}

.particle:nth-child(even) {
    background: var(--secondary-cyan);
    box-shadow: 0 0 6px var(--secondary-cyan);
    animation-duration: 25s;
}

.particle:nth-child(3n) {
    background: var(--accent-purple);
    box-shadow: 0 0 6px var(--accent-purple);
    animation-duration: 30s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    body {
        padding-top: 70px;
    }

    .auth-container {
        margin: 1rem;
        border-radius: 24px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        margin: 1rem;
        max-width: none;
        border-radius: 20px;
    }

    .form-content {
        padding: 2rem;
    }

    .form-container {
        height: 650px;
    }

    .auth-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .nav-container {
        justify-content: space-between;
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.6rem;
    }
}

