/* dgCard - pagine di accesso (login e recupero password), rifatte il 15/10/2026 con gli stili del pannello:
   sfondo del gestionale #2a3034, riquadro come i riquadri dell'elenco card (.box_utente: fondo rgba(0,0,0,.4), ombra, angoli 5px,
   si ingrandisce al passaggio del mouse), campi come la scheda card (rgba(255,255,255,.2), testo bianco in grassetto),
   pulsante giallo come "Inserisci" (.btn_salva). */

html { height: 100%; }
body#body_login { margin: 0; min-height: 100%; background: #2a3034; font-family: Open Sans, Arial, Helvetica, sans-serif; font-size: 16px; color: rgba(255,255,255,.88);
    display: flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; padding: 40px 16px 110px; }

/* Riquadro: come .box_utente dell'elenco card (style.css) */
#container { width: 100%; max-width: 440px; box-sizing: border-box; background: rgba(0,0,0,.4); border-radius: 5px; box-shadow: 0 0 3px rgba(0,0,0,.95);
    padding: 34px 36px 30px; margin: 0; position: relative; transition: all .3s; }
@media (hover: hover) { #container:hover { transform: scale(1.04); } }

/* Logo del dominio */
#header { display: block; width: 100%; margin: 0 0 26px; text-align: center; }
#header a { display: inline-block; }
#header img { display: block; max-width: 100%; width: auto; max-height: 90px; margin: 0 auto; object-fit: contain; }

#main { width: 100%; margin: 0; text-align: left; }

/* Titolo: barra nera con testo giallo come i titoli di sezione della scheda card (.gestisci.nomeUFFattuale.taleft) */
#main h4 { margin: 0; padding: 7px 10px 5px; border-radius: 5px; background: #000; font-size: 14px; font-weight: normal; color: #f9ae0b;
    text-transform: uppercase; text-align: left; }

/* Campi (come la scheda card): niente etichette, il nome del campo è il placeholder */
#main input[type=text], #main input[type=email], #main input[type=password] { display: block; width: 100%; box-sizing: border-box; height: 46px; margin: 10px 0 0;
    padding: 0 9px; border: 1px solid transparent; border-radius: 5px; background-color: rgba(255,255,255,.2); color: #ffffff; font-family: inherit; font-size: 18px;
    font-weight: bold; outline: none; transition: border-color .2s, background-color .2s; }
#main input[type=text]:focus, #main input[type=email]:focus, #main input[type=password]:focus { border-color: #f9ae0b; }
#main input::placeholder { font-weight: normal; color: rgba(255,255,255,.8); }
#main input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px #3d4449 inset; -webkit-text-fill-color: #ffffff; caret-color: #ffffff; }
#main .campo-pwd { margin: 10px 0 0; }
#main .campo-pwd input { width: 100%; margin: 0; padding-right: 70px; }
#main .campo-pwd .occhio img { filter: invert(1); opacity: .45; }
#main .campo-pwd .occhio:hover img, #main .campo-pwd .occhio.attivo img { opacity: .9; }

/* Pulsante principale: giallo, a tutta larghezza (stessa larghezza dei campi) */
#main input[type=submit], #main .puls_esci_chiudi, #main a.btn-dg { display: block; float: none; width: 100%; box-sizing: border-box; height: 46px; line-height: 46px; margin: 26px 0 0;
    padding: 0 18px; border: none; border-radius: 5px; background: #f9ae0b; color: #2a313c; font-family: inherit; font-size: 20px; font-weight: bold; text-align: center;
    text-decoration: none; cursor: pointer; -webkit-appearance: none; appearance: none; transition: background .2s, color .2s; }
#main input[type=submit]:hover, #main .puls_esci_chiudi:hover, #main a.btn-dg:hover { background: #000000; color: #ffffff; }

/* Link secondari (password dimenticata, torna al login): sotto il pulsante, al centro */
#main .pwd_lost { margin: 18px 0 0; text-align: center; font-size: 14px; }
#main .pwd_lost a { color: rgba(255,255,255,.6); text-decoration: none; }
#main .pwd_lost a:hover { color: #f9ae0b; }
#main .azioni { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 0; margin: 0; }
#main .azioni > :last-child { margin-left: 0; }
#main .azioni > div:empty { display: none; }

/* Messaggi */
#main .avviso { margin: 18px 0 0; font-size: 15px; }
#main .requisiti { padding: 0 10px; }
#main .avviso b { color: inherit; }
#main .testo { margin: 14px 0 4px; padding: 0 10px; text-align: left; font-size: 15px; }

/* Piede: versione sotto il riquadro */
.footer_ver { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 18px 16px 22px; border-top: 1px solid rgba(0,0,0,.25); text-align: center;
    font-size: 13px; color: rgba(255,255,255,.3); background: #2a3034; }
.footer_ver a { color: inherit; text-decoration: none; }
.footer_ver a:hover { color: rgba(255,255,255,.6); }

/* Telefono */
@media all and (max-width: 700px) {
    body#body_login { justify-content: flex-start; padding-top: 24px; }
    #container { padding: 28px 22px 24px; }
    #header img { max-height: 70px; }
}
