#auth-body button,
#register-body button {
    border: none;
}

#auth-body,
#register-body {
    line-height: 1;
    background-color: var(--login-page-background);
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
}

#register-body {
    flex-direction: row-reverse;
}

/*****************/
/* Image de fond */
/*****************/

#authentification-image {
    background-image: url(../images/authentification_background.jpg);
    background-size: cover;
    background-position: center;
    width: 68vw;
    height: 100vh;
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;     
    text-align: center; 
}

#title {
    color: black; 
    font-size: 6rem;
    margin: 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2); /* Optionnel : pour la lisibilité */
}

#sous-titre {
    color: #333;
    font-size: 1.1rem;
    letter-spacing: 2px;
    font-weight: 500;
    margin-top: 10px; 
}

/**********************************/
/* Popup compte crée ou incorrect */
/**********************************/

.authentification-popup {
    text-align: center;
    color: var(--secondary-font-color);
    height: 55px;
    width: 100%;
    border: 2px solid var(--main-theme);
    background-color: var(--main-theme-transparent);
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    animation: popupLeave 1.0s ease-in forwards;
    animation-delay: 5s;
}

@keyframes popupLeave {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50px);
        opacity: 0;
    }
}

/***************************/
/* Conteneur du formulaire */
/***************************/

#form-container {
    flex: 0 1 500px;
    border-left: solid 1px gray;
    padding: 0px 40px;
    background-color: var(--login-background);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#form-login {
    max-width: 300px;
    width: 100%;
    position: relative;
}

#form-register {
    max-width: 300px;
    width: 100%;
    position: relative;
}

/*************************/
/* Contenu du formulaire */
/*************************/

#authentification-title {
    font-size: 36px;
    color: var(--label-color);
    margin-bottom: 20px;
}

#auth-body label,
#register-body label {
    margin-top: 10px;
    display: block;
    margin-bottom: 6px;
    color: var(--label-color);
    font-size: var(--default-font-size);
    font-weight: bold;
}

#register-body input {
    margin-bottom: 0px;
}

.login.main-button {
    margin-top: 20px;
    width: 100%;
    height: 40px;
    border-radius: 50px;
    background-color: #A45FEE;
}

/*************************/
/* Contenu du formulaire */
/*************************/

#form-register #names-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 20px;
}

#form-register #names-container label {
    margin-top: 0;
}

/*****************/
/* Mots de passe */
/*****************/

.passwordDivs {
    display:flex;
    align-items: center;
    border-radius: var(--input-border-radius);
    overflow: hidden;
}

.hide-password {
    margin:0;
    padding:0;
    cursor:pointer;
    position: absolute;
    right: 10px;
    background: none;
    color:#606060;
    font-size: 15px;
}

#password,
#password-verify {
    margin: 0;
}

#passwordDiv,
#form-register #passwordVerifyDiv,
#form-register #passwordLoginDiv {
    position: relative;
    margin: 0;
    margin-bottom: 10px;
}

#form-register #passwordDiv::after,
#form-register #passwordVerifyDiv::after {
    transition: all 0.3 linear;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    content: "";
    position: absolute;
    height: 3px;
    
    bottom: 0;
    left: 0;
}

#form-register #passwordDiv::after {
    width: var(--register-bar-password-width);
    background-color: var(--register-bar-password-color);
}

#form-register #passwordVerifyDiv::after {
    width: var(--register-bar-password-verify-width);
    background-color: var(--register-bar-password-verify-color);
}

/*********************/
/* Messages d'erreur */
/*********************/

#login-error {
    font-size: var(--default-font-size);
    color: var(--red) !important;
    margin-top: 3px;
    margin-bottom: 12px;
}

#secure-login-details,
.secure-password-and-bad-password {
    font-size: var(--default-font-size);
    color: var(--red) !important;
    margin: 0;
}

#form-register #secure-password-details,
#form-register #secure-password-verify-details,
#form-register #secure-login-details {
    margin: 0;
    overflow: hidden;
    height: 0px;

    transition: all 0.3s linear;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
}

/******************/
/* Message du bas */
/******************/

#auth-body a,
#register-body a {
    text-decoration: none;
    color: #A45FEE;
    font-weight: 600;
}

#auth-body a:hover,
#register-body a:hover {
    text-decoration: underline;
}

#auth-body .separator,
#register-body .separator {
    border-top: 1px solid var(--background-gray);
    margin: 8% 5% 3% 5%;
}

.switch-to, .switch-to * {
    font-size: var(--small-font-size);
}