@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1623 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Vidéo de fond */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    opacity: 0.7;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

#bg-video::-webkit-media-controls {
    display: none !important;
}

#bg-video::-webkit-media-controls-enclosure {
    display: none !important;
}

#bg-video::-webkit-media-controls-panel {
    display: none !important;
}

#bg-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.5);
    z-index: 1;
    pointer-events: none;
}

@keyframes backgroundPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.container {
    position: relative;
    z-index: 10;
    background: rgba(15, 22, 35, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px 60px;
    border-radius: 20px;
    box-shadow:
        0 0 60px rgba(0, 174, 255, 0.3),
        0 0 100px rgba(255, 140, 0, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 174, 255, 0.3);
    min-width: 400px;
    animation: containerEntrance 0.6s ease-out;
}

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

h2 {
    text-align: center;
    color: #00aeff;
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-shadow:
        0 0 20px rgba(0, 174, 255, 0.8),
        0 0 40px rgba(0, 174, 255, 0.4);
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(0, 174, 255, 0.8),
            0 0 40px rgba(0, 174, 255, 0.4);
    }
    50% {
        text-shadow:
            0 0 30px rgba(0, 174, 255, 1),
            0 0 60px rgba(0, 174, 255, 0.6);
    }
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    padding: 15px 20px;
    background: rgba(10, 14, 39, 0.6);
    border: 2px solid rgba(0, 174, 255, 0.4);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    border-color: #00aeff;
    background: rgba(0, 174, 255, 0.1);
    box-shadow:
        0 0 20px rgba(0, 174, 255, 0.4),
        inset 0 0 10px rgba(0, 174, 255, 0.1);
    transform: translateY(-2px);
}

button[type="submit"] {
    padding: 15px 30px;
    background: linear-gradient(135deg, #00aeff 0%, #0088cc 100%);
    border: 2px solid #00aeff;
    border-radius: 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button[type="submit"]:hover::before {
    width: 300px;
    height: 300px;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6600 100%);
    border-color: #ff8c00;
    box-shadow:
        0 0 30px rgba(255, 140, 0, 0.6),
        0 0 60px rgba(255, 140, 0, 0.3);
    transform: translateY(-3px);
}

button[type="submit"]:active {
    transform: translateY(-1px);
}

.error {
    background: rgba(255, 50, 50, 0.2);
    border: 2px solid rgba(255, 50, 50, 0.6);
    color: #ff5050;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    animation: errorShake 0.5s ease;
    box-shadow: 0 0 20px rgba(255, 50, 50, 0.3);
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.success {
    background: rgba(50, 255, 130, 0.2);
    border: 2px solid rgba(50, 255, 130, 0.6);
    color: #32ff82;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    animation: successPulse 0.5s ease;
    box-shadow: 0 0 20px rgba(50, 255, 130, 0.3);
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

p {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
}

a {
    color: #ff8c00;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a:hover {
    color: #00aeff;
    text-shadow: 0 0 10px rgba(0, 174, 255, 0.8);
}

/* Effet de boost Rocket League */
.container::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00aeff, #ff8c00, #00aeff);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-size: 200% 200%;
    animation: borderGradient 3s ease infinite;
}

@keyframes borderGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container:hover::after {
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 40px 30px;
        min-width: 320px;
    }

    h2 {
        font-size: 32px;
    }

    button[type="submit"] {
        font-size: 18px;
    }
}
