/* Login dell'area riservata e pagine con lo stesso layout (reimposta-password.html). */
.reserved-page .page-content {
  position: relative;
  overflow: visible;
  padding: 0;
  background: transparent;
}

.reserved-shell.admin-shell {
  margin-top: -94px;
  padding-top: 0;
  padding-bottom: 48px;
}

/* Qui la card risale sempre di 94px (anche su telefono): l'hero lascia 94px + 16px. */
.reserved-page .admin-topbar.admin-topbar--hero {
  padding-bottom: 110px;
}

.reserved-login {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(250, 250, 250, 0.99) 100%);
  border: 1px solid rgba(17, 19, 23, 0.1);
  border-top: 4px solid rgb(238, 28, 37);
  box-shadow:
    0 24px 60px rgba(17, 19, 23, 0.1),
    0 8px 20px rgba(17, 19, 23, 0.05);
}

.reserved-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(238, 28, 37, 0.04), transparent 42%),
    radial-gradient(circle at top right, rgba(238, 28, 37, 0.08), transparent 34%);
  pointer-events: none;
}

.reserved-login__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  gap: 0;
}

.reserved-login__main {
  padding: 44px 42px 36px;
}

.reserved-login__aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 42px 34px 34px;
  background:
    linear-gradient(180deg, rgba(17, 19, 23, 0.92) 0%, rgba(33, 35, 39, 0.96) 100%);
  color: rgba(255, 255, 255, 0.86);
}

.reserved-login .admin-card__head {
  padding: 0 0 26px;
}

.reserved-login .admin-card__head p {
  max-width: 560px;
  color: #62656f;
  font-size: 16px;
  line-height: 1.7;
}

/* Area riservata: la frase sotto "Accedi al tuo profilo clienti" usa tutta la larghezza della card */
.reserved-login .admin-card__head p.reserved-login__lead {
  max-width: none;
}

.reserved-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(238, 28, 37, 0.14);
  background: rgba(238, 28, 37, 0.08);
  color: var(--admin-red);
  font: normal 400 13px/1 Oswald, "Arial Narrow", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reserved-login-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(238, 28, 37, 0.12);
}

.reserved-login .admin-card__head h2 {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-top: 4px;
}

.reserved-login-form {
  margin-top: 0;
  max-width: 620px;
}

.reserved-login-form > .uk-width-1-1 + .uk-width-1-1 {
  margin-top: 14px;
}

.reserved-login-form .admin-field-label {
  margin-bottom: 10px;
  color: #1d1d1f;
  font-family: Oxygen, "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
}

.reserved-field__control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 20px 0 18px;
  border: 1px solid rgba(17, 19, 23, 0.12);
  border-radius: 10px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.reserved-field__control:hover {
  border-color: rgba(238, 28, 37, 0.3);
  background: #ffffff;
}

.reserved-field__control:focus-within {
  border-color: rgba(238, 28, 37, 0.42);
  background: #ffffff;
  box-shadow:
    0 0 0 3px rgba(238, 28, 37, 0.12);
  transform: none;
}

.reserved-field__icon {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(238, 28, 37, 0.08);
  color: var(--admin-red);
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}

.reserved-field__control .admin-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: auto;
  padding: 0 0 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111317 !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}

.reserved-field__control .admin-input::placeholder {
  color: #8b8e96 !important;
}

.reserved-field__control .admin-input:focus {
  outline: none !important;
}

.reserved-login-form .admin-feedback {
  min-height: 26px;
  margin: 8px 0 0;
  padding-left: 2px;
  font-size: 14px;
  line-height: 1.55;
}

.reserved-login-submit {
  min-height: 58px;
  border-radius: 0 !important;
  background: rgb(238, 28, 37);
  box-shadow:
    0 16px 32px rgba(238, 28, 37, 0.18);
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.reserved-login-submit:hover,
.reserved-login-submit:focus {
  background: rgb(170, 17, 24);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    0 18px 36px rgba(238, 28, 37, 0.24);
}

.reserved-login-meta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  color: #62656f;
  font-size: 13px;
  line-height: 1.5;
}

.reserved-login-meta__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.reserved-login-meta__status::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.14);
}

.reserved-login-meta__hint {
  text-align: right;
}

.reserved-side-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font: normal 600 12px/1.1 Oswald, "Arial Narrow", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reserved-side-kicker i {
  font-size: 12px;
}

