/* omnifit: la schermata di accesso un passo alla volta (index.html #authScreen, js/login.js), fatta per il telefono:
   niente riquadro al centro; il marchio e i pulsanti grandi sulla prima schermata, poi una domanda per schermata con
   ‹ e la barra dei passi. Le regole .auth-card… di styles.css non servono più. La barra .au-bar la usa anche
   «Chi sei» dopo l'iscrizione (welcome.css). */
/* place-items: normal toglie il centrato di styles.css .auth (nei browser nuovi stringerebbe anche il modulo) */
.auth.au { display: block; place-items: normal; padding: 0; background: var(--bg); }
.au-in {
  min-height: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; box-sizing: border-box;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 22px calc(18px + env(safe-area-inset-bottom, 0px));
}

.au-top { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.au-back {
  flex: none; width: 44px; height: 44px; margin-left: -10px; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer;
}
.au-back svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.au-bar { flex: 1; display: flex; gap: 5px; }
.au-bar i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.au-bar i.on { background: var(--accent); }

.au-step { display: flex; flex-direction: column; }
/* prima schermata: il marchio al centro, i pulsanti in fondo sotto il pollice */
.au-home { flex: 1; align-items: center; justify-content: center; gap: 14px; padding: 32px 0 24px; }
.au-home .auth-brand { flex-direction: column; gap: 18px; margin: 0; }
.au-home .auth-brand .logo { height: 96px; }
.au-home .auth-brand .brand-name { font-size: 68px; }
.au-tag { margin: 0; color: var(--muted); font-size: 15px; text-align: center; }

.au-h { margin: 22px 0 0; font: 700 28px/1.15 var(--f-body); letter-spacing: -.01em; }
.au-s { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.au-s b { color: var(--ink); font-weight: 600; }

.au-fl {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; margin-top: 22px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface);
}
.au-fl:focus-within { border-color: var(--accent); }
/* la password subito sotto l'email, nella stessa schermata */
.au-pwf .au-fl { margin-top: 12px; }
.au-fl > svg { flex: none; width: 21px; height: 21px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.au-fl input { flex: 1; width: 100%; min-width: 0; height: 52px; padding: 0; border: 0; border-radius: 0; outline: none; background: none; color: var(--ink); font: 500 17px/1 var(--f-body); }
.au-fl.pw-box { display: flex; }
.au-fl.pw-box input[type] { padding-right: 34px; }
.au-fl .pw-eye { border-radius: 0 16px 16px 0; }

.au-ok { display: flex; align-items: center; gap: 6px; margin: 10px 2px 0; font-size: 14px; color: var(--muted); }
.au-ok svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.au-ok.is-ok { color: var(--ok); }

.au-link {
  align-self: center; margin-top: 14px; padding: 8px 10px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: 500 15px/1.3 var(--f-body); text-align: center;
}
.au-link b { color: var(--accent); font-weight: 600; }
.au-forgot { align-self: flex-end; margin-top: 6px; padding: 8px 2px; color: var(--accent); font-size: 14px; font-weight: 600; }

/* il codice: una casella vera (incolla, riempimento dall'email) sopra sei caselle disegnate */
.au-otp { position: relative; display: block; margin-top: 26px; }
.au-otp input {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0;
  background: none; color: transparent; caret-color: transparent; font-size: 16px;
}
.au-bx { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 360px; margin: 0 auto; }
.au-bx i {
  height: 58px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink); font: 600 26px/1 var(--f-mono); font-style: normal;
}
.au-bx i.cur { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.auth .au-err { margin: 16px 0 0; }
.au-legal { margin: 18px 0 0; }
.auth-bot { display: flex; justify-content: center; margin-top: 14px; }
.au-acts { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.au-acts .btn { width: 100%; min-height: 54px; justify-content: center; border-radius: 27px; font-size: 17px; }
.au-acts .au-alt { border: 1.5px solid var(--line); background: transparent; color: var(--ink); }
.au-acts .au-codel { margin-top: 2px; }
.au-acts .btn:disabled { opacity: .6; cursor: default; }
