* {
  font-family: "Segoe UI";
  font-size: 1.2rem;
}

.center-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin-top: -16rem; /* Sposta il contenitore di 2rem verso l'alto */
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 10vh; /* Imposta l'altezza della tua div come preferisci */
}

#loginBtn {
  /* Aggiungi la classe 'centered-btn' al bottone */
  margin: auto; /* Questo imposterà il margine automaticamente per centrare il bottone */
}

.form-container {
  width: 400px;
  background: linear-gradient(#212121, #212121) padding-box,
    linear-gradient(145deg, transparent 35%, #0059a4, #40c9ff) border-box;
  border: 1px solid transparent;
  padding: 32px 24px;
  font-size: 14px;
  font-family: inherit;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  border-radius: 16px;
  background-size: 200% 100%;
  animation: gradient 5s ease infinite;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7); /* Aggiunto box-shadow nero */
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.form-container button:active {
  scale: 0.95;
}

.form-container .form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-container .form-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-container .form-group label {
  display: block;
  margin-bottom: 5px;
  color: #fbfafa8c;
  font-weight: 600;
  font-size: 12px;
}

.form-container .form-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  background-color: transparent;
  border: 1px solid #0059a4;
}

.form-container .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  resize: none;
  color: #fff;
  height: 96px;
  border: 1px solid #0059a4;
  background-color: transparent;
  font-family: inherit;
}

.form-container .form-group input::placeholder {
  opacity: 0.5;
}

.form-container .form-group input:focus {
  outline: none;
  border-color: #0059a4;
}

.form-container .form-group textarea:focus {
  outline: none;
  border-color: #0059a4;
}

.form-container .form-submit-btn {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  align-self: flex-start;
  font-family: inherit;
  color: #717171;
  font-weight: 600;
  width: 40%;
  background: #313131;
  border: 1px solid #0059a4;
  padding: 12px 16px;
  font-size: inherit;
  gap: 8px;
  margin-top: 8px;
  cursor: pointer;
  border-radius: 6px;
}

.form-container .form-submit-btn:hover {
  background-color: #fff;
  border-color: #fff;
}

button {
  font-size: 1.6rem;
  width: 10rem;
  justify-self: center;
}

button.wrong-credentials {
  animation: pulse 0.5s ease-in-out infinite;
  background-color: #ff0000;
  color: #fff;
}

/* pulse animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
