/*-----------------------------------------
    CONNEXION
------------------------------------------*/
body{
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
}
main{
    display: flex;
    width: 100%;
    height: 80%;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.login-form {
    display: flex;
    min-width: 1000px;
    min-height: 550px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-form .info-bloc {
    position: relative;
    width: 50%;
    background: linear-gradient(to top, #FF6F61 25%, #0F172A 75%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
}

.login-form .info-bloc .scrolling-text-container {
    position: relative;
    height: 50px;
    overflow: hidden;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.login-form .info-bloc .scrolling-text-container .scrolling-text {
    display: flex;
    flex-direction: column;
    height: auto;
    animation: scrollText 9s cubic-bezier(.12,.82,.49,1) infinite;
}
@keyframes scrollText {
    0% {
        transform: translateY(-0px);
    }
    14.2857% {
        transform: translateY(-55px);
    }
    28.5714% {
        transform: translateY(-110px);
    }
    42.8571% {
        transform: translateY(-165px);
    }
    57.1429% {
        transform: translateY(-220px);
    }
    71.4286% {
        transform: translateY(-275px);
    }
    85.7143% {
        transform: translateY(-330px);
    }
    100% {
        transform: translateY(-385px);
    }
}

.login-form .info-bloc .scrolling-text-container .scrolling-text span {
    height: 55px;
    display: block;
    text-align: center;
}

.login-form .form-bloc {
    width: 50%;
    padding: 40px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-bloc .head {
    text-align: center;
    margin-bottom: 30px;
}

.form-bloc .head h1 {
    color: #1B2559;
}

.form-bloc .head p {
    font-size: 16px;
    color: #888;
}

.form-bloc .head p a {
    color: #FF6F61;
    text-decoration: none;
}

.form-bloc form{
    width: 100%;
}

.form-bloc form .inputForm {
    margin-bottom: 20px;
}

.form-bloc form .inputForm label {
    font-size: 14px;
    color: #1b2559;
    margin-bottom: 8px;
    display: block;
}

.form-bloc form .inputForm .input {
    display: flex;
    align-items: center;
    background: #F7F7F9;
    border: 2px solid #E5E5EF;
    border-radius: 8px;
    padding: 10px;
}

.form-bloc form .inputForm .input input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    color: #1b2559;
    width: 100%;
}

.form-bloc form .inputForm .input input::placeholder {
    color: #aaa;
}
.inputForm .input.emptyShield {
    border: 2px solid #ff6f61 !important;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
}

.error-message {
    color: #ff6f61;
    font-size: 14px;
    margin-top: 5px;
    display: none; /* Caché par défaut */
}

.form-bloc .submit-button{
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}
.form-bloc button {
    background-color: #FF6F61;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.form-bloc button:hover {
    background-color: #e65a50;
}

.form-bloc .forget-password{
    margin-top: 30px;
    color: #1b2559;
    transition: 0.4s;

}

.form-bloc .forget-password:hover{
    color: #e65a50;
}

/*-----------------------VERSION MOBILE-----------------------*/
@media screen and (max-width: 768px) {
    main{
        display: flex;
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
    }
    .login-form {
        width: 100%;
        height: 100%;
        min-width: unset;
        min-height: unset;
        border-radius: 0;
    }
    .login-form .info-bloc{
        display: none;
    }
    .login-form .form-bloc{
        width: 100%;
        height: 100%;
    }
}