* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow: hidden;
}

/* Three.js Canvas */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Logo Overlay */
.logo-overlay {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

#logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 105, 180, 0.5));
}

/* Auth Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.auth-container {
    text-align: center;
    padding: 20px;
    background: rgba(20, 20, 20, 0.9);
    border-radius: 20px;
    border: 2px solid #ff69b4;
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.3);
}

.auth-container h1 {
    color: #ff69b4;
    margin-bottom: 19px;
    font-size: 36px;
}

.auth-buttons {
    display: flex;
    gap: 18px;
}

.auth-buttons button {
    padding: 15px 40px;
    font-size: 18px;
    background: linear-gradient(45deg, #ff69b4, #c0c0c0);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-buttons button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.modal-content {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #ff69b4;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: #ff69b4;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}

.modal-content h2 {
    color: #ff69b4;
    margin-bottom: 20px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content label {
    color: #c0c0c0;
    font-size: 14px;
}

.modal-content input,
.modal-content select {
    padding: 12px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
}

.modal-content input:focus,
.modal-content select:focus {
    outline: none;
    border-color: #ff69b4;
}

.modal-content button {
    padding: 15px;
    background: #ff69b4;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.modal-content button:hover {
    background: #ff85d4;
}

.error-message {
    color: #ff4444;
    font-size: 14px;
    min-height: 20px;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Loading Indicator */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 300;
}

.loader {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff69b4;
    animation: bounce 2.5s infinite ease-in-out both;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.8);
}

.dot:nth-child(1) {
    animation-delay: -0.5s;
}

.dot:nth-child(2) {
    animation-delay: -0.25s;
    background: #c0c0c0;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.8);
}

.dot:nth-child(3) {
    background: #ff85d4;
    box-shadow: 0 0 20px rgba(255, 133, 212, 0.8);
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading p {
    color: #ff69b4;
    font-size: 18px;
    letter-spacing: 3px;
}

/* Nav Bar */
.nav-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 20px;
    align-items: center;
    background: rgba(20, 20, 20, 0.9);
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid #ff69b4;
}

.nav-bar button {
    padding: 10px 20px;
    background: #ff69b4;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
}

.nav-bar button:hover {
    background: #ff85d4;
}

/* Dashboard */
#dashboard {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    background: rgba(20, 20, 20, 0.9);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #ff69b4;
    min-width: 400px;
    text-align: center;
}

#dashboard h2 {
    color: #ff69b4;
    margin-bottom: 20px;
}

#dashboard button {
    padding: 12px 25px;
    margin: 10px;
    background: #ff69b4;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

#dashboard button:hover {
    background: #ff85d4;
}

/* Floating particles background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    background: rgba(192, 192, 192, 0.5);
    border-radius: 50%;
    animation: float 3s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(232, 232, 232, 0.6);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Sparkles */
.sparkle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #e8e8e8;
    border-radius: 50%;
    animation: sparkle 5s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(232, 232, 232, 0.9);
    pointer-events: none;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}
/* Responsive */
@media (max-width: 768px) {
    #logo {
        max-width: 200px;
    }
    
    .auth-container h1 {
        font-size: 28px;
    }
    
    .auth-buttons {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    #dashboard {
        min-width: 90%;
    }
}