/* AIMS H1: login only; original dark background. */

#loginScreen {font-family:Arial,Helvetica,sans-serif;color:#173c49;container-type:inline-size;width:100%;background:#fff;line-height:1.45}
#loginScreen * {box-sizing:border-box}
#loginScreen h1,#loginScreen h2,#loginScreen p {margin:0}
#loginScreen .h1-masthead {display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;padding:16px 34px;background:#fff;border-bottom:1px solid #dce8ea}
#loginScreen .h1-official {position:relative;overflow:hidden;height:62px}
#loginScreen .h1-official img {position:absolute;width:414.5px;max-width:none;height:74px;top:-5px}
#loginScreen .h1-official.h1-enas {width:146px;justify-self:start}
#loginScreen .h1-enas img {left:-6px}
#loginScreen .h1-official.h1-regione {width:126px;justify-self:end}
#loginScreen .h1-regione img {left:-289px}
#loginScreen .h1-brand {display:flex;align-items:center;gap:12px}
#loginScreen .h1-brand-mark {width:42px;height:48px;flex:none}
#loginScreen .h1-brand-mark svg {width:100%;height:100%}
#loginScreen .h1-brand-mark path:first-child {fill:none;stroke:#16848b;stroke-width:2.3}
#loginScreen .h1-brand-mark .logo-wave {fill:none;stroke:#3bb6c0;stroke-width:2.2;stroke-linecap:round}
#loginScreen .h1-brand-eyebrow {font-size:10px;letter-spacing:.14em;font-weight:700;color:#497780}
#loginScreen .h1-brand-name {display:block;font-size:23px;line-height:1.2;letter-spacing:.02em;color:#123849;margin:3px 0}
#loginScreen .h1-brand-subtitle {font-size:11px;color:#657f87;display:block}
#loginScreen .h1-main {display:grid;grid-template-columns:minmax(0,1.52fr) minmax(310px,1fr);min-height:440px}
#loginScreen .h1-hero {position:relative;background:radial-gradient(ellipse at 10% 15%,#164b5d 0%,#0b3447 48%,#082a3c 100%);color:#f1fbfc;padding:32px 38px 25px;display:flex;flex-direction:column;overflow:hidden}
#loginScreen .h1-eyebrow {font-size:10px;letter-spacing:.19em;color:#79d8cf;font-weight:700}
#loginScreen h1 {font-size:clamp(28px,3.5cqw,52px);line-height:1.11;letter-spacing:-.035em;font-weight:700;margin:12px 0 14px;max-width:720px;text-wrap:balance}
#loginScreen .h1-description {font-size:13px;line-height:1.65;color:#bdd4dc;max-width:650px}
#loginScreen .h1-machine {position:relative;flex:1;display:flex;align-items:center;justify-content:center;min-height:160px;margin:4px -10px 0}
#loginScreen .h1-machine>svg {display:block;width:100%;height:clamp(155px,17cqw,300px);overflow:visible}
#loginScreen .h1-functions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:12px;row-gap:16px;padding-top:16px;border-top:1px solid #2e5362;margin-top:4px}
#loginScreen .h1-function {display:flex;align-items:center;gap:8px;color:#e2f1f3;font-size:12px;min-width:0}
#loginScreen .h1-function svg {width:17px;height:17px;color:#79d8cf;flex:none;stroke-width:1.6}
#loginScreen .h1-access {background:#f4f8f8;display:flex;align-items:center;justify-content:center;padding:30px 32px;border-left:1px solid #d8e5e6}
#loginScreen .h1-access-inner {width:100%;max-width:330px}
#loginScreen .h1-access-status {display:flex;align-items:center;gap:7px;color:#547a79;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;margin-bottom:22px}
#loginScreen .h1-access-status i {display:block;width:6px;height:6px;background:#299a83;border-radius:50%}
#loginScreen .h1-access .h1-eyebrow {color:#16827c;font-size:10px}
#loginScreen h2 {font-size:28px;line-height:1.12;letter-spacing:-.035em;margin:7px 0 12px;color:#163a49}
#loginScreen .h1-access-description {font-size:12px;line-height:1.6;color:#657d84;margin-bottom:22px}
#loginScreen .h1-fields {display:grid;gap:14px}
#loginScreen label {display:grid;gap:7px;font-size:11px;font-weight:700;color:#34535e}
#loginScreen input {width:100%;min-width:0;height:44px;border:1px solid #cadcde;background:#fff;border-radius:7px;padding:0 12px;font-family:inherit;font-size:16px;color:#183e4b;opacity:1}
#loginScreen input::placeholder {color:#8da2a9;font-size:13px}
#loginScreen .h1-enter {display:flex;align-items:center;justify-content:space-between;border:0;border-radius:7px;min-height:45px;background:#0b8586;color:white;font-family:inherit;font-weight:700;font-size:13px;padding:0 15px;margin-top:4px}
#loginScreen .h1-enter:hover {background:#087578}
#loginScreen .h1-enter svg {width:17px;height:17px}
#loginScreen .h1-trust {border-top:1px solid #dce7e8;margin-top:22px;padding-top:15px;display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#6b8289}
#loginScreen .h1-trust strong {display:block;font-size:11px;font-weight:600;color:#42636e;margin-bottom:3px}
#loginScreen .h1-security {font-size:10px;color:#71878d;line-height:1.5;margin-top:14px}
#loginScreen .feedback {font-size:12px;color:#086c70;margin-top:12px}
#loginScreen .feedback:empty {display:none}
#loginScreen .h1-footer {background:#fff;padding:17px 34px;display:flex;justify-content:space-between;align-items:center;gap:24px;border-top:1px solid #dce8ea}
#loginScreen .h1-footer strong {display:block;font-size:12px;font-weight:600;color:#36555f}
#loginScreen .h1-footer p,#loginScreen .h1-footer a {font-size:11px;color:#72878e;margin-top:3px;display:block;text-decoration:none}
#loginScreen .h1-credit {text-align:right}
#loginScreen .h1-credit a {color:#17858a}
#loginScreen .h1-credit a:hover {text-decoration:underline}
#loginScreen .h1-scene-grid { fill: none; stroke: #8bcbd0; stroke-width: .7; opacity: .085; }
#loginScreen .h1-scene-pipe-outline { fill: none; stroke: #061a27; stroke-width: 29; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
#loginScreen .h1-scene-pipe { fill: none; stroke: url(#waterFlow); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; opacity: .84; filter: url(#softGlow); stroke-dasharray: 10 12;  }
#loginScreen .h1-scene-pump { fill: url(#machineMetal); stroke: #7bddda; stroke-width: 3; }
#loginScreen .h1-scene-pump-ring { fill: rgba(6, 31, 43, .72); stroke: #67ced3; stroke-width: 2; }
#loginScreen .h1-scene-impeller { fill: #70ddcb; opacity: .92; transform-origin: 376px 165px;  }
#loginScreen .h1-scene-shaft { stroke: #b1e9e5; stroke-width: 8; stroke-linecap: round; }
#loginScreen .h1-scene-motor { fill: url(#machineMetal); stroke: #6fc5cc; stroke-width: 2.5; }
#loginScreen .h1-scene-motor-lines { fill: none; stroke: #9bdcdf; stroke-width: 2; opacity: .42; }
#loginScreen .h1-scene-sensor { fill: #84efd1; filter: url(#softGlow);  }
#loginScreen .h1-scene-signal { fill: none; stroke: #85ebd7; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .68; }
#loginScreen .h1-scene-water-back { fill: #1d8193; opacity: .28; }
#loginScreen .h1-scene-water-front { fill: #29a4b4; opacity: .2; }
#loginScreen .scene-metric {
  position: absolute;
  min-width: 90px;
  padding: 8px 10px;
  border: 1px solid rgba(127, 222, 218, .2);
  border-radius: 10px;
  background: rgba(4, 28, 40, .78);
  box-shadow: 0 10px 22px rgba(0, 10, 18, .16);
  backdrop-filter: blur(7px);
}
#loginScreen .scene-metric { display: none; }
@media (min-width:1200px){
#loginScreen .h1-main {min-height:calc(56.25cqw - 166px)}
#loginScreen .h1-hero {padding:42px 5cqw 32px}
#loginScreen .h1-description {font-size:16px}
#loginScreen .h1-function {font-size:14px}
#loginScreen .h1-masthead,#loginScreen .h1-footer {padding-left:5cqw;padding-right:5cqw}
}
@media (min-width:651px) and (max-width:850px){
#loginScreen .h1-masthead {padding:14px 20px;gap:12px}
#loginScreen .h1-brand {gap:7px}
#loginScreen .h1-brand-subtitle {font-size:10px}
#loginScreen .h1-brand-mark {width:32px}
#loginScreen .h1-brand-name {font-size:21px}
#loginScreen .h1-hero {padding:26px 22px 22px}
#loginScreen .h1-access {padding:26px 22px}
#loginScreen .h1-main {grid-template-columns:minmax(0,1.2fr) minmax(275px,1fr)}
#loginScreen .h1-functions {grid-template-columns:1fr 1fr;gap:13px 8px}
}
@media (max-width:650px){
#loginScreen .h1-masthead {grid-template-columns:1fr 1fr;padding:14px 20px;gap:14px}
#loginScreen .h1-brand {grid-column:1/-1;grid-row:2;justify-self:center;border-top:1px solid #e7edef;padding-top:14px;width:100%;justify-content:center}
#loginScreen .h1-official.h1-regione {grid-column:2;grid-row:1}
#loginScreen .h1-main {grid-template-columns:1fr}
#loginScreen .h1-hero {padding:28px 24px 25px}
#loginScreen h1 {font-size:34px}
#loginScreen .h1-functions {grid-template-columns:1fr 1fr}
#loginScreen .h1-description {font-size:14px}
#loginScreen .h1-machine>svg {height:auto}
#loginScreen .h1-access {padding:30px 24px;border-left:0}
#loginScreen .h1-access-description {font-size:14px}
#loginScreen .h1-footer {padding:20px 24px;flex-direction:column;gap:14px;text-align:center}
#loginScreen .h1-credit {text-align:center}
}
#loginScreen {
 position:relative;isolation:isolate;overflow:hidden;padding:28px 24px;
 background:radial-gradient(circle at 12% 13%,rgba(41,165,180,.28),transparent 29%),radial-gradient(circle at 82% 87%,rgba(33,118,139,.24),transparent 28%),linear-gradient(138deg,#041724 0%,#082638 48%,#0b3447 100%);
}
#loginScreen::before {
 content:"";position:absolute;inset:0;z-index:-2;opacity:.27;
 background-image:linear-gradient(rgba(112,211,216,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(112,211,216,.055) 1px,transparent 1px);
 background-size:72px 72px;mask-image:linear-gradient(to bottom,#000,transparent 82%);
}
#loginScreen .h1-ambient {position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
#loginScreen .h1-ambient i {position:absolute;display:block;width:320px;height:320px;border:1px solid rgba(107,221,224,.16);border-radius:50%}
#loginScreen .h1-ambient i::before,#loginScreen .h1-ambient i::after {content:"";position:absolute;border:1px solid rgba(107,221,224,.12);border-radius:inherit}
#loginScreen .h1-ambient i::before {inset:38px}
#loginScreen .h1-ambient i::after {inset:88px}
#loginScreen .h1-ambient i:nth-child(1) {left:-135px;top:-120px}
#loginScreen .h1-ambient i:nth-child(2) {right:-160px;bottom:-145px;width:410px;height:410px}
#loginScreen .h1-ambient i:nth-child(3) {right:23%;top:-250px;width:500px;height:500px;opacity:.45}
#loginScreen .h1-page-frame {border:1px solid rgba(170,235,235,.22);border-radius:22px;overflow:hidden;background:rgba(8,40,56,.88);box-shadow:0 36px 90px rgba(0,10,18,.42)}
#loginScreen .h1-hero {background:linear-gradient(125deg,rgba(11,63,80,.84),rgba(5,35,49,.55)),radial-gradient(circle at 72% 64%,rgba(65,200,207,.18),transparent 37%)}
@media(max-width:650px){#loginScreen {padding:14px 10px}#loginScreen .h1-page-frame {border-radius:16px}}


#loginScreen {min-height:100vh;min-height:100svh;display:flex;align-items:center;justify-content:center;padding:32px;container-type:normal}
#loginScreen[hidden] {display:none!important}
#loginScreen .h1-page-frame {width:min(1600px,100%);container-type:inline-size}
#loginScreen .h1-brand {flex-direction:column;gap:4px;text-align:center;justify-self:center}
#loginScreen .h1-brand-mark {width:30px;height:36px}
#loginScreen .h1-brand-eyebrow,#loginScreen .h1-brand-name,#loginScreen .h1-brand-subtitle {text-align:center}
#loginScreen .h1-masthead {grid-template-columns:1fr minmax(260px,auto) 1fr;padding-top:12px;padding-bottom:12px}
#loginScreen .h1-main {margin:0;width:auto}
#loginScreen .password-control {position:relative;display:block}
#loginScreen .password-control input {padding-right:76px}
#loginScreen #togglePassword {position:absolute;right:7px;top:50%;transform:translateY(-50%);min-height:38px;padding:6px 8px;background:transparent;color:#28727b;border:0;border-radius:6px;font:600 11px Arial,sans-serif}
#loginScreen input:focus-visible,#loginScreen button:focus-visible,#loginScreen a:focus-visible {outline:3px solid #26a7ac;outline-offset:3px}
#loginScreen .h1-enter:disabled {opacity:.7;cursor:wait}
#loginScreen .h1-credit a {overflow-wrap:anywhere}
@media(min-width:1200px) {#loginScreen .h1-main {min-height:calc(56.25cqw - 200px)}}
@media(max-width:650px) {#loginScreen {padding:12px 8px}#loginScreen .h1-masthead {grid-template-columns:1fr 1fr}#loginScreen .h1-brand {grid-column:1/-1}}
