* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  body {
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
  }
  
  h1 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
  }
  
  form {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 400px;
  }
  
  .error {
    background-color: #ffe6e6;
    border-left: 4px solid #ff5252;
    color: #d32f2f;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
  }
  
  label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
  }
  
  input[type="text"],
  input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
  }
  
  input[type="text"]:focus,
  input[type="password"]:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
  }
  
  button[type="submit"] {
    background-color: #4a90e2;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0;
    width: 100%;
    transition: background-color 0.3s;
  }
  
  button[type="submit"]:hover {
    background-color: #3a7bc8;
  }
  
  /* Stili responsive per dispositivi mobili */
  @media (max-width: 480px) {
    form {
      padding: 20px;
    }
    
    input[type="text"],
    input[type="password"] {
      padding: 10px;
      font-size: 14px;
    }
    
    button[type="submit"] {
      padding: 10px 0;
    }
  }