[data-theme = "light"] {
    --login-register-global-wrapper-bc: transparent;
    --login-register-global-wrapper-border-color: rgb(52, 52, 52);
    --login-register-left-part-page-bc: rgba(255, 255, 255, 0.9);
    --aside-back-color: rgb(255, 255, 255);
    --authentication-container-h1-color: rgb(255, 92, 80);
    --error-paragraph-color: rgb(253, 119, 109);
    --info-box-error-paragraph-span-bc: rgb(253, 119, 109);
    --info-box-error-paragraph-span-color: rgb(255, 241, 237);
    --login-register-details-box-input-border-left-color: rgb(32, 32, 32);
    --login-register-details-box-input-focus-border-color: rgb(253, 119, 109);
    --connexion-line-through-elt-box-span-color: rgb(26, 26, 26);
    --forgetPassLink-color: rgb(240, 240, 240);
    --forget-pass-link-back-color: rgb(255, 92, 80);
    --forgetPassLink-hover-back-color: rgb(255, 92, 80);
    --forgetPassLink-hover-color: rgb(240, 240, 240);
    --input-submit-back-color: rgb(255, 255, 255);
    --input-submit-color: rgb(32, 32, 32);
    --input-submit-border-color: rgb(52, 52, 52);
    --input-submit-hover-back-color: rgb(255, 92, 80);
    --input-submit-hover-color: rgb(240, 240, 240);
    --input-submit-hover-border-color: rgb(52, 52, 52);
    --login-register-details-box-input-color: rgb(26, 26, 26);
}

[data-theme = "dark"] {
    --login-register-global-wrapper-bc: transparent;
    --login-register-global-wrapper-border-color: rgb(28, 28, 28);
    --login-register-left-part-page-bc: rgb(125, 125, 125);
    --aside-back-color: rgb(125, 125, 125);

    --authentication-container-h1-color: rgb(40, 40, 40);
    --error-paragraph-color: rgb(32, 32, 32);

    --info-box-error-paragraph-span-bc: rgb(49, 228, 148);
    --info-box-error-paragraph-span-color: rgb(32, 32, 32);

    --login-register-details-box-input-border-left-color: rgb(46, 46, 46);
    --login-register-details-box-input-focus-border-color: rgb(47, 255, 141);
    --login-register-details-box-input-color: rgb(27, 27, 27);

    --connexion-line-through-elt-box-span-color: rgb(28, 28, 28);

    --forgetPassLink-color: rgb(153, 153, 153);
    --forget-pass-link-back-color: rgb(48, 48, 48);
    --forgetPassLink-hover-back-color: rgb(47, 255, 141);
    --forgetPassLink-hover-color: rgb(26, 26, 26);

    --input-submit-back-color: rgb(125, 125, 125);
    --input-submit-color: rgb(36, 36, 36);
    --input-submit-border-color: rgb(28, 28, 28);
    --input-submit-hover-back-color: rgb(47, 255, 141);
    --input-submit-hover-color: rgb(26, 26, 26);
    --input-submit-hover-border-color: rgb(28, 28, 28);
}

main
{
    width: 80%;
}

/*main*/
#login_register_global_wrapper
{
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 520px;
    margin: auto;
    border: 9px solid var(--login-register-global-wrapper-border-color);
    border-radius: 3px;
    background-color: var(--login-register-global-wrapper-bc);
}

.login-register-left-part-page
{
    flex: 0.33;
    background-color: var(--login-register-left-part-page-bc);
}

