* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

:root {
    --color1: #f55823;
    --color2: #23488f;
    --color3: #f8f9fa;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #ddd;
}




.content{
    width: 100%;
    max-width: 400px;
}

/* Login container setup */
.login-container {
    background-color: #fff;
    padding: 20px 30px;
    width: 100%;
    min-width: 400px;
    max-width: 400px;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px 8px 0px 0px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligne les éléments normalement et crée de l'espace pour le contenu */
    height: auto; /* Laisse la taille du contenu déterminer la hauteur */
    margin: 0 auto; /* Centre le container horizontalement */
}

/* Styling for the version container */
.version-container {
    min-width: 400px;
    max-width: 400px;
    font-size: 14px; /* Taille de police réduite */
    color: #fff; /* Couleur de texte blanche */
    background-color: #23488f; /* Même couleur que l'en-tête */
    padding: 10px; /* Espacement autour du texte */
    text-align: center;
    border-radius: 0px 0px 8px 8px; /* Coins arrondis comme le container de login */
}

/* Centrer le container de version dans son parent */
.version-container {
    margin: 0 0 0 0;
}
.head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.head img {
    width: 100px;
    margin-left: -5px;
}

.login-container h2 {
    color: var(--color2);
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s;
    color: #535353;
}

.input-group input:focus {
    border-color: var(--color2);
    box-shadow: 0 0 5px #23498f62;
}

/* Style de base du label */

/* Lorsque l'input est en focus ou contient du texte */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    transform: translateY(0);
    font-size: 0.8em;
    color: var(--color1);
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    font-size: 14px;
    color: var(--color1);
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 5px;
}

.forgot-password {
    font-size: 14px;
    color: var(--color1);
    text-decoration: underline;
    transition: color 0.3s;

}

.btn-login {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    background-color: var(--color1);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #852a0c;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #6200ea;
    transition: color 0.3s;
}



@media(max-width: 700px) {
    .login-container {
       width: 90%;
    }
}

.input-group {
    position: relative;
}

.input-group label {
    position: absolute;
    top: 28%;
    left: 10px;
    font-size: 1em;
    color: grey;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: #fff;  /* Pour s'assurer que le fond ne cache pas le texte */
    padding: 0 5px;  /* Ajoute un peu de padding autour du texte pour qu'il soit mieux visible */
}

.label-active {
    top: -10px;
    transform: translateY(-16px);
    font-size: 0.7em !important;
    color: var(--color2) !important;
}



/* For alert message */

#toastBox{
    position: absolute;
    bottom: 30px;
    right: 30px;
    align-items: flex-end;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
}

.toast{
    width: 400px;
    height: 80px;
    font-weight: 500;
    margin: 15px 0;
    box-shadow: 0 0 20px rgba(6, 185, 15, 0.3);
    display: flex;
    align-items: center;
    padding: 10px;
    position: relative;
}

.toast.success {
    background: white;
}

.toast.error {
    background: white;
}

.toast.alert {
    background: white;
}

/* Progress bar */
.toast::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: white;
    animation: anim 5s linear forwards;
}

@keyframes anim {
    100%{
        width: 0;
    }
}

/* Définition des couleurs de la barre de progression pour chaque toast */
.toast.success::after {
    background: #28a745;
}

.toast.error::after {
    background: #dc3545;
}

.toast.alert::after {
    background: #ffc107;
}

.toast-message {
    font-weight: bold; /* Mettre le texte en gras */
    font-family: 'Poppins', sans-serif; /* Applique une police spécifique */
    color: #333; /* Ajoute une couleur pour le texte, ou utilisez une autre couleur si nécessaire */
}

