:root {
  --azzurro: #1E8449;
  --azzurro-scuro: #145A32;
  --bianco: #ffffff;
  --testo-scuro: #1a1a1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bianco);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER LOGHI */
.logo-header {
  width: 100%;
  background-color: var(--bianco);
  padding: 35px 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.logo-img {
  height: 70px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

/* SEZIONE AZZURRA */
.blue-section {
  flex: 1;
  width: 100%;
  background-color: var(--azzurro);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.screen.active {
  display: flex;
}

/* TITOLO SOPRA LA BOX */
.login-title {
  color: var(--bianco);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 30px;
  max-width: 600px;
}

/* BOX DI LOGIN */
.login-box {
  background-color: var(--bianco);
  border-radius: 16px;
  padding: 40px 45px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.field label {
  color: var(--azzurro-scuro);
  font-size: 14px;
  font-weight: 500;
}

/* GRUPPO DI SCELTA CESTA DI NATALE */
.choice-group {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.choice-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choice-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 16px 10px;
  border: 2px solid #d6e8dc;
  border-radius: 8px;
  color: var(--azzurro-scuro);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.choice-icon {
  width: 40px;
  height: 40px;
  color: var(--azzurro-scuro);
  transition: color 0.2s ease;
}

.choice-group input[type="radio"]:checked + .choice-card .choice-icon {
  color: var(--bianco);
}

.choice-card:hover {
  border-color: var(--azzurro);
}

.choice-group input[type="radio"]:checked + .choice-card {
  background-color: var(--azzurro);
  border-color: var(--azzurro);
  color: var(--bianco);
}

.choice-group input[type="radio"]:focus-visible + .choice-card {
  outline: 2px solid var(--azzurro-scuro);
  outline-offset: 2px;
}

.field input {
  font-family: 'Poppins', sans-serif;
  border: none;
  border-bottom: 2px solid #d6e8dc;
  padding: 8px 4px;
  font-size: 15px;
  color: var(--testo-scuro);
  background: transparent;
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:focus {
  border-bottom-color: var(--azzurro);
}

.field input::placeholder {
  color: #b3b3b3;
  font-weight: 300;
}

.btn-accedi {
  margin-top: 10px;
  font-family: 'Poppins', sans-serif;
  background-color: var(--azzurro);
  color: var(--bianco);
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-accedi:hover {
  background-color: var(--azzurro-scuro);
}

.btn-accedi:active {
  transform: scale(0.98);
}

/* TESTO PRIVACY SOTTO LA BOX */
.privacy-text {
  color: var(--bianco);
  font-size: 12px;
  font-weight: 300;
  max-width: 400px;
  margin-top: 24px;
  opacity: 0.9;
}

/* SCHERMATA SESSIONE SCADUTA */
.session-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--bianco);
  max-width: 480px;
}

.session-title {
  font-size: 34px;
  font-weight: 700;
}

.session-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  opacity: 0.95;
}

.loader {
  margin-top: 20px;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--bianco);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 500px) {
  .login-box {
    padding: 30px 25px;
  }
  .login-title {
    font-size: 21px;
  }
  .logo-header {
    gap: 10px;
    padding: 20px 4%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .logo-img {
    height: 26px;
    max-width: 70px;
  }
}