/* ═══════════════════════════════════════════════════════════════════════════════
   TWIZA — le pagine di ACCESSO (03/11/2026)
   Un foglio solo per ogni pagina di accesso: il login del backoffice, «Password
   dimenticata» (reset_password.php) e il login del superadmin. Il disegno e' quello di
   «Password dimenticata» di communication: giraffa, marchio TWIZA + nome del prodotto,
   titolo centrato con la riga d'accento, testo d'aiuto, campo con icona, bottone pieno
   con la freccia, «← Torna all'accesso», divisore e firma SHAKAZAMBA.
   ⚠ Questo file esiste in DUE copie BYTE-IDENTICHE (twiza-template/auth.css e
   twiza-admin/auth.css): i tenant ricevono solo i file del template e il pannello e'
   servito da twiza-admin. Il cancello `auth_pagine_test.php` pretende che coincidano.
   ⚠ I campi sono leggibili anche con l'AUTOCOMPILAZIONE del browser: sfondo e colore
   espliciti, e `:-webkit-autofill`/`:autofill` dipinti col fondo del campo.
   ═══════════════════════════════════════════════════════════════════════════════ */
@font-face { font-family: 'DKJambo'; src: url('fonts/DKJambo.woff2') format('woff2'), url('fonts/DKJambo.woff') format('woff'), url('fonts/DKJambo.otf') format('opentype'); font-display: swap; }

