.login-redirect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out; /* ← ADD ONLY THIS LINE */
}

.login-redirect.active {
    opacity: 1;
    pointer-events: all;
}

/* EVERYTHING ELSE STAYS EXACTLY THE SAME */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

#matrixVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 0, 0.3);
}

.login-redirect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
}

.login-redirect.active {
    opacity: 1;
    pointer-events: all;
}

.access-granted {
    color: #0f0;
    text-align: center;
    padding: 3rem;
    background: rgba(0, 20, 0, 0.9);
    border: 1px solid #0f0;
    border-radius: 5px;
    min-width: 400px;
}

.access-granted h2 {
    font-size: 2em;
    margin-bottom: 1rem;
}

.access-granted p {
    font-size: 1.1em;
    opacity: 0.8;
}



/* MODERN ENHANCEMENTS - Add to existing CSS */

.access-granted {
    color: #0f0;
    text-align: center;
    padding: 3rem;
    background: rgba(0, 20, 0, 0.9);
    border: 1px solid #0f0;
    border-radius: 8px; /* Slightly more modern radius */
    min-width: 400px;
    position: relative;
    overflow: hidden;
}

/* Subtle glow effect for modern feel */
.access-granted::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0f0, transparent, #0f0);
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.login-redirect.active .access-granted::before {
    opacity: 0.1; /* Very subtle gradient glow */
}

/* Modern typography enhancement */
.access-granted h2 {
    font-size: 2em;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5); /* Soft glow */
    letter-spacing: 1px; /* Better letter spacing */
    font-weight: 300; /* Lighter weight for modern feel */
}

.access-granted p {
    font-size: 1.1em;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

/* Subtle background pattern for video overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, rgba(0, 20, 0, 0.3) 0%, rgba(0, 40, 0, 0.1) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.02) 2px,
            rgba(0, 255, 0, 0.02) 4px
        ); /* Subtle grid pattern */
}