html,
body {
    height: 100%;
    margin: 0; /* Rimuove eventuali margini di default */
    color: #212529;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.bg-img {
    /* Impostiamo l'immagine di sfondo per coprire tutta la finestra */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%; /* Impostiamo l'altezza al 100% della finestra */
    display: flex;
    justify-content: center; /* Centra orizzontalmente */
    align-items: center; /* Centra verticalmente */
    position: relative;
}

.bg-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Modifica l'opacità qui */
    pointer-events: none; /* Rende l'overlay invisibile ai click */
}

#login-container {
    display: flex;
    z-index: 1;
    flex-direction: column; /* Impostiamo il layout in colonna */
    align-items: center; /* Allineiamo gli elementi orizzontalmente */
    justify-content: center; /* Allineiamo gli elementi verticalmente */
    text-align: center;
    padding: 20px;
    max-width: 330px; /* Limitiamo la larghezza del contenitore */
    width: 100%;
}

.input_signin {
    position: relative;
    border: 1px solid lightgrey;
    border-style: groove;
    border-radius: 3px;
    padding: 20px;
    width: 280px;
    height: 32px;
    font-size: 15px;
    z-index: 0;
}

.login
{
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
    width: 50%;
}

.login:hover
{
    border: 1px solid #0063cc;
}

.shadow
{
    background-color: rgb(255, 255, 255, 0.6);
    box-shadow:  0px 0px 14px 6px rgba(0,0,0,0.7);
    width: 600px;
    height: 360px;
    border-radius: 10px;
}

.shadow:hover
{
    box-shadow:  0px 0px 17px 8px rgba(0,0,0,0.7);
}

.back-img
{
    bottom: 50px;
    width: 420px;
    height: 240px;
}

.input_signin:focus {
    border: 1px solid lightgrey;
    outline-style: solid;
    outline-color: #bbdbf7;
    outline-offset: 0px;
    outline-width: 4px;
    z-index: 1;
}

.label_signin {
    display: none;
}

.button_signin {
    width: 292px;
    height: 50px;
    font-size: 18px;
    font-family: "Arial";
    margin: auto;
    border: 1px solid #007bff;
    border-style: groove;
    border-radius: 5px;
    padding: 5px;
    background-color: #007bff;
    color: white;
    box-sizing: border-box;
    cursor: pointer;
}

.button_signin:hover {
    background-color: #0063cc;
}

.form-control {
    padding: 20px;
    margin-right: 5px;
    transform: scale(1.5);
    border-width: 0;
    border-radius: 0;
}

/*  ----------- Login Form -------------*/
/* Full-width input fields */
input[type=text], input[type=password] {
    width: 60%;
    padding: 20px;
    margin: 8px 0;
    display: inline-block;
    box-sizing: border-box;
}
    
/* Center the image and position the close button */
.imgcontainer {
    text-align: center;
    margin: 24px 0 12px 0;
    position: relative;
}

.input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px; /* Spazio tra le righe */
}

.container .input-signin-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.icon
{
    padding: 9px;
    background: #007bff;
    color: white;
    text-align: center;
    border-radius: 3px;
    margin-right: 0px; /* Spazio tra icona e input */
    display: inline-block;
}
    
.container {
    padding: 8px;
}
    
span.inputPassword {
    float: right;
    padding-top: 16px;
}
    
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}
    
/* Modal Content/Box */
.modal-content {
    background-color: rgb(255, 255, 255, 0.9);
    margin: 2% auto auto auto; /* 5% from the top, 5% from the bottom and centered */
    border: 1px solid #888;
    width: 60%; /* Could be more or less, depending on screen size */
}
    
/* The Close Button (x) */
.close {
    position: absolute;
    right: 25px;
    top: 0;
    color: #000;
    font-size: 35px;
    font-weight: bold;
}
    
.close:hover,
.close:focus {
    color: red;
    cursor: pointer;
}
    
/* Add Zoom Animation */
    .animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s
}
    
@-webkit-keyframes animatezoom {
    from {-webkit-transform: scale(0)} 
    to {-webkit-transform: scale(1)}
}
                
@keyframes animatezoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}
    
/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
    span.inputPassword {
        display: block;
        float: none;
    }
}

/* ---------- snackbar ------------ */
/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: rgb(0, 0, 0, 0.5); /* Black background color */
    color: #ff0000; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 4px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    bottom: 30px; /* 30px from the bottom */
    display: flex;
    align-items: center;
    justify-content: center;
}
  
/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
    visibility: visible; /* Show the snackbar */
    /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
    However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 4.5s;
    animation: fadein 0.5s, fadeout 0.5s 4.5s;
}
  
/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}
  
@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}
  
@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}
  
@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

/* ---------- Media Query ------------ */
@media (max-width: 1170px)
{
    .modal-content{
        width: 700px;
    }
}