/* Style global */
body,
html {
    height: 100%;
    margin: 0;
    font-family: "Titillium Web", sans-serif;
    color: white;
    background-color: rgb(0, 0, 0);
    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(../image/dark-headlight-bmw-laptop-4p6x5no7afj3xcc9-4084294628.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: backgroundAnimation 15s infinite alternate;
}

/* Conteneur principal centré */
.login-container {
    background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(116, 116, 116, 0.5); /* Effet d'ombre */
    text-align: center;
    width: 100%;
    max-width: 400px;
    max-height: 500px;
    transition: all 0.3s ease;
}

.titre {
    text-decoration: none;
    color: #5078FF;
    font-weight: 700;
    font-size: 40px;
    font-family: "Audiowide", sans-serif;
    text-shadow:
        0 0 5px #3C4E99,
        0 0 15px #5078FF,
        0 0 30px #85AFFF;
}

@keyframes neon-glow {
    0%, 100% {
        text-shadow: 
            0 0 5px #5078FF, 
            0 0 15px #85AFFF, 
            0 0 25px #5078FF;
    }
    50% {
        text-shadow: 
            0 0 10px #85AFFF, 
            0 0 25px #5078FF, 
            0 0 50px #85AFFF;
    }
}

/* Zone de connexion */
.login-box h2 {
    font-size: 35px;
    color: white;
    margin-bottom: 5px;
}

/* Champs de saisie */
.input-field {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #333333;
    color: white;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.input-field:focus {
    background-color: #444444; 
}

/* Bouton "Suivant" */
.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    background-color: #0056d6;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease, transform 0.3s ease;
}

.btn-submit:hover {
    background-color: #0b4ec1;
    transform: scale(1.02);
    box-shadow: 5px #2b79ff
}

/* Texte "Pas encore de compte ?" */
.register {
    font-size: 20px;
    color: #cccccc;
    margin-top: 20px;
}

.register a {
    color: #1100ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.register a:hover {
    color: #3f82ff;
    text-decoration: underline;
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
    animation: fadeInFooter 1s ease-in-out forwards;
}

@keyframes fadeInFooter {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

footer p {
    font-size: small;
}

footer i {
    padding: 8px 8px;
}

.message {
    position: fixed;
    top: 35%;
    font-size: 2.5rem;
    color: rgb(255, 255, 255);
    font-weight: bold;
    opacity: 0.6;
}

/* Animation pour la visibilité du contenu */
body {
    visibility: hidden;
    animation: showContent 1s ease-out forwards;
}

@keyframes showContent {
    from {
        visibility: hidden;
    }

    to {
        visibility: visible;
    }
}

/* Animation pour faire disparaître le loader */
@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@media screen and (max-width: 480px) {

    /* Conteneur principal */
    .register {
        padding: 20px;
        max-width: 90%; /* Utiliser la majorité de la largeur disponible */
        max-height: none; /* Supprimer la limite de hauteur */
        border-radius: 8px;
    }

    /* Titre */
    .titre {
        font-size: 30px; /* Réduction pour l'écran mobile */
        text-shadow: 
            0 0 3px #3C4E99,
            0 0 10px #5078FF,
            0 0 15px #85AFFF;
    }

    /* Champs de saisie */
    .input-field {
        font-size: 16px; /* Réduction de la taille de police */
        padding: 10px; /* Ajustement de l'espacement */
    }

    /* Bouton */
    .btn-submit {
        font-size: 16px; /* Taille réduite */
        padding: 12px;
    }

    /* Texte "Déjà un compte ?" */
    .login {
        font-size: 16px;
        margin-top: 15px;
    }

    .login a {
        font-size: 16px; /* Ajuster le lien pour mobile */
    }

    /* Footer */
    footer {
        flex-direction: column;
        align-items: center;
        font-size: 14px;
    }

    footer p {
        text-align: center;
        font-size: 0.8em;
    }

    footer i {
        font-size: 0.9em;
    }


    .message {
        font-size: 1.8rem;
    }

    /* Background */
    body,
    html {
        font-size: 20px; /* Réduction globale de la taille */
        background-size: contain; /* Ajuste le fond */
    }
}
