:root {
    --primary: #4978f0;
    --background: #F5F5F7;
    --backgroundhover: #1c1c1c;
    --texthover: #F5F5F7;
    --backgroundBTN: #ffffff;
}

body {
    font-family: "Montserrat", sans-serif; 
    font-size: 1rem;
    background: var(--background);
    overflow-x: hidden;
}

/* Logo */
.logo {
    height: 10vh;
    position: absolute;
    top: 2%;
    left: 2%;
}



/*------------------ CONTAINER ------------------*/

.container {
    display: flex; /* I due box saranno uno accanto all'altro */
    justify-content: center; /* Centra i box orizzontalmente */
    align-items: stretch; /* Fa in modo che abbiano la stessa altezza */
    gap: 15rem; /* Distanza tra i due elementi */
    position: absolute;
    top: 20vh;
    left: 5%;
    /*transform: translateX(-50%);*/
    /*width: 60vw;*/ /* Adatta la larghezza totale */
}

/*------------------ CONTAINER ------------------*/



.Image, .Authentication {
    /*flex: 1;*/ /* Entrambi i box cresceranno uniformemente */
    height: auto; /* Imposta l'altezza in base al contenitore */
    display: flex;
    flex-direction: column;
    justify-content: center;
}



/*------------------ IMAGE ------------------*/

.Image {
    width: 60vw;
    /*left: 2%;*/
    border-radius: 1rem;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    background: var(--backgroundBTN);
}


.Imager {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}


/*------------------ IMAGE ------------------*/





/*------------------ AUTHENTICATION ------------------*/

/* Authentication Container */
.Authentication {
    width: 20vw;
    left: 82%;
    transform: translateX(-50%);
    border-radius: 1rem;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    background: var(--backgroundBTN);

}
/* Titolo centrato */
.Authentication h1 {
    text-align: center;
    font-size: 1.5rem;
}

/* Log Section */
.Log {
    width: 100%;
}

/* Campi input */
.username {
    width: 96%;
    height: 3rem;
    font-size: 1rem;
    display: block;
    margin-top: 2rem;
}

.password {
    width: 100%;
    height: 3rem;
    font-size: 1rem;
    margin-top: 1.5rem;
    display: block;
}

.input-container {
    display: flex;
    align-items: center;
    position: relative;
}
input[type="password"], input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 10px;
    font-size: 1.2rem;
    color: #666;
}



/*-------- LOGIN & REGISTRATI-------------*/

.button-container {
    display: flex;
    justify-content: center; /* Centra i bottoni orizzontalmente */
    align-items: center; /* Centra verticalmente */
    gap: 2rem; /* Distanza tra i bottoni */
    margin-top: 10%; /* Spazio dal top */
}

.Login, .Registrati {
    width: 40%; /* Ridotto per avere più spazio */
    height: 5vh;
    font-size: 1rem;
    background: var(--backgroundBTN);
    border: 1px solid #ccc;
    border-radius: 15px;
    cursor: pointer;
    text-align: center; /* Centra il testo nel bottone */
}

.Login:hover, .Registrati:hover {
    background: var(--backgroundhover);
    color: var(--texthover);
}

/*-------- LOGIN & REGISTRATI-------------*/




/* Divisore */
.Divisore {
    width: 80%;
    height: 1px;
    background-color: black;
    margin: 2rem auto;
}

/* Auth Buttons Container */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 4vh;
}

/* Bottoni di autenticazione */
.auth-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 80%;
    max-width: 300px;
    height: 3rem;
    border: 0.07rem solid var(--background);
    border-radius: 1rem;
    font-size: 1rem;
    background: var(--backgroundBTN);
    cursor: pointer;
    gap: 0.7rem;
    padding-left: 1rem;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.auth-button:hover {
    background: var(--backgroundhover);
    color: var(--texthover);
}

/* Icone nei bottoni */
.auth-button img {
    height: 1.8rem;
    width: auto;
}

/* Cambio immagine al passaggio del mouse */
.auth-button:hover .logo_apple {
    content: url("Assets/Apple_Bianco.png");
}

/*------------------ AUTHENTICATION ------------------*/




/*------------------ TOAST NOTIFICATION ------------------*/

/* Toast Notification */
/* Stile per la Toast Notification */
.custom-toast {
    position: absolute;
    border-radius: 12px !important;
    font-size: 16px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 250px;
    width: 320px;
    max-width: 420px;
    padding: 14px 18px !important;
    color: white;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3) !important;
    opacity: 0.9; /* Opacità */
}

/* Barra di progresso animata */
.custom-toast::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1%;
    width: 98%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.6);
    animation: progress 3s linear forwards;
}

/* Animazione per la barra di progresso */
@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}




/*------------------ TOAST NOTIFICATION ------------------*/