/* MatchLab v38 public/auth pages — same design system as approved app references */
:root{--v38-font:"Segoe UI Variable Text","Segoe UI",Arial,sans-serif;--v38-bg:#020814;--v38-panel:#061221;--v38-line:#17324f;--v38-blue:#118cff;--v38-text:#f5f8ff;--v38-muted:#8e9fb4}
body.ml-v38,body.ml-v38 *{font-family:var(--v38-font)!important;font-variation-settings:normal!important}
body.ml-v38{background:radial-gradient(circle at 58% 0,rgba(21,90,197,.15),transparent 32%),linear-gradient(180deg,#020814,#031020)!important;color:var(--v38-text)!important;-webkit-font-smoothing:antialiased}
body.ml-v38 .ml-fixed-brand,body.ml-v38 .auth-side-brand,body.ml-v38 .landing-ref-brand,body.ml-v38 .brand.ml-fixed-brand{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;background:#020916!important;border:1px solid rgba(105,143,194,.20)!important;border-radius:12px!important;padding:9px 11px!important;min-height:58px!important;overflow:visible!important;color:#fff!important}
body.ml-v38 .ml-fixed-brand img,body.ml-v38 .auth-side-brand img,body.ml-v38 .landing-ref-brand img,body.ml-v38 .brand.ml-fixed-brand img{display:block!important;width:205px!important;max-width:100%!important;height:auto!important;max-height:48px!important;object-fit:contain!important;filter:none!important;opacity:1!important;visibility:visible!important}

/* login follows generated access screen */
body.ml-v38.auth-dashboard-body{min-height:100vh!important;overflow-x:hidden!important}
body.ml-v38 .auth-app-shell{min-height:100vh!important;display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(430px,.72fr)!important;grid-template-rows:auto 1fr!important;padding:24px 30px 30px!important;gap:22px 26px!important}
body.ml-v38 .auth-sidebar-ref{display:none!important}
body.ml-v38 .auth-dashboard-main{display:contents!important}
body.ml-v38 .auth-dashboard-topbar{grid-column:1/-1!important;display:flex!important;justify-content:space-between!important;align-items:center!important;margin:0!important;padding:0!important;min-height:58px!important}
body.ml-v38 .auth-dashboard-topbar>div:first-child{display:flex!important;align-items:center!important}
body.ml-v38 .auth-dashboard-topbar>div:first-child h2{font-size:0!important;margin:0!important}
body.ml-v38 .auth-dashboard-topbar>div:first-child h2:before{content:'MATCH LAB';font-size:0!important}
body.ml-v38 .auth-dashboard-topbar>div:first-child:before{content:'';display:block;width:205px;height:52px;background:#020916 center/contain no-repeat;border:1px solid rgba(105,143,194,.18);border-radius:12px}
body.ml-v38 .auth-dashboard-topbar>div:first-child p{display:none!important}
body.ml-v38 .auth-top-actions{margin-left:auto!important;display:flex!important;gap:10px!important}.auth-search-ghost{display:none!important}
body.ml-v38 .auth-icon-square{width:44px!important;height:44px!important;border-radius:10px!important;border:1px solid rgba(105,143,194,.23)!important;background:#040e1d!important;display:grid!important;place-items:center!important;color:#e9f1fb!important}
body.ml-v38 .auth-dashboard-content{grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(0,1.30fr) minmax(430px,.70fr)!important;gap:26px!important;align-items:stretch!important}
body.ml-v38 .auth-reference-stage{position:relative!important;min-height:740px!important;padding:28px!important;border:1px solid rgba(91,128,178,.22)!important;border-radius:18px!important;background:radial-gradient(circle at 70% 20%,rgba(17,105,225,.13),transparent 36%),linear-gradient(180deg,#061426,#041020)!important;overflow:hidden!important}
body.ml-v38 .auth-reference-stage:before{content:'Match Lab';display:block;font-size:42px!important;font-weight:700!important;letter-spacing:-.04em!important;color:#fff!important;margin:0 0 8px!important}
body.ml-v38 .auth-reference-stage:after{content:'La piattaforma intelligente per analisi, performance e strategia.';position:absolute;left:28px;top:82px;color:#b2c0d0;font-size:14px;max-width:540px}
body.ml-v38 .auth-reference-heading{margin-top:76px!important;display:flex!important;gap:9px!important;align-items:center!important}.auth-reference-heading span{width:8px!important;height:8px!important;border-radius:50%!important;background:#118cff!important}.auth-reference-heading strong{font-size:16px!important}
body.ml-v38 .auth-reference-matches{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}.auth-reference-match{min-height:178px!important;padding:14px!important;border-radius:11px!important;border:1px solid rgba(96,132,180,.22)!important;background:#051221!important}.auth-reference-match.active{border-color:#118cff!important}.auth-reference-match small{display:inline-flex!important;min-height:27px!important;align-items:center!important;padding:0 9px!important;border-radius:999px!important;background:#101d30!important;font-size:9px!important}.auth-reference-match.active small{background:#0d7ef0!important}.auth-reference-match div{height:80px!important}.auth-team-orb{width:56px!important;height:56px!important;border-radius:50%!important;font-size:13px!important}.auth-reference-match strong{font-size:13px!important}.auth-reference-match p{font-size:10px!important;color:#91a3b9!important}
body.ml-v38 .auth-reference-kpis{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:12px!important;margin-top:15px!important}.auth-reference-kpis div{padding:15px!important;border-radius:11px!important;border:1px solid rgba(96,132,180,.18)!important;background:#051221!important}.auth-reference-kpis span{font-size:10px!important;color:#a1b0c2!important}.auth-reference-kpis strong{font-size:21px!important;margin-top:8px!important}.auth-reference-lower{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;margin-top:15px!important}.auth-reference-lower>div{padding:15px!important;border-radius:11px!important;border:1px solid rgba(96,132,180,.18)!important;background:#051221!important}.auth-reference-lower strong{font-size:13px!important}.auth-reference-lower p{font-size:10px!important;color:#91a3b9!important}
body.ml-v38 .auth-login-panel{display:flex!important;align-items:stretch!important}.auth-panel-inner{width:100%!important}.auth-panel-caption{margin-bottom:9px!important;color:#238fff!important;font-size:9px!important;letter-spacing:.12em!important}.auth-card{height:100%!important;padding:34px 36px!important;border-radius:18px!important;border:1px solid rgba(91,128,178,.22)!important;background:linear-gradient(180deg,#071528,#05101f)!important;box-shadow:none!important}.auth-card h1{font-size:34px!important;letter-spacing:-.04em!important;margin:10px 0 8px!important}.auth-card .lead{font-size:13px!important;color:#91a4ba!important}.field label{font-size:11px!important;color:#a6b4c6!important}.field input{height:50px!important;border-radius:9px!important;border:1px solid rgba(107,144,194,.25)!important;background:#06111f!important;color:#f3f8ff!important;font-size:13px!important;padding:0 13px!important}.auth-card .btn{min-height:50px!important;border-radius:9px!important;background:linear-gradient(180deg,#168eff,#0869dd)!important}.social-btn{min-height:47px!important;border-radius:9px!important}.switch,.auth-note,.legal-summary,.legal-check{font-size:10px!important}.auth-panel-foot{font-size:10px!important;color:#71869f!important;text-align:center!important;margin-top:11px!important}

/* onboarding + landing same geometry */
body.ml-v38 .onboard{max-width:1180px!important}.onboard-head .ml-fixed-brand{min-width:220px!important}.intro h1{font-size:54px!important;letter-spacing:-.055em!important}.intro p{font-size:15px!important}.choice-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important}.choice{border-radius:12px!important;background:#061221!important;border-color:rgba(99,137,188,.20)!important}.choice.selected{border-color:#118cff!important;background:linear-gradient(180deg,#082850,#06172d)!important}.search,.username-input{border-radius:9px!important;background:#06111f!important;border-color:rgba(99,137,188,.22)!important}.save{background:linear-gradient(180deg,#168eff,#0869dd)!important;color:#fff!important;border-radius:9px!important}.actions{border-radius:13px!important;background:rgba(5,14,27,.94)!important}
body.ml-v38 .landing-ref-header{background:rgba(2,8,20,.9)!important;border-bottom:1px solid rgba(99,137,188,.12)!important}.landing-dashboard-preview{border-color:rgba(90,130,185,.22)!important;background:#051221!important}

@media(max-width:1050px){body.ml-v38 .auth-app-shell{grid-template-columns:1fr!important;padding:16px!important}.auth-dashboard-content{grid-template-columns:1fr!important}.auth-reference-stage{display:none!important}.auth-login-panel{max-width:580px!important;width:100%!important;margin:0 auto!important}.auth-dashboard-topbar{display:none!important}}
@media(max-width:620px){body.ml-v38 .auth-app-shell{padding:10px!important}.auth-card{padding:24px 18px!important}.auth-card h1{font-size:28px!important}.onboard .intro h1{font-size:40px!important}.choice-grid{grid-template-columns:1fr!important}}
body.ml-v38 .auth-top-brand{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;width:218px!important;height:58px!important;padding:7px 10px!important;border-radius:12px!important;background:#020916!important;border:1px solid rgba(105,143,194,.20)!important;text-decoration:none!important}
body.ml-v38 .auth-top-brand img{display:block!important;width:198px!important;height:auto!important;max-height:46px!important;object-fit:contain!important;opacity:1!important;visibility:visible!important}
body.ml-v38 .auth-dashboard-topbar>div:first-child:before{display:none!important}
