/* Réinitialisation des marges et paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #00387a; /* Bleu foncé */
    background: url("../image/image\ déco.webp") no-repeat center center;
    background-size: cover; /* Taille de l'image */
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    color: #ffffff; /* Texte blanc pour contraste */
}

/* Container en style glassmorphism pour rester lisible */
.container {
    background: rgba(0, 204, 255, 0.402); /* Bleu nuancé */
    color: rgb(255, 255, 255); /* Couleur du texte */
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.753);
    width: 400px;
    padding: 30px;
    position: relative;
    animation: fadeIn 1s ease-in-out;
}

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

/* Logo de la société */
.logo {
    text-align: center;
    margin-bottom: 20px;
    color: #200578; /* Bleu nuancé */
    font-weight: 600;
    font-size: 28px;
}

/* Bouton vers "Le Pilote" */
.btn-pilote {
    display: inline-block;
    font-size: 16.6px;
    background: #ff6600; /* Orange */
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.3s ease;
    margin-bottom: 20px;
}
.btn-pilote:hover {
    background: #e65c00;
}

/* Styles communs pour les champs du formulaire */
.form-group {
    margin-bottom: 15px;
    position: relative;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #200578;
}
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border 0.3s ease;
}
.form-group input:focus {
    border: 1px solid #ffffff;
}

/* Bouton de soumission */
.submit-btn {
    width: 100%;
    padding: 10px;
    background: #004aad;
    border: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.submit-btn:hover {
    background: #00387a;
}

/* Lien pour basculer entre connexion et création de compte */
.toggle-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #200578;
    cursor: pointer;
    transition: color 0.3s ease;
}
.toggle-link:hover {
    color: #ff6600;
}

/* Animation décorative */
.animation-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 74, 173, 0.2);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.7;
    }
}

/* Styles pour les onglets de bascule */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.tabs button {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    color: #200578;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}
.tabs button.active {
    border-color: #004aad;
}

/* Gestion de l'affichage des formulaires */
.form-content {
    display: none;
}
.form-content.active {
    display: block;
}