.twa-shell {
  --a-bg: #0a0b18; --a-panel: #10122a; --a-surface: #161937; --a-line: #272b52; --a-divider: #353a66;
  --a-text: #ecebf6; --a-muted: #a8abc9; --a-faint: #8b8eb2;
  --a-accent: #d81b60; --a-accent-hover: #c2185b; --a-accent-text: #ff6aa2;
  --a-ok: #43d39a; --a-ok-soft: rgba(67,211,154,.12); --a-err: #ff9a9a; --a-err-line: rgba(255,107,107,.45); --a-err-soft: rgba(255,107,107,.10);
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow: auto; background: var(--a-bg); color: var(--a-text); color-scheme: dark;
  font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.45;
}
.twa-shell[hidden] { display: none !important; }
html[data-theme="light"] .twa-shell {
  --a-bg: #eef0f6; --a-panel: #ffffff; --a-surface: #f6f7fb; --a-line: #d9dce9; --a-divider: #cfd3e3;
  --a-text: #161831; --a-muted: #50546f; --a-faint: #62667f;
  --a-accent: #c2185b; --a-accent-hover: #a91450; --a-accent-text: #b0124f;
  --a-ok: #1f8a5f; --a-ok-soft: rgba(31,138,95,.10); --a-err: #b03434; --a-err-line: rgba(200,40,40,.40); --a-err-soft: rgba(200,40,40,.07);
  color-scheme: light;
}
.twa-shell *, .twa-shell *::before, .twa-shell *::after { box-sizing: border-box; }
.twa-shell .twa-aurora { position: fixed; inset: -20%; pointer-events: none;
  background:
    radial-gradient(38% 42% at 12% 8%,  rgba(214,51,132,.30), transparent 60%),
    radial-gradient(34% 38% at 88% 4%,  rgba(124,58,237,.26), transparent 58%),
    radial-gradient(42% 46% at 82% 90%, rgba(37,99,235,.20),  transparent 60%),
    radial-gradient(32% 36% at 16% 94%, rgba(236,72,153,.20), transparent 55%),
    linear-gradient(160deg, #070810 0%, #0a0b17 45%, #0b0714 75%, #070810 100%);
  background-size: 180% 180%; animation: twaAurora 24s ease-in-out infinite alternate; }
html[data-theme="light"] .twa-shell .twa-aurora {
  background:
    radial-gradient(38% 42% at 12% 8%,  rgba(214,51,132,.20), transparent 60%),
    radial-gradient(34% 38% at 88% 4%,  rgba(124,58,237,.15), transparent 58%),
    radial-gradient(42% 46% at 82% 90%, rgba(37,99,235,.12),  transparent 60%),
    linear-gradient(160deg, #eef0f6 0%, #f3f1f8 45%, #f1eef6 75%, #eef0f6 100%);
  background-size: 180% 180%; }
@keyframes twaAurora { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .twa-shell .twa-aurora { animation: none; } }
.twa-shell .twa-frame { position: fixed; inset: 10px; border-radius: 16px; border: 1px solid rgba(216,27,96,.30); pointer-events: none; z-index: 1; }
.twa-shell .twa-theme { position: fixed; top: 20px; right: 22px; z-index: 3; width: 36px; height: 36px; border-radius: 9px; border: 0; background: none;
  color: var(--a-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.twa-shell .twa-theme:hover { background: var(--a-surface); color: var(--a-text); }
.twa-shell .twa-theme .sun, html[data-theme="light"] .twa-shell .twa-theme .moon { display: none; }
html[data-theme="light"] .twa-shell .twa-theme .sun { display: block; }
.twa-shell .twa-card { position: relative; z-index: 2; margin: auto; width: min(430px, calc(100vw - 40px)); border-radius: 20px;
  border: 1px solid var(--a-divider); background: var(--a-panel); box-shadow: 0 24px 70px rgba(0,0,0,.45); padding: 28px 34px 20px;
  display: flex; flex-direction: column; align-items: center; }
html[data-theme="light"] .twa-shell .twa-card { box-shadow: 0 18px 50px rgba(22,24,49,.14); }
.twa-shell .twa-lockup { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.twa-shell .twa-lockup img { display: block; height: auto; }
.twa-shell .twa-product { font-family: 'DKJambo', 'Titillium Web', sans-serif; font-weight: 400; font-size: 19px; letter-spacing: .06em; color: var(--a-text); width: 152px; text-align: right; display: block; line-height: 1; }
.twa-shell .twa-head { display: flex; flex-direction: column; align-items: center; width: 100%; }
.twa-shell .twa-title { margin: 18px 0 0; font-size: 25px; font-weight: 600; text-align: center; color: var(--a-text); line-height: 1.25; }
.twa-shell .twa-rule { width: 54px; height: 3px; border-radius: 2px; background: var(--a-accent); margin: 10px 0 12px; }
.twa-shell .twa-intro { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--a-muted); text-align: center; max-width: 40ch; }
.twa-shell .twa-intro a, .twa-shell .twa-text a { color: var(--a-accent-text); }
.twa-shell .twa-text { margin: 14px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--a-muted); width: 100%; }
.twa-shell .twa-text strong { color: var(--a-text); }
.twa-shell .twa-form { width: 100%; display: flex; flex-direction: column; gap: 13px; margin-top: 20px; }
.twa-shell .twa-field { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.twa-shell .twa-label { font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--a-faint); margin: 0; }
.twa-shell .twa-box { display: flex; align-items: center; gap: 11px; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--a-line); background: var(--a-surface); color: var(--a-faint); transition: border-color .15s; }
.twa-shell .twa-box:focus-within { border-color: var(--a-accent); }
.twa-shell .twa-box svg { flex: none; }
/* ⚠ gli !important servono: i fogli delle pagine (style.css, il <style> del superadmin)
   ridipingono ogni <input>, e in tema chiaro lo facevano col bianco */
.twa-shell .twa-box input { flex: 1; min-width: 0; width: auto; height: 100%; margin: 0; border: 0 !important; outline: none !important;
  background: transparent !important; color: var(--a-text) !important; -webkit-text-fill-color: var(--a-text); caret-color: var(--a-text);
  font: inherit; font-size: 15px; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.twa-shell .twa-box input::placeholder { color: var(--a-faint) !important; -webkit-text-fill-color: var(--a-faint); opacity: 1; }
.twa-shell .twa-box input:-webkit-autofill,
.twa-shell .twa-box input:-webkit-autofill:hover,
.twa-shell .twa-box input:-webkit-autofill:focus,
.twa-shell .twa-box input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--a-text) !important; caret-color: var(--a-text);
  -webkit-box-shadow: 0 0 0 1000px var(--a-surface) inset !important; box-shadow: 0 0 0 1000px var(--a-surface) inset !important;
  transition: background-color 9999s ease-out 0s; }
.twa-shell .twa-box input:autofill { -webkit-text-fill-color: var(--a-text) !important; box-shadow: 0 0 0 1000px var(--a-surface) inset !important; }
.twa-shell .twa-eye { border: 0; background: none; color: var(--a-faint); cursor: pointer; padding: 0; display: inline-flex; }
.twa-shell .twa-eye:hover { color: var(--a-text); }
.twa-shell .twa-eye .off, .twa-shell .twa-eye.on .on { display: none; }
.twa-shell .twa-eye.on .off { display: block; }
.twa-shell .twa-btn { width: 100%; height: 50px; margin: 0; border-radius: 12px; border: 0; background: linear-gradient(135deg, #e0246f, var(--a-accent) 55%, #b5174f); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 10px 26px rgba(216,27,96,.30); padding: 0 14px; text-decoration: none; transition: filter .15s; }
.twa-shell .twa-btn:hover { filter: brightness(1.08); }
.twa-shell .twa-btn:disabled { opacity: .6; cursor: default; }
.twa-shell .twa-row { display: flex; justify-content: center; margin-top: 6px; }
.twa-shell .twa-note { margin: 2px 0 0; font-size: 12.5px; color: var(--a-faint); text-align: center; }
.twa-shell .twa-forgot { border: 0; background: none; color: var(--a-accent-text); font: inherit; font-size: 13.5px; cursor: pointer; padding: 4px 2px; border-bottom: 1px dotted var(--a-accent); text-decoration: none; }
.twa-shell .twa-forgot:hover { color: var(--a-accent); }
.twa-shell .twa-back { border: 0; background: none; color: var(--a-muted); font: inherit; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 4px 2px; text-decoration: none; }
.twa-shell .twa-back:hover { color: var(--a-text); }
.twa-shell .twa-msg { width: 100%; margin: 4px 0 0; padding: 11px 13px; border-radius: 11px; font-size: 13px; line-height: 1.5; text-align: left; border: 1px solid var(--a-err-line); background: var(--a-err-soft); color: var(--a-err); }
.twa-shell .twa-msg:empty { display: none !important; }
.twa-shell .twa-msg.ok { border-color: var(--a-ok); background: var(--a-ok-soft); color: var(--a-ok); }
.twa-shell .twa-foot { width: 100%; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--a-line); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.twa-shell .twa-foot img { height: 22px; width: auto; opacity: .72; display: block; }
.twa-shell .twa-foot small { font-size: 11.5px; color: var(--a-faint); text-align: center; }
html[data-theme="light"] .twa-shell .twa-foot img { filter: invert(1); opacity: .55; }
@media (max-width: 480px) { .twa-shell .twa-card { padding: 24px 22px 18px; } .twa-shell .twa-title { font-size: 22px; } }
