body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Poppins', Arial, sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #0077b6, #023e8a);
    color: white;
}

.wave {
    position: absolute;
    width: 200%;
    height: 400px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: wave-animation 8s infinite ease-in-out;
}

.wave:nth-child(2) {
    animation-delay: -2s;
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.1);
}

.wave:nth-child(3) {
    animation-delay: -4s;
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1.2);
}

@keyframes wave-animation {
    0%, 100% { transform: translate(-50%, -50%) translateY(10px); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

#login-container {
    position: absolute; /* Ajout de la position relative pour que le logo soit positionné à l'intérieur de ce conteneur */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 350px;
    text-align: center;
    animation: fadeIn 1s ease;
}

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

input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    caret-color: #00b4d8;
    transition: background 0.3s ease, transform 0.2s ease;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

button {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #00b4d8, #0096c7);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
    background: linear-gradient(135deg, #0096c7, #00b4d8);
    transform: scale(1.05);
}

button:active {
    transform: scale(1);
}

#error-message {
    margin-top: 10px;
    color: #ff6f61;
    font-size: 14px;
    display: none;
}

h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Logo Styles */
#logo {
    position: absolute; /* Position absolue par rapport à #login-container */
    top: -130px; /* Logo placé au-dessus du conteneur */
    left: 50%;
    transform: translateX(-50%);
    width: 150px; /* Taille du logo */
    animation: logoMove 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite, logoScale 1s ease-in-out infinite;
}

/* Animation dynamique du logo : rotation, translation et mise à l'échelle */
@keyframes logoMove {
    0% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(-50%) translateY(-10px) rotate(15deg);
    }
    50% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
    75% {
        transform: translateX(-50%) translateY(10px) rotate(-15deg);
    }
    100% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
}

@keyframes logoScale {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.2);
    }
}
