/* Pagine di accesso (login, registrazione, recupero e nuova password, profilo Google): solo gli stati che le tavole
   (AuthLogin, AuthRegister, AuthRecovery, AuthGoogle) non mostrano. Le misure stanno in board/site.css (classi s-…). */

/* il form non crea un livello in più: i campi restano figli del riquadro, come nelle tavole */
.ttm-auth-form { display: contents; }
[class*="pg-auth"] [hidden] { display: none !important; }

/* logo (1004x650 con margine trasparente): riquadro alto 28px come nella tavola */
.ttm-logo-auth { height: 73px !important; width: auto !important; margin: -16px 0 -29px -4px !important; }

/* campi veri dentro i riquadri disegnati dalle tavole */
[class*="pg-auth"] .ttm-inp {
  flex: 1 1 auto; min-width: 0; width: 100%; box-sizing: border-box; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: inherit; font: inherit; line-height: inherit; letter-spacing: inherit; outline: 0; box-shadow: none;
}
[class*="pg-auth"] .ttm-inp::placeholder { color: #9A8B80; opacity: 1; letter-spacing: 0; font-weight: 400; }
[class*="pg-auth"] .ttm-inp[type="password"]:placeholder-shown { letter-spacing: 0; }
[class*="pg-auth"] .ttm-box { cursor: text; transition: border-color .15s, box-shadow .15s; }
/* campo attivo: stato mostrato dalle tavole sul campo password / email */
[class*="pg-auth"] .ttm-box:focus-within:not(.ttm-box--ro) { border-color: #2E211B !important; box-shadow: 0 0 0 4px #FFE4D9 !important; }
.ttm-box--ro { cursor: default !important; }
.ttm-box--ro .ttm-inp { color: #5A4A40; }
/* campo con errore (conferma password diversa) */
.is-error > .ttm-box { border-color: #B3261E !important; }

/* occhio mostra/nascondi */
.ttm-eye { border: 0; background: transparent; padding: 0; cursor: pointer; position: relative; }
.ttm-eye::after { content: ''; position: absolute; inset: -13px -8px; }
.ttm-eye[aria-pressed="true"] { color: #2E211B !important; }
.ttm-eye:focus-visible { outline: 3px solid #2E211B; outline-offset: 4px; border-radius: 6px; }

/* sicurezza password: debole / media (la tavola mostra "buona") */
.ttm-str[data-level="weak"] .s-c99c261 { background: #B3261E !important; }
.ttm-str[data-level="weak"] .s-582bff3 { color: #B3261E !important; }
.ttm-str[data-level="medium"] .s-c99c261 { background: #FFD84D !important; }
.ttm-str[data-level="medium"] .s-582bff3 { color: #7A5A00 !important; }

/* casella dei termini: vera checkbox nascosta, riquadro disegnato dalla tavola */
.ttm-chk { position: absolute; opacity: 0; width: 1px; height: 1px; }
.s-1b077d0 { cursor: pointer; position: relative; }
.ttm-chk__box { display: flex; align-items: center; justify-content: center; color: transparent; }
.ttm-chk:checked + .ttm-chk__box { background: #2E211B !important; border-color: #2E211B !important; color: #FFFFFF; }
.ttm-chk:focus-visible + .ttm-chk__box { outline: 3px solid #2E211B; outline-offset: 2px; }

/* pulsanti e collegamenti: cursore, hover, focus */
.ttm-auth-btn { cursor: pointer; }
.ttm-auth-btn:hover { background: #F23D0F !important; }
.ttm-auth-btn:disabled { opacity: .6; cursor: default; }
.ttm-auth-btn--link { display: block; box-sizing: border-box; text-align: center; text-decoration: none; }
.ttm-auth-btn:focus-visible, [class*="pg-auth"] main a:focus-visible { outline: 3px solid #2E211B; outline-offset: 2px; }
.s-3982eb0:hover { box-shadow: 0 0 0 1.5px #2E211B !important; }

/* errori in alto al riquadro: stesse misure dell'avviso verde, colori di errore */
.ttm-auth-err { background: #FDE2DF; color: #B3261E; border-radius: 16px; padding: 14px 16px; font-size: 15px; font-weight: 600; line-height: 1.45; display: flex; gap: 10px; }
.ttm-auth-err ul { margin: 0; padding-left: 18px; }
.ttm-auth-err .s-cb16c3c { margin-top: 2px; }
.ttm-str:not([data-level]) .s-582bff3 { color: #6B5A50 !important; }