.authentication_container
{
    padding: 0;
    margin: auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

aside
{
    display: flex;
    flex: 0.67;
    background: url("icons_images/woman_writing_bricks_wall.svg") no-repeat center;
    background-size: cover;
}

aside
{
    background-color: var(--aside-back-color);
}

.info-box
{
    display: flex;
    flex-direction: column;
    width: 95%;
    margin: 0;
}

.error-paragraph
{
    color: var(--error-paragraph-color);
    font-weight: bold;
}

.flash-paragraph
{
    color: rgb(35, 138, 207);
}

.info-box p
{
    display: flex;
    align-items: center;
    margin: 0;
    font-weight: bold;
}

.info-box p span
{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    margin-right: 0.5rem;
    border-radius: 3px;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    font-weight: normal;
}

.info-box .error-paragraph span
{
    background-color: var(--info-box-error-paragraph-span-bc);
    color: var(--info-box-error-paragraph-span-color);
}

.info-box .flash-paragraph span
{
    background-color: rgb(35,138,207);
    color: rgb(255, 241, 237);
}

#forgetPassLink
{
    text-decoration: none;
    color: var(--forgetPassLink-color);
    background-color: var(--forget-pass-link-back-color);
    padding: 0.5rem;
    width: fit-content;
    border-radius: 3px;
    font-weight: bold;
    text-align: center;
    transition: 0.3s ease-out;
}

#forgetPassLink:hover
{
    border-radius: 20px;
    color: var(--forgetPassLink-hover-color);
    background-color: var(--forgetPassLink-hover-back-color);
}

/*Mail non reçu
.info-box p a
{
    display: flex;
    border: 2px solid rgb(35,138,207);
    border-radius: 3px;
    color: rgb(35,138,207);
    text-decoration: none;
    padding: 0.2rem;
    margin-top: 0.5rem;
}

.info-box p a:hover{
    background-color: rgb(35,138,207);
    color: rgb(255,241,237);
}

#no-mail-sent-box
{
    display: flex;
    justify-content: end;
}
*/

.authentication_container h1
{
    display: flex;
    align-items: end;
    flex: 0.2;
    font-size: 4.5rem;
    padding-left: 2rem;
    margin: 0;
    color: var(--authentication-container-h1-color);
}

.authentication_container form
{
    display: flex;
    justify-content: space-between;
    flex: 0.8;
    padding-left: 1rem;
    flex-direction: column;
    margin-top: 0;
    width: 100%;
}

.authentication_container form input
{
    background-color: transparent;
    outline: none;
    border: none;
    font-size: 1rem;
    width: 95%;
}

.login-register-details-box
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0.7;
    width: 100%;
    padding: 1rem 0 0rem 1rem;
}

.login-register-details-box label input
{
    filter:grayscale(1);
    position: relative;
}

.authentication_container form .login-register-details-box input
{
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--login-register-details-box-input-border-left-color);
    transition: 0.4s;
    color: var(--login-register-details-box-input-color);
}

::placeholder {
    color: rgb(54, 54, 54);
    opacity: 1;
}

.authentication_container form .login-register-details-box input:last-child
{
    padding-bottom: 0;
}

.authentication_container form .login-register-details-box input:focus
{
    border-left: 12px solid var(--login-register-details-box-input-focus-border-color);
}

.connexion-line-through-elt-box span {
    color: var(--connexion-line-through-elt-box-span-color);
}

.authentication_container form > input
{
    border: 9px solid var(--input-submit-border-color);
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    width: 70%;
    flex: 0.15;
    margin-right: 3rem;
    padding: 0.5rem;
    font-weight: bold;
    font-size: 1.5rem;
    cursor: pointer;
    align-self: end;
    margin-bottom: -0.1rem;
    text-align: center;
    transition: 0.3s;
    background-color: var(--input-submit-back-color);
    color: var(--input-submit-color);
}

.authentication_container form > input:hover, .authentication_container form > input:focus
{
    
    border: 9px solid rgb(32, 32, 32);
    border-bottom: none;
    background-color: var(--input-submit-hover-back-color);
    color: var(--input-submit-hover-color);
    border-color: var(--input-submit-hover-border-color);
}

.authentication_container form > .register-form-disabled-button
{
    text-decoration: line-through;
    color: rgb(32, 32, 32);
}

.authentication_container form input[type='checkbox']
{
    width: auto;
}

.authentication_container form input[type='checkbox']:focus
{
    outline: 3px solid rgb(136, 122, 112);
    border-radius: 3px;
}


