body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
}

/* Sfondo animato */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, #ff9a9e, #7666b8, #b6aae4, #ff9a9e);
    background-size: 600% 600%;
    animation: gradientAnimation 16s ease infinite;
    z-index: 0;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Stile comune per box login/registrazione */
.box-form {
    width: 600px;
    padding: 100px;
    background: radial-gradient(ellipse 150% 100% at bottom center, #1b2735 0%, #090a0f 100%);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.box-form h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
}

.box-form label {
    display: block;
    margin-bottom: 5px;
}

.box-form input[type="text"],
.box-form input[type="email"],
.box-form input[type="password"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.box-form input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.box-form input[type="submit"]:hover {
    background-color: #45a049;
}

.box-form p {
    text-align: center;
}

.box-form p a {
    color: #0051ff;
    text-decoration: none;
    opacity: 0.6; /* effetto "nebbia" */
}
 
   .form-row {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 10px;
    }

    .form-group {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .form-group label {
      font-weight: bold;
      margin-bottom: 5px;
    }

    .form-group input {
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
    }

.form-row {
  display: flex;
  gap: 40px;
  margin-bottom: 10px;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.form-row input[type="submit"] {
    flex: 1;
}
/* BOTTONI */
 .button-group {
      display: flex;
      justify-content: space-between;
      margin-top: 20px;
    }

    .button-group button {
      padding: 10px 15px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      width: 48%;
    }
.login-btn {
      background-color: #007bff;
      color: white;
    }

.login-btn:hover {
      background-color: #0056b3;
    }

    .register-btn {
    background-color: #28a745; /* verde moderno */
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.register-btn:hover {
    background-color: #218838; /* più scuro su hover */
}

.reset-btn {
    background-color: #dc3545; /* rosso elegante */
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.reset-btn:hover {
    background-color: #c82333; /* rosso più scuro */
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px; /* fissa un'altezza coerente */
}

.password-field input {
    flex: 1;
    padding-right: 40px;
    height: 100%;
    box-sizing: border-box;
    font-size: 16px; /* assicurati font coerente */
}

  .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(calc(-50% - 2px)); /* aggiustamento verticale */
    cursor: pointer;
    user-select: none;
    font-size: 20px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
  }


.toggle-password:hover {
    opacity: 1;
}

   html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: radial-gradient(ellipse 150% 100% at bottom center, #1b2735 0%, #090a0f 100%);
  }

  .star {
    position: fixed;
    background: white;
    border-radius: 50%;
    animation: move 15s linear infinite;
  }

  /* Diverse dimensioni */
  .type-1 {
    width: 1px;
    height: 1px;
  }
  .type-2 {
    width: 2px;
    height: 2px;
  }
  .type-3 {
    width: 3px;
    height: 3px;
  }

  @keyframes move {
    0% { transform: translateY(100vh); }
    100% { transform: translateY(-20vh); }
  }