/* Déclaration de la police MicroExtendFLF */
@font-face {
    font-family: 'MicroExtendFLF';
    src: url('/static/user_static_files/fonts/MicroExtendFLF.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    background: #c8dee8;
}

.login {
    position: relative;
    width: 380px;
    height: 450px;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.login::before {
    content: "";
    z-index: 1;
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 450px;
    transform-origin: bottom right;
    background: linear-gradient(0deg, transparent, #145474, #145474);
    animation: animate 6s linear infinite;
}

.login::after {
    content: "";
    z-index: 1;
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 450px;
    transform-origin: bottom right;
    background: linear-gradient(0deg, transparent, #fff, #fff);
    animation: animate 6s linear infinite;
    animation-delay: -3s;
}

@keyframes animate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

form {
    position: absolute;
    inset: 2px;
    background: #6ab6d7;
    padding: 50px 40px;
    border-radius: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

h2 {
    font-family: 'MicroExtendFLF', sans-serif;
    color: #fff;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: -5px;
    display: none;
}

.inputbox {
    position: relative;
    font-family: 'Open Sans', sans-serif;
    width: 300px;
    border-bottom: 2px solid #145474;
    margin-bottom: 20px;
}

.inputbox label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translatey(-50%);
    font: 1em;
    pointer-events: none;
    transition: .4s;
    color: white;
}

/* Lorsque l'input est en focus ou contient une valeur valide */
.inputbox input:focus ~ label,
.inputbox input:not(:placeholder-shown) ~ label {
    top: -5px;
    font-size: 0.85em;
    color: white;
}

.inputbox input {
    width: 85%;
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    padding: 0 5px 0 5px;
}

.inputbox ion-icon {
    position: absolute;
    right: 10px;
    bottom: 15px;
    font-size: 1.5em;
}

.links {
    font-family: 'Open Sans', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.links a {
    margin: 10px 0;
    font-size: 0.75em;
    color: #145474;
    text-decoration: none;
}

.links a:hover,
.links a:nth-child(2) {
    color: #fff;
}

/* Masquer la case à cocher par défaut */
input[type="checkbox"] {
    display: none;
}

/* Style pour la case à cocher personnalisée */
.custom-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid #145474;
    border-radius: 3px;
    display: inline-block;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

/* Style quand la case est cochée */
input[type="checkbox"]:checked + label .custom-checkbox {
    background-color: #145474;
    border-color: #145474;
}

.custom-checkbox::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 6px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(60deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Afficher la coche lorsqu'elle est cochée */
input[type="checkbox"]:checked + label .custom-checkbox::after {
    opacity: 1;
}

/* Label styling */
.label-agree-term {
    color: #fff;
    font-size: 0.85em;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.label-agree-term:hover .custom-checkbox {
    border-color: #45f3ff;
}

button {
    top: 50%;
    height: 40px; /* Hauteur fixe */
    border-radius: 8px; /* Coins arrondis */
    font-size: 16px; /* Taille du texte */
    padding: 0px 16px;
    font-family: 'Open Sans', sans-serif; /* Police */    
    border: none; /* Pas de bordure */
    cursor: pointer; /* Curseur de pointeur */
    display: inline-flex; /* Utiliser inline-flex pour aligner l'icône et le texte */
    align-items: center; /* Alignement vertical centré */
    justify-content: center; /* Centrer le contenu horizontalement */
    gap: 8px; /* Espace entre l'icône et le texte */
    margin: 0px 10px 10px 10px ;
    white-space: nowrap;
}

.button-primaire-normal {
    margin-top: 10px;
    background-color: #145474; /* Couleur de fond normale */
    color: #FFFFFF; /* Couleur du texte normale */
}

.button-primaire-normal:hover {
    background-color: #0f4258; /* Couleur de fond normale */
    color: #FFFFFF; /* Couleur du texte normale */
    transition: background-color 0.3s ease; /* Transition douce pour le survol */
}

.button-primaire-normal:active {
    background-color: #0C3548; /* Couleur de fond lorsque le bouton est cliqué */
}

.button-primaire-disabled {
    background-color: #e3f1fb; /* Couleur de fond désactivée */
    color: #4db7e3; /* Couleur du texte désactivé */
    cursor: not-allowed; /* Curseur non autorisé */
    opacity: 0.6; /* Opacité réduite pour l'effet désactivé */
}

.box {
    position: fixed;
    top: 0;
    transform: rotate(80deg);
    left: 0;
}

.wave {
    position: fixed;
    top: 0;
    left: 0;
    opacity: .4;
    position: absolute;
    top: 3%;
    left: 10%;
    background: #0af;
    width: 1500px;
    height: 1300px;
    margin-left: -150px;
    margin-top: -250px;
    transform-origin: 50% 48%;
    border-radius: 43%;
    animation: drift 7000ms infinite linear;
}

.wave.-three {
    animation: drift 7500ms infinite linear;
    position: fixed;
    background-color: #145474;
}

.wave.-two {
    animation: drift 3000ms infinite linear;
    opacity: .1;
    background: black;
    position: fixed;
}

.box:after {
    content: '';
    display: block;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 11;
    transform: translate3d(0, 0, 0);
}

@keyframes drift {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.forgot-password {
    position: relative;
    width: 380px;
    background: transparent;
    border-radius: 8px;
    padding: 40px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#forgot-pass {
    margin-bottom: 20px;
}

#reset-pass {
    width: 100%;
    height: 40px;
    background-color: #145474;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Styles pour les écrans mobiles */
@media screen and (max-width: 768px) {
    
    .inputbox {
        width: 100%; /* Ajuster la largeur des champs d'entrée */
    }

    .inputbox input {
        width: 100%; /* Champs d'entrée s'étendent à 100% */
    }

    button {
        width: 100%; /* Bouton s'étend à 100% */
        margin-top: 10px; /* Ajout de marge au-dessus du bouton */
    }
    .box {
        display: none; /* Cacher le div des vagues sur mobile */
      }
}