@media screen and (max-width: 1200px) {
    .authentication_container h1
    {
        font-size: 3.5rem;
    }
    
    #forgetPassLink
    {
        font-size: 0.9rem;
    }

    .authentication_container form .login-register-details-box input
    {
        width: fit-content;
        font-size: 0.9rem;
    }
}
@media screen and (max-width: 1000px) {
    .authentication_container h1
    {
        font-size: 3rem;
    }

    .authentication_container form > input
    {
        font-size: 1rem;
        border: 3px solid rgb(32, 32, 32);
        border-bottom: none;
        padding: 0;
        
    }

    .authentication_container form > input:hover, .authentication_container form > input:focus
    {
        border: 3px solid rgb(32, 32, 32);
    }

}
@media screen and (max-width: 850px) {
    [data-theme = "light"] {
        --login-register-global-wrapper-bc: rgb(255, 255, 255);
    }
    
    [data-theme = "dark"] {
        --login-register-global-wrapper-bc: rgb(45, 45, 45);
    }

    main
    {
        width: 95%;
    }

    #login_register_global_wrapper
    {
        flex-direction: column-reverse;
        border: 6px solid rgb(32, 32, 32);
    }

    aside
    {
        flex: 1;
        background: url("icons_images/woman_writing_bricks_wall.svg") no-repeat 55% 13%;
        background-size: 18rem;
    }

    .authentication_container
    {
        justify-content: center;
        align-items: center;
    }

    .authentication_container h1
    {
        text-align: center;
        padding: 0.3rem;
    }

    .login-register-details-box
    {
        align-items: center;
        padding-left: 0;
        padding-right: 0;
    }

    .login-register-details-box label
    {
        width: 80%;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .authentication_container form > input
    {
        border: 3px solid rgb(32, 32, 32);
        width: 70%;
        padding: 0.5rem;
        font-size: 1rem;
        margin-bottom: 0;
        margin: auto;
        border-radius: 3px;
    }

    .authentication_container form > input:hover, .authentication_container form > input:focus
    {
        border: 3px solid rgb(32, 32, 32);
    }

    .connexion-line-through-elt-box
    {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.9rem;
        color: rgb(252,232,216);
        border-radius: 3px;
        margin-bottom: 0.5rem;
    }

    .connexion-line-through-elt-box input
    {
        display: none;
        width: 0;
        height: 0;
    }

    .connexion-line-through-elt-box span
    {
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: line-through;
        text-align: center;
        width: fit-content;
        padding: 0.5rem;
        background-color: rgba(42, 42, 42, 0.7);
        border-radius: 3px;
    }

    .connexion-line-through-elt-box span:hover
    {
        background-color: rgb(47, 255, 141);
        color: rgb(32, 32, 32);
        font-weight: 700;
    }

    .connexion-line-through-elt-box input:checked ~ span
    {
        text-decoration: none;
        background-color: rgb(47, 255, 141);
        color: rgb(32, 32, 32);
        font-weight: 700;
        border-radius: 3px;
    }

    .connexion-line-through-elt-box input:checked ~ span:hover
    {
        /*background-color: rgb(82, 169, 148);*/
        background-color: rgba(47, 255, 141);
        color: rgb(32, 32, 32);
    }

    .connexion-line-through-elt-box input:checked ~ span::after
    {
        display: flex;
        content: "\2713";
        margin-left: 0.5rem;
        font-weight: 700;
        font-size: 0.9rem;
    }

    .connexion-line-through-elt-box span:hover
    {
        cursor: pointer;
    }

    #forgetPassLink
    {
        margin-bottom: 0.5rem;
    }
}

/*
@media (prefers-color-scheme: dark) {
    #login_register_global_wrapper
    {
        background-color: rgba(158, 153, 149);
    }
    .error-paragraph
    {
        color: rgb(252, 232, 216);
    }
    .info-box .error-paragraph span
    {
        background-color: rgb(49, 228, 148);
        color: rgb(32, 32, 32);
    }
    .authentication_container form > input
    {
        border-bottom: none;
    }
}
*/