@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    overflow: hidden;
}


body{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: #fafafa;
    overflow: hidden;
}

:root{
    --main: #DAA520; 
}





#container{
    width: 140%;
    height: 100vh;

    display: flex;
    flex-direction: row;

    transition: .5s ease-in-out;
}

.div_left, .div_right{
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}








.div_left{
    width: 40%;
    height: 100%;
    gap: 2vh;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.div_left>a{
    width: 60%;

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;

    gap: 1.5vh;

    color: #adadad;
    text-decoration: none;

    transition: .2s ease-in-out;
}

.div_left>a:hover{
    margin-left: -1vh;
}

.div_left>a>img{
    height: 20px;
}

#p_bentornato{
    font-size: 20pt;
    width: 60%;
    font-weight: 600;
    color: #353535;
    text-align: left;
    margin-top: 2vh;
}

form{
    width: 60%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */

    gap: 2vh;
}

input{
    width: 100%;
    padding: 1vh 2vh;
    border: none;
    border-radius: 13px;

    font-size: 14pt;
    border: 2.5px solid #dedede;
    background-color: transparent;
}

input::placeholder{
    color: #a5a5a5;
}

form button{
    width: 100%;
    padding: 1vh 2vh;
    border: none;
    border-radius: 13px;

    font-size: 14pt;
    background-color: var(--main);
    color: white;
    cursor: pointer;
}

.p_error_form{
    color: red;
}

.div_left>p{
    font-size: 13pt;
    color: #353535;
    text-align: left;
    width: 60%;
    margin-top: 1vh;
}

.div_left>p>a{
    color: var(--main);
    text-decoration: none;
    font-weight: bold;
}

p>button{
    border: none;
    background:none;
    font-size: 13pt;
    color: var(--main);
    font-weight: bold;
    cursor: pointer;
}



.div_login_google{
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2vh;
}

.div_divider_login{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 2vh;
    font-size: 12pt;
    color: var(--grigio);
}

.div_divider_login>div{
    display: flex;
    width: 15vh;
    height: 1px;
    background-color: var(--grigio_chiaro);
}




.button_login_google{
    border: 2px solid var(--grigio_chiaro);
    border-radius: 14px;
    font-size: 14pt;
    color: var(--grigio);
    background: none;
    padding: 1vh 0;
    width: 100%;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2vh;
    cursor: pointer;
}

.button_login_google img{
    width: 25px;
}
















.div_right{
    width: 55%;
    overflow: hidden;

    background-color: var(--main);

    border-radius: 20px;
    height: 95vh;
    margin-top: 2.5vh;
}

.div_right>img{
    width: 80%;
    object-fit: cover;
    border-radius: 20px;
}












.divMessage{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-color: #ffffff;
    width: 30%;
    border-radius: 20px;
    padding: 20px;

    z-index: 1500;

    gap: 2vh;

    display: flex;
    flex-direction: column;
}

.divMessage>p{
    font-size: 20pt;
}

.divMessage a{
    width: 100%;
    padding: 5px 0;
    background-color: var(--main);
    text-align: center;
    border-radius: 10px;
    color: #ffff;
    font-size: 15pt;
    text-decoration: none;
}


#blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(205, 205, 205, 0.236);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.75);
}

























@media (max-width: 475px) {
    body{
        margin-top: -3%;
    }

    #container{
        width: 200%;
    }

    .div_right{
        display: none;
    }

    .div_left{
        width: 100%;
    }

    .div_left>a{
        display: flex;
        justify-content: flex-start;
        width: 75%;
    }

    #p_bentornato{
        width: 75%;
    }

    form{
        width: 75%;
    }

    .div_login_google{
        width: 75%;
    }

    .div_divider_login{
        width: 100%;
    }

    .div_left>p{
        width: 75%;
        text-align: center;
    }

    .div_divider_login>div{
        width: 12vh;
    }

}



@media (min-width: 476px) and (max-width: 1023px) {
    #container{
        width: 200%;
    }

    .div_right{
        display: none;
    }

    .div_left{
        width: 100%;
    }

    .div_left>a{
        display: flex;
        justify-content: flex-start;
        width: 40%;
    }

    #p_bentornato{
        width: 40%;
    }

    form{
        width: 40%;
    }

    .div_login_google{
        width: 40%;
    }

    .div_divider_login{
        width: 100%;
    }

    .div_left>p{
        width: 40%;
        text-align: center;
    }

    .div_divider_login>div{
        width: 15vh;
    }
}














/* Stili per le checkbox legali */
.legal-checkboxes {
    font-size: 14px;
    line-height: 1.5;
    margin: 20px 0;
    text-align: left;
}

.checkbox-container {
    display: block;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    cursor: pointer;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--main);
    background-color: #e9ecef;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--main);
    border-color: var(--main);
}

/* Checkmark icon */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 3px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Link styling */
.checkbox-container a {
    color: var(--main);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-container a:hover {
    text-decoration: underline;
    color: var(--main);
}

/* BUTTON STATES - PARTE IMPORTANTE */
#submitButton {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #6c757d;
    border-color: #6c757d;
    transition: all 0.3s ease;
}

#submitButton:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

#submitButton.enabled {
    opacity: 1;
    cursor: pointer;
    background-color: var(--main);
    border-color: var(--main);
}

#submitButton.enabled:hover {
    background-color: var(--main);
    border-color: var(--main);
}

/* Stile generale per il form */
.legal-checkboxes label {
    user-select: none;
    color: #495057;
}

/* .legal-checkboxes input[type="checkbox"]:focus + .checkmark {
    box-shadow: 0 0 0 2px var(--main);
} */





.divMessage{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-color: #ffffff;
    width: 30%;
    border-radius: 20px;
    padding: 20px;

    z-index: 1500;

    gap: 2vh;

    display: flex;
    flex-direction: column;
}

.divMessage p{
    font-size: 20pt;
}

.divMessage a, .divMessage button{
    width: 100%;
    padding: 5px 0;
    text-align: center;
    border-radius: 10px;
    color: #ffff;
    font-size: 15pt;
    text-decoration: none;
    background-color: #4a4a4a;
}