/* Stili di base - Tema Scuro ServiceShield OGS */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #0b1c2c 0%, #102a43 100%);
  font-family: "Segoe UI", Arial, sans-serif;
}

.login-form {
  background: linear-gradient(135deg, #173d5f 0%, #102a43 100%);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  width: 320px;
  text-align: center;
  border: 1px solid rgba(28, 61, 90, 0.5);
}

.login-form .text {
  color: #ffffff;
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

.login-form .field {
  margin-bottom: 18px;
  text-align: left;
}

.login-form .field label {
  display: block;
  color: #a0a0a0;
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 500;
}

.login-form .field input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #1c3d5a;
  border-radius: 8px;
  background-color: #0b1c2c;
  color: #ffffff;
  font-size: 15px;
  transition: all 0.25s ease;
}

.login-form .field input:focus {
  outline: none;
  border-color: #bad509;
  box-shadow: 0 0 0 4px rgba(186, 213, 9, 0.15);
}

.login-form .field input::placeholder {
  color: #6a7a8a;
}

.login-form button {
  width: 100%;
  padding: 12px;
  border: 2px solid #bad509;
  border-radius: 8px;
  background: linear-gradient(135deg, #102a43 0%, #173d5f 100%);
  color: #bad509;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 10px;
}

.login-form button:hover {
  background: linear-gradient(135deg, #173d5f 0%, #1c3d5a 100%);
  border-color: #d4f008;
  color: #d4f008;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(186, 213, 9, 0.25);
}

.login-form button:active {
  transform: translateY(0);
}

.login-form .textErrato {
  color: #ff6b6b;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 14px;
  padding: 10px;
  background-color: rgba(255, 82, 82, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(255, 82, 82, 0.3);
}

/* ===== MOBILE: Your exact colors, screenshot layout ===== */
@media (max-width: 768px) {
  body {
    align-items: flex-start;
    padding: 10px;
    height: 100vh;
    background: linear-gradient(
      135deg,
      #173d5f 0%,
      #102a43 100%
    ); /*
| Elemento | Colore |
|----------|--------|
| Sfondo | #0b1c2c |
| Container | #173d5f |
| Header | #102a43 |
| Accento | #bad509 |
| Errore | #ff6b6b |
*/
  }

  .login-wrapper {
    width: 100%;
    height: 90%;
    display: flex;
    flex-direction: column;
  }

  .login-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #102a43;
    border-bottom: 1px solid rgba(28, 61, 90, 0.5);
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
  }

  .login-header .back-arrow {
    font-size: 1.4rem;
    cursor: pointer;
    color: #bad509;
  }

  .login-form {
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 24px 16px 32px;
    border-radius: 16px 16px 0 0;
    border: none;
    box-shadow: none;
    background: none;
    text-align: center;
  }

  .login-form .text {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .login-form .field {
    margin-bottom: 14px;
    text-align: left;
  }

  .login-form .field input {
    width: 100%;
    font-size: 1rem;
  }

  /* IMPORTANT: keep DESKTOP button style, just make them bigger for touch */
  .login-form button {
    width: 100%;
    padding: 14px; /* a bit taller on mobile */
    font-size: 1rem; /* slightly larger text */
    border-radius: 10px; /* small tweak, same feel */
    /* background, border, colors stay the same as desktop */
    /* background: linear-gradient(135deg, #102a43 0%, #173d5f 100%); */
    /* border: 2px solid #bad509; */
    /* color: #bad509; */
  }

  .login-header {
    background: none;
  }
}

/* Hide mobile header on desktop */
@media (min-width: 769px) {
  .login-header {
    display: none;
  }
}
