/* One full-screen access view, shared by the home and the standalone URL. */
#home-auth-dialog{scrollbar-width:none}
#home-auth-dialog::-webkit-scrollbar{display:none}
.auth-standalone{margin:0;background:#171717;color:#fff;font:16px/1.45 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;min-height:100dvh}
.auth-background{position:fixed;inset:0;z-index:0;background:#191919 url('/frontend/auth/background-desktop.webp') center/cover no-repeat;pointer-events:none}.auth-background:after{content:'';position:absolute;inset:0;background:#0005}
.auth-top{--auth-bar:64px;position:sticky;top:0;z-index:5;box-sizing:border-box;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;height:calc(var(--auth-bar) + env(safe-area-inset-top));padding:env(safe-area-inset-top) clamp(12px,3vw,48px) 0;background:#171717;border-bottom:1px solid #ffffff30;font:16px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.auth-top .auth-brand{font-size:25px;font-weight:750;color:#ff7b24;text-decoration:none;white-space:nowrap;justify-self:start}.auth-brand span{color:white}.auth-nav{display:flex;gap:6px;align-items:center}.auth-nav button{font:inherit;font-weight:600;min-height:44px;padding:8px 18px;color:#eee;background:transparent;border:1px solid transparent;border-radius:9px;cursor:pointer;white-space:nowrap}.auth-nav button.is-active{background:#ff6600;color:#171717;border-color:#ff6600}.auth-nav button:hover:not(.is-active){background:#333}.auth-nav-actions{justify-self:end}.auth-top .auth-dismiss{display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;background:transparent;color:#eee;border:1px solid #777;border-radius:9px;font:28px/1 sans-serif;text-decoration:none;cursor:pointer}.auth-top :focus-visible{outline:2px solid #ffb17d;outline-offset:3px}
.auth-layout{position:relative;z-index:1;box-sizing:border-box;display:grid;place-items:center;min-height:calc(100dvh - 64px - env(safe-area-inset-top));padding:12px 16px calc(12px + env(safe-area-inset-bottom));margin:0;width:100%}.auth-host,#auth-mount{width:min(100%,440px);min-width:0}.auth-welcome{display:none}
.auth-root{font:16px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#fff;width:100%;position:relative}.auth-root *{box-sizing:border-box}.auth-root .hidden{display:none!important}.auth-root .registration-form-container{width:100%;padding:22px 26px;background:#222;border:1px solid #777;border-radius:18px;box-shadow:0 16px 48px #0005}.auth-root h2{font-size:28px;line-height:1.15;letter-spacing:-.5px;margin:0 0 14px}.auth-root p{line-height:1.4}.auth-root .form-group{margin:12px 0}.auth-root label{display:block;font-size:14px;line-height:1.4;font-weight:600;margin-bottom:5px}.auth-root input:not([type=checkbox]){display:block;width:100%;height:44px;min-height:44px;padding:9px 12px;border:1px solid #858585;border-radius:8px;background:#2b2b2b;color:white;font:inherit;font-size:16px}.auth-root input::placeholder{color:#c5c5c5;opacity:1}.auth-root input:focus-visible{outline:2px solid #ff9c55;outline-offset:2px}.auth-root a{color:#ffb17d;text-underline-offset:3px}.auth-root button{font:inherit;cursor:pointer}.auth-root button:focus-visible,.auth-root a:focus-visible{outline:2px solid #ffb17d;outline-offset:3px}.auth-root button:disabled{opacity:.55;cursor:wait}
.auth-root .password-input-wrapper{position:relative}.auth-root .password-input-wrapper input{padding-right:46px}.auth-root .toggle-password{position:absolute;right:1px;top:0;width:44px;height:44px;border:0;border-radius:0;background:transparent;color:#ddd}.auth-root .continue-btn{width:100%;height:44px;min-height:44px;margin-top:8px;padding:8px 14px;border:0;border-radius:8px;background:#ff6600;color:#171717;font-weight:750;font-size:16px}.auth-root .continue-btn:hover{background:#ff7b24}.auth-root .forgot-password-link{display:block;text-align:right;font-size:14px;margin-top:6px}.auth-root .google-signin-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:44px;min-height:44px;border:1px solid #858585;border-radius:8px;background:#292929;color:white;font-size:15px}.auth-root .google-signin-btn img{width:18px;height:18px}.auth-root .or-divider{display:flex;align-items:center;gap:10px;margin:12px 0;color:#ccc;font-size:13px;line-height:1}.auth-root .or-divider:before,.auth-root .or-divider:after{content:'';height:1px;background:#ffffff35;flex:1}
.auth-root p.login-link{display:block;font-size:14px;font-weight:400;text-align:center;background:transparent;border:0;border-radius:0;padding:0;margin:12px 0 0;min-height:0}.auth-root .google-terms-text{font-size:13px;color:#ddd;margin:12px 0 0;line-height:1.4}.auth-root .terms-privacy{display:none}.auth-root .terms-text{font-size:13px;font-weight:400;color:#eee;line-height:1.4}.auth-root .custom-checkbox{display:flex;gap:9px;align-items:flex-start}.auth-root input[type=checkbox]{width:20px;height:20px;flex-shrink:0;accent-color:#ff6600;margin:0}.auth-root .checkmark{display:none}
.auth-root .error-message,.auth-root .success-message{padding:10px;border-radius:8px;font-size:14px;margin-top:10px}.auth-root .error-message{color:#ffc3c3;background:#f448481c;border:1px solid #f67272}.auth-root .success-message{color:#b5efcc;background:#49b3771c;border:1px solid #6bc890}.auth-root .auth-overlay{position:relative;z-index:2}.auth-root .auth-main-content[inert]{display:none}.auth-root .success-icon{font-size:30px;color:#ffb17d}.auth-root .close-btn{float:right;min-width:44px;min-height:44px;background:transparent;border:1px solid #777;color:white;border-radius:8px}.auth-root .auth-operation{font-size:14px;text-align:center;color:#eee;margin:8px 0 0}.auth-root .auth-operation:empty{display:none}
#home-auth-dialog{position:fixed;inset:0;margin:0;max-width:none;max-height:none;width:100%;height:100%;height:100dvh;border:0;padding:0;background:transparent;color:white;overflow:auto;overscroll-behavior:contain;scroll-padding-top:80px;scroll-padding-bottom:16px}#home-auth-dialog::backdrop{background:transparent;transition:background .4s ease}#home-auth-dialog.is-ready::backdrop{background:#0005}.home-auth-surface{min-height:100%;position:relative;isolation:isolate}.home-auth-surface>.auth-background{display:none}#home-auth-dialog.is-ready .auth-background{opacity:1}#home-auth-dialog .auth-layout{opacity:0;transform:translate3d(0,8px,0);transition:opacity .15s ease,transform .15s ease}#home-auth-dialog.is-ready .auth-layout{opacity:1;transform:none}.auth-surface-locked{overflow:hidden!important}.auth-surface-locked #header,.auth-surface-locked #contenuto,.auth-surface-locked footer,.auth-surface-locked #page-progress{visibility:hidden!important}.auth-root input,.auth-root button,.auth-root a{scroll-margin-top:80px;scroll-margin-bottom:16px}.auth-preparing{background:#222;border:1px solid #777;border-radius:14px;padding:24px;color:white;text-align:center}.auth-preparing button{min-height:44px;margin-top:12px}
@media(max-width:600px){.auth-background{background-image:url('/frontend/auth/background-mobile.webp')}.auth-top{--auth-bar:56px;grid-template-columns:auto 1fr auto;gap:10px;padding-left:12px;padding-right:12px}.auth-top .auth-brand{font-size:23px}.auth-nav{justify-self:center;gap:2px}.auth-nav button{font-size:14px;padding:7px 10px}.auth-layout{min-height:calc(100dvh - 56px - env(safe-area-inset-top));padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.auth-root .registration-form-container{padding:20px;border-radius:15px}}
@media(max-height:740px){.auth-layout{padding-top:8px;padding-bottom:8px}.auth-root .registration-form-container{padding-top:16px;padding-bottom:16px}.auth-root h2{font-size:26px;margin-bottom:10px}.auth-root .form-group{margin:9px 0}.auth-root .or-divider{margin:10px 0}.auth-root p.login-link,.auth-root .google-terms-text{margin-top:9px}}
@media(max-width:359px){.auth-top{gap:6px;padding-left:10px;padding-right:10px}.auth-top .auth-brand{font-size:21px}.auth-nav button{padding-left:7px;padding-right:7px}.auth-layout{padding-left:10px;padding-right:10px}.auth-root .registration-form-container{padding-left:16px;padding-right:16px}}


/* Reference layout: keep the form vertical and visually consistent in every mode. */
.auth-top{display:flex;justify-content:space-between;border-top:2px solid #ff6600;background:#111e;padding-left:24px;padding-right:24px}
.auth-nav{display:flex;gap:22px}.auth-nav a{font-size:16px;font-weight:600;color:white;text-decoration:none;min-height:44px;display:flex;align-items:center}.auth-nav a:hover{color:#ffae75}.auth-nav-actions{display:flex;align-items:center;gap:14px;margin-left:auto}.auth-menu{display:none}
.auth-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,428px);gap:clamp(32px,5vw,100px);max-width:1320px;margin:auto;padding:32px clamp(24px,4vw,72px);align-items:center}
.auth-host,#auth-mount{width:100%;max-width:428px;justify-self:end}.auth-welcome{box-sizing:border-box;min-width:0;display:block;padding:24px;border:1px solid #ffffff40;border-radius:24px;background:#1a1a1ad6;box-shadow:0 12px 36px #0003;color:white}.auth-welcome h1{font-size:clamp(30px,3vw,48px);line-height:1.15;margin:0 0 24px;font-weight:750;letter-spacing:-.8px}.auth-welcome h1 span{color:#ff6600}.auth-welcome p{font-size:17px;line-height:1.6;margin:0;color:#eee}
.auth-root .registration-form-container{display:flex;flex-direction:column;justify-content:center;min-height:600px;padding:30px 34px;border:1px solid #888;border-radius:22px;background:#262626;box-shadow:0 12px 40px #0004}
.auth-root h2{text-align:center;font-size:27px;margin:0 0 22px}.auth-root label{font-size:13px;margin-bottom:6px}.auth-root .form-group{margin:14px 0}.auth-root input:not([type=checkbox]){height:46px;background:#2a2a2a;border-color:#555;border-radius:8px}.auth-root .continue-btn{height:44px;font-size:18px;font-weight:700;margin-top:12px;color:white;background:#e95100}.auth-root .google-signin-btn{height:40px;min-height:40px;background:#ccc;color:#111;border:0;font-size:14px}.auth-root .terms-text{font-size:12px;line-height:1.5}.auth-root .or-divider{margin:18px 0}.auth-root .login-link{font-size:12px;margin:18px 0 0}.auth-root .terms-privacy{display:block;text-align:center;font-size:10px;color:#aaa;margin-top:28px}.auth-root .google-terms-text{font-size:12px}.auth-root .eye-slash{display:none}.auth-root [aria-pressed=true] .eye-slash{display:block}.auth-root .toggle-password{color:#aaa}
@media(max-width:1000px){.auth-layout{grid-template-columns:minmax(0,1fr) minmax(320px,390px);gap:24px;padding:24px}.auth-welcome{padding:20px}.auth-welcome h1{font-size:30px}.auth-root .registration-form-container{padding:26px;min-height:570px}.auth-nav{gap:14px}.auth-nav a{font-size:14px}}
@media(max-width:740px){.auth-top{padding-left:16px;padding-right:16px;gap:12px}.auth-menu{display:block;background:transparent;border:1px solid #777;border-radius:8px;color:white;min-height:44px;padding:8px 12px;font:inherit}.auth-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#181818;padding:12px 20px;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.auth-top.menu-open .auth-nav{display:grid}.auth-nav-actions{gap:10px}.auth-layout{display:flex;flex-direction:column;max-width:480px;gap:20px;padding:20px 16px}.auth-welcome{width:100%;padding:20px}.auth-welcome h1{font-size:26px;line-height:1.18;margin-bottom:12px}.auth-welcome p{font-size:15px}.auth-host,#auth-mount{width:100%;max-width:428px}.auth-root .registration-form-container{min-height:0;padding:26px}.auth-root h2{font-size:26px}.auth-root .terms-privacy{margin-top:22px}}
@media(max-height:740px) and (min-width:741px){.auth-layout{padding-top:16px;padding-bottom:16px}.auth-root .registration-form-container{min-height:0;padding:22px 28px}.auth-root .form-group{margin:10px 0}.auth-root h2{margin-bottom:14px}.auth-root .terms-privacy{margin-top:18px}.auth-welcome h1{font-size:34px}}

.auth-root{color-scheme:dark}
/* The access view uses the actual public header markup and public header styles. */
.home-auth-surface{box-sizing:border-box;padding-top:var(--header-height,88px)}
.auth-standalone{padding-top:var(--header-height,88px)}
.auth-home-header{position:fixed!important;top:0;left:0;right:0;z-index:10}
.auth-home-header~.auth-layout{min-height:calc(100dvh - var(--header-height,88px));}
.auth-root .registration-form-container{max-width:100%;min-width:0}
.auth-root input{min-width:0}
@media(min-width:741px) and (max-height:850px){.auth-layout{padding-top:20px;padding-bottom:20px}.auth-root .registration-form-container{min-height:0;padding:24px 30px}.auth-root .form-group{margin:12px 0}.auth-root .terms-privacy{margin-top:20px}}
@media(max-width:740px){.auth-layout{padding-top:16px;padding-bottom:24px}.auth-welcome h1{font-size:clamp(23px,5.4vw,28px)}.auth-root .registration-form-container{padding:24px;min-height:0}}
/* Use measured header height, including the expanded navigation row. */
.home-auth-surface{padding-top:var(--public-header-height,var(--header-height,88px))}
.auth-standalone{padding-top:var(--public-header-height,var(--header-height,88px))}
.auth-home-header~.auth-layout{min-height:calc(100dvh - var(--public-header-height,var(--header-height,88px)));height:auto}
.auth-root .registration-form-container{box-sizing:border-box;min-height:0}
.auth-layout{align-items:center;padding-top:20px;padding-bottom:24px}
.auth-root .terms-privacy{margin-top:18px}
.auth-root .success-icon svg{width:32px;height:32px;stroke:currentColor;fill:none;stroke-width:1.7}
.auth-root .toggle-password svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8}
@media(min-width:741px) and (max-height:900px){.auth-layout{padding-top:16px;padding-bottom:20px}.auth-root .registration-form-container{padding:22px 26px}.auth-root h2{font-size:26px;margin-bottom:14px}.auth-root .form-group{margin:10px 0}.auth-root input:not([type=checkbox]){height:44px}.auth-root .or-divider{margin:12px 0}.auth-root p.login-link{margin-top:12px}.auth-root .terms-privacy{margin-top:14px}.auth-root .copyright{margin:0}.auth-welcome h1{font-size:clamp(28px,3vw,42px)}}
@media(max-width:740px){.auth-layout{align-items:stretch}.auth-root .registration-form-container{padding:22px}.auth-welcome{padding:18px}}

@keyframes auth-form-arrival{from{opacity:0;transform:translate3d(0,10px,0)}to{opacity:1;transform:none}}
#home-auth-dialog.is-ready .auth-root{animation:auth-form-arrival .15s ease both}
@media(prefers-reduced-motion:reduce){#home-auth-dialog .auth-root{animation:none!important}}

/* A compact welcome card with a calmer, readable title. */
.auth-welcome{width:100%;max-width:460px;justify-self:center;padding:clamp(24px,3vw,40px)}
.auth-welcome h1{max-width:18ch;font-size:clamp(28px,2.6vw,38px);font-weight:500;line-height:1.25;letter-spacing:-.4px;text-wrap:balance;margin-bottom:22px}
.auth-welcome p{max-width:32ch;font-size:16px;line-height:1.6;color:#d0d0d0}
@media(max-width:740px){.auth-welcome{display:none}.auth-layout{justify-content:center;align-items:center;gap:0}.auth-host,#auth-mount{margin-inline:auto}}

.auth-root #verify-email-success-message{margin:0 0 18px}
.auth-root a{color:#ff6600}
.auth-root .google-terms-text,.auth-root .terms-privacy,.auth-root p.login-link{text-align:center}
.auth-root .verify-email-actions{display:grid;grid-template-columns:minmax(0,2fr) minmax(76px,1fr);gap:12px;margin-top:12px;align-items:stretch}
.auth-root .verify-email-actions button{float:none;width:100%;height:auto;min-height:56px;margin:0;padding:12px 10px;line-height:1.25;border-radius:10px;font-size:16px}

/* Accesso alle preferenze anche dalla pagina pubblica di autenticazione. */
.auth-cookie-footer{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 20px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));font-size:14px}
.auth-cookie-footer a,.auth-cookie-footer button{color:#ddd;text-decoration:none}
.auth-cookie-footer button{background:none;border:0;font:inherit;cursor:pointer;padding:8px 0}
.auth-cookie-footer a:hover,.auth-cookie-footer button:hover{text-decoration:underline;color:#fff}

/* Keep the eye centered on the input at every responsive field height. */
.auth-root .password-input-wrapper{display:grid;align-items:center}
.auth-root .password-input-wrapper input{padding-right:52px}
.auth-root .toggle-password{inset:0 2px 0 auto;align-self:center;display:grid;place-items:center;width:44px;height:44px;margin:auto 0;padding:0;line-height:1;transform:none;color:#d0d0d6}
.auth-root .toggle-password>span{display:grid;place-items:center;width:20px;height:20px}
.auth-root .toggle-password svg{display:block;flex-shrink:0}
.auth-root .toggle-password:hover,.auth-root .toggle-password[aria-pressed=true]{background:transparent;color:#ffad76}
.auth-root .continue-btn{background:#ff802e;color:#191a1d;border:1px solid #ff802e;min-height:46px;border-radius:10px}
.auth-root .continue-btn:hover{background:#ff9c5c}
.auth-root .google-signin-btn{background:#f1f1f3;color:#202124;min-height:46px;border:1px solid #f1f1f3;border-radius:10px}
.auth-root .google-signin-btn:hover{background:#fff}
