:root {
  --blu: #153f6d;
  --blu-scuro: #0b2948;
  --rosso: #b32025;
  --arancione: #ef8617;
  --testo: #17233c;
  --grigio: #667085;
  --bordo: #d7e0ea;
  --bianco: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  font-family:
    "Inter Tight",
    Arial,
    sans-serif;
  color: var(--testo);
  background:
    radial-gradient(
      circle at top right,
      rgba(239,134,23,.20),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      var(--blu-scuro),
      var(--blu)
    );
}

.accesso-layout {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(350px, .9fr);
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow:
    0 28px 80px
    rgba(0,0,0,.26);
}

.presentazione {
  min-height: 560px;
  padding: 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  background:
    linear-gradient(
      145deg,
      rgba(11,41,72,.97),
      rgba(21,63,109,.92),
      rgba(179,32,37,.88)
    );
}

.presentazione img {
  width: 100px;
  max-height: 115px;
  margin-bottom: 30px;
  object-fit: contain;
}

.occhiello {
  margin: 0 0 9px;
  color: #ffe2bf;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.presentazione h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1;
}

.descrizione {
  max-width: 470px;
  margin: 20px 0 30px;
  color: #edf5fc;
  font-size: 17px;
  line-height: 1.6;
}

.presentazione a {
  color: white;
  font-weight: 800;
}

.pannello-accesso {
  padding: 46px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 30px;
  padding: 5px;
  border-radius: 12px;
  background: #edf2f7;
}

.tab {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--grigio);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.tab.attivo {
  color: white;
  background: var(--blu);
}

form {
  display: flex;
  flex-direction: column;
}

.badge {
  align-self: flex-start;
  padding: 7px 11px;
  border-radius: 999px;
  color: white;
  background:
    linear-gradient(
      90deg,
      var(--arancione),
      var(--rosso)
    );
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .7px;
}

form h2 {
  margin: 18px 0 20px;
  color: var(--blu-scuro);
  font-size: 30px;
}

.nota {
  margin: -8px 0 22px;
  color: var(--grigio);
  line-height: 1.5;
}

label {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 850;
}

input {
  min-height: 49px;
  margin-bottom: 17px;
  padding: 11px 13px;
  border: 1px solid var(--bordo);
  border-radius: 10px;
  font: inherit;
}

input:focus {
  outline: none;
  border-color: var(--arancione);
  box-shadow:
    0 0 0 4px
    rgba(239,134,23,.15);
}

form button {
  min-height: 49px;
  border: 0;
  border-radius: 10px;
  color: white;
  background:
    linear-gradient(
      90deg,
      var(--rosso),
      #8f181d
    );
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.registrazione-link {
  margin: 22px 0 0;
  text-align: center;
  color: var(--grigio);
  font-size: 14px;
}

.registrazione-link a {
  color: var(--blu);
  font-weight: 850;
}

.messaggio {
  margin-top: 18px;
  padding: 13px;
  border-radius: 9px;
  font-size: 14px;
}

.messaggio.errore {
  color: #8f181d;
  background: #fff0f0;
}

.messaggio.successo {
  color: #17623b;
  background: #eaf8f0;
}

@media (max-width: 780px) {
  .accesso-layout {
    grid-template-columns: 1fr;
  }

  .presentazione {
    min-height: auto;
    padding: 38px 30px;
  }

  .presentazione h1 {
    font-size: 36px;
  }

  .pannello-accesso {
    padding: 36px 28px;
  }
}


.recupero-link {
  margin: 13px 0 0;
  text-align: center;
  font-size: 14px;
}

.recupero-link a {
  color: var(--blu);
  font-weight: 850;
  text-decoration: none;
}

.recupero-link a:hover {
  text-decoration: underline;
}

.messaggio a {
  color: inherit;
  font-weight: 850;
}

/* Nasconde realmente i pannelli non selezionati */
[hidden] {
  display: none !important;
}
