body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-image: url('../img/backgroundimage.jpg'); /* Replace with the actual path to your image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  display: flex;
  flex-direction: column; /* Disposizione verticale */
  justify-content: center; /* Centra verticalmente */
  align-items: center; /* Centra orizzontalmente */
}

/* Contenitore principale */
.container {
  max-width: 400px;
  width: 100%;
  padding: 30px;
  background-color: white;
  border-radius: 15px; /* Rounded corners */
  border: 7px solid #f1f1f1;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 10px 10px rgba(0, 0, 0, 0.425); /* Stronger shadow effect */
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s ease;
  z-index: 1; /* Ensure it's above other elements */
  position: relative; /* Ensure it stands out on top */
}

/* Hover effect for more lift */
.container:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 15px 15px rgba(0, 0, 0, 0.25); /* Increased shadow depth on hover */
}

h1 {
  color: #333;
  font-size: 24px;
  margin-bottom: 20px;
}

/* Form */
form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 5px;
  color: #333;
}

input.testo {
  width: 80%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
  text-align: center;
  transition: border-color 0.3s;
}

input.testo:focus {
  border-color: #007bff; /* Cambia il colore del bordo in blu al focus */
  outline: none;
}

input.submit {
  width: 60%;
  padding: 10px;
  margin-top: 20px;
  border-radius: 5px;
  border: none;
  background-color: #007bff;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

input.submit:hover {
  background-color: #0056b3; /* Colore al passaggio del mouse */
}
/* Toggle password */
.toggle-password {
  margin-top: -10px;
  margin-bottom: 15px;
  cursor: pointer;
  color: #007bff;
  font-size: 12px;
}
.toggle-password:hover {
  color: darkblue;
}


/* Checkbox Ricorda */
label[for="remember"] {
  font-size: 14px;
  margin-top: 10px;
  color: #666;
}

input[type="checkbox"] {
  margin-right: 10px;
}

.avviso {
  color: red;
  font-size: 12px;
}

/* Logo */
img {
  max-width: 400px;
  margin-bottom: 20px;
}

.language-selector {
  width: 200px;
  margin-top: -80px; /* Distanza sopra */
  margin-bottom: 30px; /* Distanza sopra */
  text-align: center; /* Centra il contenuto */
  background-color: rgb(255, 255, 255);
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 14px;
  display: inline-block; /* Comportamento compatto */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}
.language-selector select {
  border: none; /* Nessun bordo per il menu a tendina */
  background: none; /* Sfondo trasparente */
  font-size: 14px; /* Dimensione del testo */
  cursor: pointer; /* Puntatore a mano */
  padding:5px;
}

.language-selector select:focus {
  outline: none; /* Nessun bordo evidenziato al focus */
  
}

.lang-button {
  border: none;
  background-color: transparent;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.lang-button i {
  font-size: 20px;
}

.lang-button.active {
  color: #007bff;
  font-weight: bold;
}

.lang-button:hover {
  color: #0056b3;
}