/* Pagine d'accesso (login, imposta/scegli password), versione "A" del 15/11/2026: a sinistra il marchio (blu scuro, una frase, tre punti, la
   linea del battito e un taglio in diagonale come la barra del logo), a destra il modulo su fondo quasi nero. Decisa ma non urlata. Sempre scure, anche con il tema chiaro del sistema: e' il
   momento del marchio. Si animano solo transform, opacity e stroke-dashoffset (compositor); con prefers-reduced-motion tutto resta fermo ma
   visibile. Nessuna libreria, nessun file esterno, nessuno stile in linea. */

body.accesso {
  color-scheme: dark;
  margin: 0; min-height: 100vh; min-height: 100dvh; overflow-x: hidden;
  background: #05080F; color: #E6ECF5; font-family: var(--font-sans, system-ui, sans-serif);
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
}

/* ---------- lato del marchio ---------- */
.accesso-marca { position: relative; overflow: hidden; min-height: 100vh; min-height: 100dvh; box-sizing: border-box; padding: 56px 120px 36px 60px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  background: linear-gradient(158deg, #0C2152 0%, #081430 52%, #060D1B 100%); }
/* il taglio: una striscia sul bordo destro, meta' trasparente e meta' del colore del modulo, divisa dalla diagonale (esatta a ogni altezza) */
.accesso-marca::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 72px; pointer-events: none;
  background: linear-gradient(to bottom right, transparent calc(50% - 1px), #3F7BEA calc(50% - 1px), #3F7BEA calc(50% + 1px), #05080F calc(50% + 1px)); }

.accesso-scena { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(680px 480px at 16% 0%, rgba(31, 107, 255, 0.45), transparent 66%),
    radial-gradient(560px 460px at 96% 104%, rgba(0, 180, 255, 0.14), transparent 60%); }
.accesso-alone { position: absolute; left: -10%; top: -24%; width: 64%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(70, 140, 255, 0.22), transparent); animation: respiro 7s ease-in-out infinite; }
@keyframes respiro { 50% { opacity: 0.6; transform: scale(1.08); } }

/* la linea del battito: traccia debole e un impulso luminoso che la percorre, senza fretta */
.accesso-battito { position: absolute; left: 0; width: 100%; bottom: 78px; height: 110px; overflow: visible; }
.accesso-battito path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.accesso-battito .traccia { stroke: rgba(110, 165, 255, 0.30); stroke-width: 1.5; }
.accesso-battito .impulso { stroke: #A9CBFF; stroke-width: 2.5; stroke-dasharray: 140 1000; stroke-dashoffset: 140;
  filter: drop-shadow(0 0 6px #5B9BFF) drop-shadow(0 0 14px rgba(60, 130, 255, 0.75)); animation: scorri 6.5s linear infinite; }
@keyframes scorri { from { stroke-dashoffset: 140; } to { stroke-dashoffset: -1000; } }

.accesso-logo { position: relative; height: 58px; width: auto; align-self: flex-start; display: block;
  /* il blu del marchio su fondo blu si legge male: solo qui lo si schiarisce, senza cambiare tinta (i colori ufficiali restano altrove) */
  filter: brightness(1.85) saturate(1.1) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4)); }
.accesso-manifesto { position: relative; max-width: 500px; margin-bottom: 150px; }
.accesso-grido { margin: 0; font-size: clamp(32px, 3.5vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; color: #FFFFFF; }
.accesso-grido span { color: #5FA0FF; }
.accesso-sotto { margin: 16px 0 0; max-width: 440px; font-size: 17px; line-height: 1.5; color: #C4D2E8; }
.accesso-punti { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; max-width: 450px; }
.accesso-punti li { display: flex; gap: 12px; align-items: flex-start; }
.accesso-punti i { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 700;
  color: #A9CBFF; background: rgba(76, 141, 255, 0.18); border: 1px solid rgba(76, 141, 255, 0.5); }
.accesso-punti span { font-size: 15px; line-height: 1.45; color: #E6ECF5; padding-top: 3px; }
.accesso-payoff { position: relative; margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #9FB4D4; }

/* ---------- lato del modulo ---------- */
.accesso-guscio { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 40px 28px; box-sizing: border-box; }
.accesso-vetro { --mx: 50%; --my: 0%; position: relative; width: min(390px, 100%); box-sizing: border-box; display: flex; flex-direction: column; gap: 18px;
  animation: sale 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes sale { from { opacity: 0; transform: translateY(14px); } }

.accesso-occhiello { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #5B9BFF; }
.accesso-titolo { margin: -8px 0 0; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: #FFFFFF; }
.accesso-intro { margin: -10px 0 6px; font-size: 15px; line-height: 1.5; color: #AAB8CE; }

.accesso-campo { display: flex; flex-direction: column; gap: 7px; }
.accesso-campo label { font-size: 13px; font-weight: 600; color: #AAB8CE; }
.accesso-input { position: relative; display: flex; }
.accesso-input input { width: 100%; box-sizing: border-box; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 16px; color: #F1F5FB;
  background: #0B1322; border: 1px solid #2A3B58; border-radius: 12px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.accesso-input input:hover { border-color: #3D5580; }
.accesso-input input:focus { border-color: #5B9BFF; background: #0D182B; box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.38); }
.accesso-input input:-webkit-autofill { -webkit-text-fill-color: #F1F5FB; caret-color: #F1F5FB; box-shadow: 0 0 0 1000px #0B1322 inset; }
.accesso-input input.con-occhio { padding-right: 52px; }
.accesso-occhio { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: grid; place-items: center; padding: 0;
  background: none; border: 0; border-radius: 10px; color: #AAB8CE; cursor: pointer; }
.accesso-occhio:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.accesso-occhio:focus-visible { outline: 2px solid #5B9BFF; outline-offset: 1px; }
.accesso-occhio svg { width: 20px; height: 20px; }

.accesso-bottone { min-height: 54px; width: 100%; margin-top: 6px; font: inherit; font-size: 16px; font-weight: 750; letter-spacing: 0.01em; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #0050E6 0%, #1E6BFF 100%); border: 1px solid rgba(160, 200, 255, 0.5); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 80, 230, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); transition: transform 0.15s, box-shadow 0.2s, filter 0.2s; }
.accesso-bottone::after { content: "\2192"; display: inline-block; margin-left: 10px; transition: transform 0.2s; }
.accesso-bottone:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 14px 38px rgba(30, 110, 255, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.accesso-bottone:hover::after { transform: translateX(5px); }
.accesso-bottone:active { transform: translateY(1px); }
.accesso-bottone:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.accesso-bottone[disabled] { filter: saturate(0.6) brightness(0.85); cursor: progress; }
.accesso-bottone[disabled]::after { content: none; }
.accesso-link { display: block; text-align: center; text-decoration: none; line-height: 54px; box-sizing: border-box; }

.accesso-errore { margin: 0; padding: 12px 14px; border-radius: 10px; border-left: 3px solid #FF6B6B; font-size: 14px; line-height: 1.4; color: #FFB4B4;
  background: rgba(220, 38, 38, 0.16); }
.accesso-nota { margin: 0; font-size: 13.5px; color: #AAB8CE; line-height: 1.5; }
.accesso-nota strong { color: #E6ECF5; }
.accesso-nota a { color: #7FB2FF; }
.accesso-nota.piccola { font-size: 12.5px; }
.accesso-aiuto { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid #1C2940; }

/* ---------- telefono e finestre strette: il marchio diventa una fascia in alto, tagliata in diagonale ---------- */
@media (max-width: 900px) {
  body.accesso { display: block; }
  .accesso-marca { min-height: 0; padding: 26px 22px 80px; gap: 20px; }
  .accesso-marca::after { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 34px;
    background: linear-gradient(to bottom right, transparent calc(50% - 1px), #3F7BEA calc(50% - 1px), #3F7BEA calc(50% + 1px), #05080F calc(50% + 1px)); }
  .accesso-logo { height: 44px; }
  .accesso-manifesto { margin-bottom: 0; }
  .accesso-grido { font-size: clamp(24px, 7vw, 32px); }
  .accesso-sotto, .accesso-punti, .accesso-payoff { display: none; }
  .accesso-battito { bottom: 30px; height: 40px; opacity: 0.85; }
  .accesso-guscio { min-height: 0; align-items: flex-start; padding: 26px 22px 44px; }
  .accesso-vetro { width: min(460px, 100%); }
  .accesso-titolo { font-size: 28px; }
}
@media (max-height: 620px) and (min-width: 901px) { .accesso-punti { display: none; } .accesso-manifesto { margin-bottom: 110px; } }

/* movimento ridotto: tutto fermo ma visibile */
@media (prefers-reduced-motion: reduce) {
  .accesso-alone, .accesso-battito .impulso, .accesso-vetro { animation: none !important; }
  .accesso-battito .impulso { stroke-dasharray: none; opacity: 0.6; }
  .accesso-bottone, .accesso-bottone::after, .accesso-input input { transition: none; }
}
@media (forced-colors: active) {
  body.accesso, .accesso-marca { background: Canvas; }
  .accesso-grido, .accesso-titolo { color: CanvasText; }
  .accesso-input input { border-color: CanvasText; }
}
