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

body {
    font-family: 'Cinzel', serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Vignette Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Film Grain Texture */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 3;
    opacity: 0.4;
}


/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOut 1s ease 1.5s forwards;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Container */
.container {
    text-align: center;
    z-index: 10;
    position: relative;
    opacity: 0;
    animation: containerFadeIn 1s ease 2s forwards;
}

@keyframes containerFadeIn {
    to {
        opacity: 1;
    }
}

/* Logo */
.logo-container {
    margin-bottom: 80px;
    opacity: 0;
    animation: logoEntry 1.2s ease 2.2s forwards, logoBreathe 4s ease-in-out 3.5s infinite;
}

@keyframes logoEntry {
    to {
        opacity: 1;
    }
}

@keyframes logoBreathe {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

.logo {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.1));
    display: block;
    margin: 0 auto;
}

/* Login Container */
.login-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
    animation: loginEntry 1s ease 3s forwards;
}

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

.login-form {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

/* Input Fields */
.login-form input {
    padding: 12px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 1px;
    outline: none;
    transition: all 0.3s ease;
    width: 180px;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
}

.login-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

.login-form input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Submit Button */
.login-form button {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
}

.login-form button:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Error Message */
.error-message {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.1);
}

.error-message.show {
    opacity: 1;
}

/* Particles - Enhanced with Varying Sizes and Depth */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 215, 0, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
    animation: float 20s infinite ease-in-out;
    opacity: 0;
}

/* Small particles */
.particle:nth-child(1),
.particle:nth-child(5),
.particle:nth-child(9) {
    width: 3px;
    height: 3px;
}

/* Medium particles */
.particle:nth-child(2),
.particle:nth-child(6),
.particle:nth-child(10) {
    width: 5px;
    height: 5px;
}

/* Large particles */
.particle:nth-child(3),
.particle:nth-child(7),
.particle:nth-child(11) {
    width: 7px;
    height: 7px;
}

/* Flare particles - occasionally bright */
.particle:nth-child(4),
.particle:nth-child(8),
.particle:nth-child(12) {
    width: 4px;
    height: 4px;
    animation: floatWithFlare 20s infinite ease-in-out;
}

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

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

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

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

.particle:nth-child(5) {
    left: 45%;
    animation-delay: 3s;
    animation-duration: 19s;
}

.particle:nth-child(6) {
    left: 55%;
    animation-delay: 5s;
    animation-duration: 24s;
}

.particle:nth-child(7) {
    left: 65%;
    animation-delay: 2.5s;
    animation-duration: 21s;
}

.particle:nth-child(8) {
    left: 75%;
    animation-delay: 4.5s;
    animation-duration: 23s;
}

.particle:nth-child(9) {
    left: 20%;
    animation-delay: 6s;
    animation-duration: 17s;
}

.particle:nth-child(10) {
    left: 40%;
    animation-delay: 1.5s;
    animation-duration: 26s;
}

.particle:nth-child(11) {
    left: 60%;
    animation-delay: 3.5s;
    animation-duration: 20s;
}

.particle:nth-child(12) {
    left: 85%;
    animation-delay: 5.5s;
    animation-duration: 22s;
}

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

@keyframes floatWithFlare {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
    }
    10% {
        opacity: 0.8;
    }
    30% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 1);
        opacity: 1;
    }
    35% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
    }
    60% {
        box-shadow: 0 0 35px rgba(255, 215, 0, 1);
        opacity: 1;
    }
    65% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) scale(1.2);
        opacity: 0;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor-glow {
        display: none;
    }
    
    .logo {
        max-width: 450px;
    }
    
    .login-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .login-form input,
    .login-form button {
        width: 100%;
        max-width: 280px;
        cursor: auto;
    }
}

@media (max-width: 480px) {
    .logo-container {
        margin-bottom: 60px;
        padding: 0 10px;
        overflow-x: auto;
    }
    
    .login-form input,
    .login-form button {
        font-size: 13px;
        padding: 10px 15px;
    }
}

@media (max-width: 360px) {
    .logo-container {
        margin-bottom: 50px;
        padding: 0 5px;
    }
}
