/* Login Page Specific Styles */
.login-page {
    color: var(--light-gray);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Force form to stay visible */
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
}

/* Disable overlays on login page */
.login-page .noise,
.login-page .overlay,
.login-page .tech-grid,
.login-page .rune-rain-container,
.login-page .circuit-lines,
.login-page .pulse-circles,
.login-page .rune-circle,
.login-page .rune {
    opacity: 0.2; /* Further reduce opacity */
    pointer-events: none;
    z-index: 1; /* Ensure they stay behind the form */
}

.login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    z-index: 9999; /* Significantly higher z-index */
    position: relative;
    opacity: 1 !important; /* Force to be visible */
    visibility: visible !important;
    animation: none !important; /* Prevent any animations */
}

.login-box {
    background: rgba(10, 10, 14, 0.95); /* More opaque background */
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0 30px rgba(147, 88, 182, 0.5);
    border: 1px solid rgba(147, 88, 182, 0.3);
    animation: pulse-border-purple 5s infinite;
    position: relative;
    z-index: 9999; /* Ensure box has high z-index too */
    opacity: 1 !important; /* Force to be visible */
    visibility: visible !important;
}

.login-box h2 {
    margin-top: 0;
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(147, 88, 182, 0.5);
    background: linear-gradient(135deg, #6a0dad, #4B0082, #800080, #9370DB);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-container {
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid rgba(139, 0, 0, 0.4);
    border-radius: 5px;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin: 0.3rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ccc;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 10px 15px;
    background: rgba(30, 30, 40, 0.95); /* More opaque background */
    border: 1px solid rgba(147, 88, 182, 0.5); /* More visible border */
    border-radius: 4px;
    color: #fff;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10000; /* Extremely high z-index */
    opacity: 1 !important; /* Force opacity */
    visibility: visible !important; /* Force visibility */
}

.form-group input:focus {
    outline: none;
    border-color: rgba(147, 88, 182, 0.8);
    box-shadow: 0 0 10px rgba(147, 88, 182, 0.3);
}

.login-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4B0082, #800080);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.login-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.login-button:hover {
    background: linear-gradient(135deg, #6a0dad, #9370DB);
    box-shadow: 0 0 15px rgba(147, 88, 182, 0.5);
}

.login-button:hover::after {
    left: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-box {
        padding: 1.5rem;
    }
}
