.login{
    background: linear-gradient(135deg, var(--bleu-fonce) 0%, #1a3a6a 50%, var(--bleu-clair) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
    height: auto;
    width: 100vw;
    overflow-x: hidden;
}

.login .identity{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45%;
    width: 100%;
    flex-direction: column;
    animation: slideAndFadeFromBotToTop .6s ease-out forwards;
    margin-bottom: 30px;
}

.login .identity .imgPlanete{
    width: 200px;
    height: 200px;
    border-radius: 100%;
    box-shadow: 0 0 100px rgb(from var(--rouge) r g b / 60%);
    display: block;
    position: relative;
    background-image: url("./../img/logo.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;

    animation: flottement 8s linear .5s infinite;
}

.login .identity .imgPlanete div{
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 100%;
    background-color: white;
    box-shadow: 0 0 1px #ffffff50, 0 0 3px #ffffff80, 0 0 5px #ffffff;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.login .identity .title{
    color: white;
    font-size: 22px; /* Texte initial plus petit */
    margin-top: 15px;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center; /* Assure le centrage vertical dans le bloc de hauteur fixe */
    position: relative;
    white-space: nowrap;
    opacity: 1; /* Le conteneur est visible, les spans gèrent leur propre animation */
    transition: font-size 1s cubic-bezier(0.4, 0, 0.2, 1);
    height: 60px; /* Hauteur fixe pour éviter le saut de layout lors de l'agrandissement */
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(150px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-150px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login .identity .title.contracting {
    font-size: 40px; /* S'agrandit lors de la rétractation vers LUFFO */
}

.login .identity .title span {
    display: inline-block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease, width 0.8s ease, margin 0.8s ease;
    width: auto;
}

.login .identity .title span.slide-from-left {
    animation: slideInFromLeft .8s ease-out 0.5s both;
}

.login .identity .title span.slide-from-right {
    animation: slideInFromRight .8s ease-out 0.5s both;
}

.login .identity .title span.explode-letter.exploding {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) rotate(var(--tr)) scale(0);
    pointer-events: none;
    width: 0 !important;
    margin: 0 !important;
}

.login .identity .title span.keep-letter {
    transition: transform 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.login .identity .title.contracting span.explode-letter {
    width: 0;
    margin: 0;
    overflow: hidden;
}

.login .identity .title.contracting span.keep-letter {
    /* Les lettres se rapprochent car les autres spans font 0 de large */
}

.login .loginsForm{
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    animation: slideAndFadeFromBotToTop .6s ease-out .2s forwards;
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.login .loginsForm .loginForm{
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 1;
    animation: none;
}

.login .loginsForm .loginForm .subtitle{
    color: white;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--bleu-clair);
    padding-bottom: 8px;
    margin-bottom: 5px;
    width: fit-content;
}

.login .loginsForm .loginForm .input-icon{
    position: relative;
    width: 100%;
}

.login .loginsForm .loginForm .input-icon input{
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
}

.login .loginsForm .loginForm .input-icon input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--bleu-clair);
    box-shadow: 0 0 10px rgba(61, 194, 226, 0.3);
}

.login .loginsForm .loginForm .input-icon img:not(.toggle-password){
    position: absolute;
    left: 15px;
    top: 50%;
    width: 20px;
    transform: translateY(-50%);
    opacity: 0.7;
}

.login .loginsForm .loginForm .input-icon .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    width: 20px;
    transform: translateY(-50%);
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.login .loginsForm .loginForm .input-icon .toggle-password:hover {
    opacity: 1;
}

.login .loginsForm .loginForm .input-group{
    display: flex;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap;
    gap: 5px;
}

.login .loginsForm .loginForm .input-group .remember {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 1;
    min-width: 0;
}

.login .loginsForm .loginForm .input-group .remember:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.login .loginsForm .loginForm .input-group .remember input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin: 0;
}

.login .loginsForm .loginForm .input-group .remember input[type="checkbox"]:checked {
    background: var(--bleu-clair);
    border-color: var(--bleu-clair);
    box-shadow: 0 0 10px rgba(61, 194, 226, 0.4);
}

.login .loginsForm .loginForm .input-group .remember input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.login .loginsForm .loginForm .input-group .remember input[type="checkbox"]:hover {
    border-color: var(--bleu-clair);
    background: rgba(255, 255, 255, 0.1);
}

.login .loginsForm .loginForm .input-group .remember label {
    cursor: pointer;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
}

.login .loginsForm .loginForm .input-group .reset-password-button {
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login .loginsForm .loginForm .input-group .reset-password-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.login .loginsForm .loginForm button{
    width: 100%;
    padding: 14px !important;
    background: var(--rouge);
    color: white;
    border: none !important;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(237, 21, 26, 0.3);
    outline: none;
    margin: auto;
}

.login .loginsForm .loginForm button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 21, 26, 0.4);
    filter: brightness(1.1);
}

.login .loginsForm .socialForm{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 1;
    animation: none;
}

.login .loginsForm .socialForm .subtitle{
    color: white;
    font-size: 1rem;
    opacity: 0.8;
}

.login .loginsForm .socialForm .btn-group{
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.login .loginsForm .socialForm .btn-group button{
    flex: 1;
    font-size: 0.8rem;
    padding: 10px;
    border-radius: 10px;
    outline: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.login .loginsForm .socialForm .btn-group button::after{
    content: "";
    background-image: url("/assets/img/pictos/google.png");
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.login .loginsForm .socialForm .btn-group button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.login .loginsForm .socialForm .btn-group button.lk-btn{
    background-color: #0b65c2;
    box-shadow: 0 4px 10px rgba(11, 101, 194, 0.3);
}

.login .loginsForm .socialForm .btn-group button.fb-btn{
    background-color: #0865fe;
    box-shadow: 0 4px 10px rgba(8, 101, 254, 0.3);
}

.login .loginsForm .socialForm .btn-group button.gg-btn{
    background-color: #c84847;
    box-shadow: 0 4px 10px rgba(200, 72, 71, 0.3);
}

.login .loginsForm .signupForm{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    padding-top: 30px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
    animation: none;
    gap: 15px;
}

.login .loginsForm .signupForm .subtitle{
    color: white;
    font-size: 1rem;
    opacity: 0.8;
}

.login .loginsForm .signupForm a
{
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login .loginsForm .signupForm a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.login .loginForm .error_text{
    font-size: 0.9rem;
    color: white;
    background-color: var(--rouge);
    padding: 10px 15px;
    border-radius: 10px;
    display: none;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 4px 10px rgba(237, 21, 26, 0.2);
}