.reserved-side-title {
  margin: 22px 0 12px;
  color: #ffffff;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.reserved-side-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.7;
}

.reserved-side-points {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.reserved-side-points li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: rgba(255, 255, 255, 0.9);
}

.reserved-side-points span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.reserved-side-points strong {
  display: block;
  margin-bottom: 3px;
  color: #ffffff;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reserved-side-points small {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 1.55;
}

.reserved-side-footer {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.reserved-meta {
  margin-top: 16px;
  text-align: center;
  color: var(--admin-muted);
  font-size: 14px;
  line-height: 1.6;
}

.reserved-actions {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.reserved-actions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 19, 23, 0.08);
  border-left: 3px solid rgba(238, 28, 37, 0.7);
  color: #1d1d1f;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Freccia disegnata col bordo: Font Awesome qui è la versione JS/SVG, la webfont non c'è. */
.reserved-actions a::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  color: #8b8e96;
  transform: rotate(45deg);
  transition: transform 0.2s ease, color 0.2s ease;
}

.reserved-actions a:hover,
.reserved-actions a:focus {
  border-color: rgba(238, 28, 37, 0.22);
  color: var(--admin-red);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.reserved-actions a:hover::after,
.reserved-actions a:focus::after {
  color: var(--admin-red);
  transform: translateX(2px) rotate(45deg);
}

.reserved-actions strong {
  display: block;
  margin-top: 2px;
  margin-bottom: 5px;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.42;
  text-transform: uppercase;
}

.reserved-actions small {
  display: block;
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.55;
}

@media (min-width: 960px) {
  .reserved-login-meta__status,
  .reserved-login-meta__hint {
    white-space: nowrap;
  }
}

@media (max-width: 1199px) {
  .reserved-login__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.94fr);
  }

  .reserved-login .admin-card__head h2 {
    font-size: 34px;
  }

  .reserved-login__main {
    padding: 36px 32px 30px;
  }

  .reserved-login__aside {
    padding: 34px 28px 30px;
  }
}

@media (max-width: 959px) {
  .reserved-login {
    border-radius: 0;
  }

  .reserved-login__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .reserved-login__aside {
    order: -1;
    padding: 26px 26px 24px;
  }

  .reserved-login__main {
    padding: 28px 26px 26px;
  }

  .reserved-login .admin-card__head h2 {
    font-size: 34px;
  }

  .reserved-side-title {
    font-size: 24px;
  }

  .reserved-side-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reserved-side-points li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .reserved-side-points span {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 767px) {
  .reserved-login {
    border-radius: 0;
  }

  .reserved-login__main {
    order: 1;
    padding: 24px 18px 20px;
  }

  .reserved-login__aside {
    order: 2;
    padding: 18px 18px 20px;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .reserved-login .admin-card__head {
    padding-bottom: 16px;
  }

  .reserved-login .admin-card__head h2 {
    font-size: 28px;
    line-height: 1.16;
  }

  .reserved-login-badge {
    margin-bottom: 14px;
  }

  .reserved-login-form > .uk-width-1-1 + .uk-width-1-1 {
    margin-top: 12px;
  }

  .reserved-field__control {
    min-height: 54px;
    padding: 0 14px;
    border-radius: 8px;
  }

  .reserved-field__icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .reserved-field__control .admin-input {
    padding-left: 10px !important;
    font-size: 15px !important;
  }

  .reserved-login-submit {
    min-height: 54px;
  }

  .reserved-login-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
  }

  .reserved-login-meta__hint {
    text-align: left;
  }

  .reserved-side-title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.18;
  }

  .reserved-side-points {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 16px;
  }

  .reserved-side-points li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .reserved-side-points span {
    width: 34px;
    height: 34px;
  }

  .reserved-side-copy,
  .reserved-side-points small {
    line-height: 1.6;
  }

  .reserved-actions {
    margin-top: 18px;
  }

  .reserved-actions a {
    padding: 15px 16px;
    border-radius: 18px;
    align-items: flex-start;
  }
}

/* Recupero password: stati con icona (link inviato, aggiornata, link non valido) */
.reset-page .reset-done .registry-done__text {
  margin-bottom: 0;
}

.reset-page .reset-done .reserved-login-submit {
  margin-top: 26px;
}

.reset-page [data-reset-state="done"]:not([hidden]) ~ .reserved-actions {
  display: none;
}
