/* login.css */
#login, #register {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    z-index: 1;
    /* background-color: var(--background-color); */
}

#login header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem; /* space below the logo */
}

#login .logo {
    display: flex;
    align-items: center;
    font-family: 'Fugaz One', 'Poppins', sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    color: white;
    gap: 0.5rem;
    margin-left: 0;
    width: auto;

}

#lottie-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -20;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.85;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;

}

body::before {
    content: "";
    position: fixed; /* covers the viewport */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.349); /* black, 50% opacity */
    z-index: -1; /* make sure it's below your content */
    pointer-events: none; /* allows clicks to pass through */
}

/* Style pour les messages de succès */
/* Style pour les messages contenant la classe success */
/* Style pour la div contenant le message de succès */
.messages.success {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 2rem;
    background-color: rgba(0, 128, 0, 0.3); /* Vert transparent sur la div entière */
    color: white; /* Texte en blanc */
    padding: 10px 20px; /* Espacement autour du texte */
    border-radius: 5px; /* Coins arrondis */
    margin: 10px 0; /* Espacement entre les messages */
}

/* Style pour la div contenant un message d'erreur */
.messages.error {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 2rem;
    background-color: rgba(255, 0, 0, 0.3); /* Rouge transparent sur la div entière */
    color: white; /* Texte en blanc */
    padding: 10px 20px; /* Espacement autour du texte */
    border-radius: 5px; /* Coins arrondis */
    margin: 10px 0; /* Espacement entre les messages */
}



.login-content form {
    display: flex;
    flex-direction: column;
    gap: 20px; 
    width: 100%;
    margin-top: 70px;
    font-family: 'Poppins', sans-serif;
}

.login-header {
    display: flex;
    align-items: center;
    position: absolute;
    top: 20px;
    left: 20px;
    gap: 10px;
}

.login-header img {
    width: 40px;
    height: 40px;
}

.login-header span {
    font-family:Fugaz One;
    font-size:30px;
    font-weight: bold;
    color: #000;
}

.login-content {
    background: var(--text-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 350px;
}

.h2-login {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.login-content p {
    color: #6c757d;
    font-size: 0.9rem;
    /* margin-bottom: 20px; */
}

.login-form {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 15px;
}

.login-form label {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.login-form input {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    width: 100%;
    padding: 0.75rem;
    box-sizing: border-box;
}

.login-form input:focus {
    border-color: #007bff;
}

.button-login {
    width: 100%;
    padding: 10px;
    background-color: #451B96;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
}

.button-login:hover {
    background-color: #451B96;
}

.register p {
    font-size: 0.9rem;
    margin: 15px 0;
}

.register a {
    color: #451B96;
    font-weight: bold;
    text-decoration: none;
}

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

.styled-text {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.styled-text span {
    font-size: 0.9rem;
    color: #6c757d;
}

.messages {
    background: #ffdddd;
    color: #d8000c;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
