<style type="text/css">

/* Rï¿½initialisation des styles pour la saisie automatique */
input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important; /* Rï¿½initialise la couleur de fond */
    transition: background-color 5000s ease-in-out 0s; /* Retarde la transition de la couleur de fond */
}

/* Rï¿½initialisation des styles pour la saisie automatique du mot de passe */
input:-webkit-autofill::first-line {
    font-size: 16px; /* Rï¿½initialise la taille de police pour la saisie automatique du mot de passe */
}

/* Mise en forme des labels mï¿½me en cas d'autofill */
.inputbox label:-webkit-autofill {
    top: -5px !important;
}

* {
    margin: 0;
    padding: 0;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: url("../img/connexion.webp") no-repeat; /* Correction ici */
    background-position: center;
    background-size: cover;
}

.form-box {
    position: relative;
    width: 400px;
    height: 450px;
    background: transparent;
    border: none;
    border-radius: 20px;
    backdrop-filter: blur(15px) brightness(80%);
    display: flex;
    justify-content: center;
    align-items: center;
}

h2 {
    font-size: 2em;
    color: #fff;
    text-align: center;
}

.inputbox {
    position: relative;
    margin: 30px 0;
    width: 310px;
    border-bottom: 2px solid #fff;
}

.inputbox label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1em;
    pointer-events: none;
    transition: 0.5s;
}

/* animations: start */
input:focus~label,
input:valid~label {
    top: -5px;
}

/* animation:end */
.inputbox input {
    width: 100%;
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    padding: 0 35px 0 5px;
    color: #fff;
}

.inputbox ion-icon {
    position: absolute;
    right: 8px;
    color: #fff;
    font-size: 1.2em;
    top: 20px;
}

.forget {
    margin: -10px 0 17px;
    font-size: 0.9em;
    color: #fff;
    display: flex;
    justify-content: space-between;
}

.forget label input {
    margin-right: 3px;
}

.forget a {
    color: #fff;
    text-decoration: none;
}

.forget a:hover {
    text-decoration: underline;
}

button {
    width: 100%;
    height: 40px;
    border-radius: 40px;
    background-color: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
}

.register {
    font-size: 0.9em;
    color: #fff;
    text-align: center;
    margin: 25px 0 10px;
}

.register p a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

.register p a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 480px) {
    .form-box {
        width: 100%;
        border-radius: 0px;
    }
}

.float-titre {
    font-size: 2em;
    color: #282923;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1; /* Assurez-vous que les h2 sont au-dessus de l'image de fond */
}

.logo-container {
    position: absolute;
    left: 50%;
    bottom: 20px; /* Ajustez cette valeur selon vos besoins */
    transform: translateX(-50%);
    z-index: 1; /* Assurez-vous que le logo est au-dessus de l'image de fond */
}

.my-swal-container .swal2-modal {
    max-width: 75%;
}

.my-swal-container .swal2-popup .form-group {
    max-width: 75%;
    margin: auto; /* Pour centrer la div horizontalement */
}
</style>