/* Pagina iniziale: solo l'accesso dell'amministratore, sullo sfondo della schermata smartphone dell'app */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: #0F172A;
  background: #EAF1F8 url("/assets/sfondo-retino.jpg") 52% 62% / cover no-repeat;
  -webkit-text-size-adjust: 100%;
}
.accesso {
  position: relative; min-height: 100%; display: flex; align-items: center; justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}
/* lo stesso velo bianco della schermata smartphone: chiaro in alto e in basso, immagine piena al centro */
.accesso::before { content: ''; position: fixed; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,0) 26%, rgba(255,255,255,0) 58%, rgba(255,255,255,.55) 100%); }

.acc-card {
  position: relative; width: min(360px, 100%); padding: 30px 26px 26px; border-radius: 18px;
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.9); box-shadow: 0 12px 40px rgba(30,58,95,.18);
  display: flex; flex-direction: column; gap: 14px;
}
.acc-logo { width: min(190px, 60%); height: auto; display: block; margin: 0 auto 10px; }

.acc-campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #475569; }
.acc-campo input {
  font: inherit; font-size: 15px; font-weight: 500; color: #0F172A;
  padding: 11px 12px; border-radius: 10px; border: 1px solid #CBD5E1; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.acc-campo input:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }

.acc-msg { margin: 0; min-height: 0; font-size: 13px; line-height: 1.4; color: #B91C1C; }
.acc-msg:empty { display: none; }

.acc-btn {
  font: inherit; font-size: 15px; font-weight: 700; color: #fff; cursor: pointer;
  padding: 12px 16px; border: 0; border-radius: 10px; background: #2563EB; margin-top: 2px;
  transition: background-color .15s, transform .15s;
}
.acc-btn:hover { background: #1D4ED8; }
.acc-btn:active { transform: translateY(1px); }
.acc-btn:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; }
