/* ===================================
   GibsFest 2K26 - Login Page CSS
   F1-Inspired Racing Theme
   =================================== */

:root {
    --color-red-primary: #E10600;
    --color-red-dark: #B10500;
    --color-red-light: #FF1E00;
    --color-black: #15151E;
    --color-black-light: #1E1E2E;
    --color-white: #FFFFFF;
    --gradient-red: linear-gradient(135deg, #E10600 0%, #FF1E00 100%);
    --transition-normal: 0.3s ease;
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--color-black);
    color: var(--color-white);
    height: 100vh;
    overflow: hidden;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

#bgVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(21, 21, 30, 0.8) 0%, rgba(30, 30, 46, 0.9) 100%);
}

/* Racing Lines Animation */
.racing-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.line {
    position: absolute;
    width: 200px;
    height: 2px;
    background: var(--gradient-red);
    opacity: 0.3;
    animation: raceLine 3s linear infinite;
}

.line:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.line:nth-child(2) {
    top: 50%;
    animation-delay: 1s;
}

.line:nth-child(3) {
    top: 80%;
    animation-delay: 2s;
}

@keyframes raceLine {
    from {
        left: -200px;
    }
    to {
        left: 100%;
    }
}

/* Login Container */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid var(--color-red-primary);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(225, 6, 0, 0.4);
    animation: cardSlideIn 0.6s ease;
}

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

/* Logo */
.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo i {
    font-size: 4rem;
    color: var(--color-red-primary);
    animation: logoSpin 3s linear infinite;
}

@keyframes logoSpin {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(360deg);
    }
}

.login-logo h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 1rem 0 0.5rem;
    letter-spacing: 3px;
}

.year {
    color: var(--color-red-primary);
    font-style: italic;
}

.subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* F1 Lights */
.f1-lights {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 2rem;
}

.light {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    border: 2px solid #555;
    animation: lightSequence 2s infinite;
}

.light:nth-child(1) { animation-delay: 0s; }
.light:nth-child(2) { animation-delay: 0.2s; }
.light:nth-child(3) { animation-delay: 0.4s; }
.light:nth-child(4) { animation-delay: 0.6s; }
.light:nth-child(5) { animation-delay: 0.8s; }

@keyframes lightSequence {
    0%, 100% {
        background: #333;
        box-shadow: none;
    }
    50% {
        background: var(--color-red-primary);
        box-shadow: 0 0 15px var(--color-red-primary);
    }
}

/* Login Form */
.login-form h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background: rgba(225, 6, 0, 0.2);
    border: 2px solid var(--color-red-primary);
    color: var(--color-red-primary);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--color-white);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-red-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(225, 6, 0, 0.3);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-normal);
}

.toggle-password:hover {
    color: var(--color-red-primary);
}

.btn-login {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient-red);
    color: var(--color-white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(225, 6, 0, 0.6);
}

.btn-login:active {
    transform: translateY(0);
}

/* Footer */
.login-footer {
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Speedometer */
.speedometer {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    opacity: 0.3;
}

#speedometerCanvas {
    width: 150px;
    height: 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        padding: 2rem;
    }
    
    .login-logo h1 {
        font-size: 2rem;
    }
    
    .speedometer {
        display: none;
    }
}
