* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body,
html {
    height: 100%;
}

.container {
    display: flex;
    height: 100vh;
}

/* Partie gauche - login */
.left-panel {
    width: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.login-box h2 {
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-box button:hover {
    background-color: #0056b3;
}

/* Partie droite - bleu avec effets */
.right-panel {
    width: 50%;
    background: linear-gradient(135deg, #007BFF, #00C6FF);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Effet animé */
.right-panel::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 6s infinite ease-in-out;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

@keyframes pulse {
    0% {
        transform: scale(1) translate(-50%, -50%);
    }

    50% {
        transform: scale(1.2) translate(-50%, -50%);
    }

    100% {
        transform: scale(1) translate(-50%, -50%);
    }
}

.overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
}

.overlay h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.overlay p {
    font-size: 18px;
}

.right-panel {
    position: relative;
    width: 50%;
    overflow: hidden;
    background: linear-gradient(-45deg, #001F3F, #007BFF, #00C6FF, #00FFFF);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: inset 0 0 80px rgba(0, 255, 255, 0.2);
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* Particules flottantes */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particles span {
    position: absolute;
    display: block;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 12s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) scale(1.2);
        opacity: 0;
    }
}

.login-links {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.login-links a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.overlay h1 {
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #00FFFF, 0 0 20px #007BFF;
}

.overlay p {
    font-size: 18px;
    text-shadow: 0 0 6px #00C6FF;
}
/* Responsive layout */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-panel,
    .right-panel {
        width: 100%;
        height: auto;
    }

    .right-panel {
        min-height: 300px;
        padding: 40px 20px;
    }

    .overlay h1 {
        font-size: 28px;
    }

    .overlay p {
        font-size: 16px;
    }

    .login-box {
        width: 90%;
        padding: 20px;
    }

    .login-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

/* Ultra small devices */
@media (max-width: 480px) {
    .overlay h1 {
        font-size: 22px;
    }

    .overlay p {
        font-size: 14px;
    }

    .login-box h2 {
        font-size: 24px;
    }

    .login-box input,
    .login-box button {
        font-size: 14px;
        padding: 10px;
    }
}