/* Login: two columns. Left: dusk gas-plant scene with ADNOC Gas message. Right: compact frosted card in the application palette: teal #078B87 · headings #183044 · body #536575 */
.login-root{display:block;height:auto;min-height:100vh;overflow:visible;background:#4A5E9C;font-family:'Inter','Segoe UI',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;color:#183044}
.login-root *{box-sizing:border-box}
.lg{position:relative;min-height:100vh;display:grid;grid-template-columns:1.2fr 1fr;align-items:center;padding:28px clamp(24px,5.4vw,96px) 28px clamp(24px,4.2vw,70px);gap:clamp(16px,3vw,56px);isolation:isolate;overflow:hidden}
.lg-bg{position:absolute;inset:0;z-index:-1;background:#4A5E9C url('../img/login-bg.jpg') 28% bottom/cover no-repeat}
.lg-hero{align-self:stretch;display:flex;flex-direction:column;justify-content:flex-start;padding-top:clamp(0px,1.2vh,16px);color:#fff}
.lg-adnoc{display:block;height:clamp(64px,10vh,104px);width:auto;align-self:flex-start;-webkit-mask-image:linear-gradient(90deg,transparent,#000 10px,#000 calc(100% - 10px),transparent),linear-gradient(180deg,transparent,#000 10px,#000 calc(100% - 10px),transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 10px,#000 calc(100% - 10px),transparent),linear-gradient(180deg,transparent,#000 10px,#000 calc(100% - 10px),transparent);mask-composite:intersect}
.lg-bar{display:block;width:70px;height:6px;border-radius:3px;background:#078B87;margin:clamp(28px,8vh,76px) 0 clamp(14px,2.6vh,26px)}
.lg-hero h2{font-size:clamp(38px,4.4vw,64px);line-height:1.05;margin:0 0 clamp(10px,1.8vh,20px);font-weight:800;letter-spacing:-.8px;text-shadow:0 2px 20px rgba(10,20,60,.35)}
.lg-hero p{font-size:clamp(16px,1.55vw,22px);line-height:1.55;max-width:470px;margin:0;color:rgba(255,255,255,.95);text-shadow:0 1px 14px rgba(10,20,60,.4)}

.lg-card{grid-column:2;justify-self:end;width:100%;max-width:clamp(420px,35vw,600px);padding:clamp(20px,3vh,30px) clamp(22px,2.4vw,32px) clamp(22px,3.2vh,32px);border-radius:26px;border:1px solid rgba(255,255,255,.7);
  background:rgba(255,255,255,.92);backdrop-filter:blur(22px) saturate(130%);-webkit-backdrop-filter:blur(22px) saturate(130%);
  box-shadow:0 24px 60px rgba(20,30,80,.28)}
.lg-logos{display:flex;align-items:center;gap:16px;margin:0 0 14px}
.lg-tile{display:inline-flex;align-items:center;justify-content:center;background:#fff;border-radius:8px;padding:3px 6px}
.lg-sigma{display:block;height:38px;width:auto}
.lg-vsep{width:1.5px;height:34px;background:#B9BFCC}
.lg-qt{display:block;height:34px;width:auto}
.lg-card h1{font-size:clamp(28px,2.6vw,40px);line-height:1.1;letter-spacing:-.6px;margin:0 0 6px;font-weight:800;color:#183044}
.lg-card h1 .wave{display:inline-block;font-size:.82em;transform-origin:70% 70%;animation:lgwave 2.4s ease-in-out 1 .6s}
@keyframes lgwave{0%,60%,100%{transform:rotate(0)}10%,30%{transform:rotate(14deg)}20%,40%{transform:rotate(-8deg)}50%{transform:rotate(10deg)}}
.lg-sub{margin:0 0 16px;font-size:clamp(13px,1.1vw,15.5px);color:#536575}
.lg-seg{display:grid;grid-template-columns:1.1fr 1fr;gap:8px;margin:0 0 14px}
.lg-seg button{display:flex;align-items:center;justify-content:center;gap:9px;height:46px;border:0;border-radius:11px;background:#fff;color:#183044;font:inherit;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 2px 8px rgba(30,40,90,.08);transition:.15s;white-space:nowrap}
.lg-seg button svg{flex:none;width:20px;height:20px}
.lg-seg button:hover{box-shadow:0 3px 10px rgba(30,40,90,.14)}
.lg-seg button.on{background:#078B87;color:#fff;box-shadow:0 4px 12px rgba(7,139,135,.3)}
.lg-seg button:focus-visible{outline:3px solid rgba(7,139,135,.55);outline-offset:2px}
.lg-field{display:block;margin-bottom:11px}
.lg-field>span{display:block;font-size:14px;font-weight:700;color:#183044;margin-bottom:6px}
.lg-input{display:flex;align-items:center;gap:12px;height:48px;padding:0 14px;border:1.5px solid #D6DAE3;border-radius:11px;background:#fff;color:#536575;transition:border-color .15s,box-shadow .15s}
.lg-input svg{flex:none;width:22px;height:22px}
.lg-input:focus-within{border-color:#078B87;box-shadow:0 0 0 4px rgba(7,139,135,.18);color:#066F6C}
.lg-input.bad{border-color:#D6453B;box-shadow:0 0 0 4px rgba(214,69,59,.14)}
.lg-input input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:15.5px;color:#14213D;height:100%}
.lg-input input::placeholder{color:#84939F}
.lg-input input[type=password]{letter-spacing:3px}
.lg-input input[type=password]::placeholder{letter-spacing:0}
.lg-eye{display:inline-flex;align-items:center;border:0;background:transparent;color:#536575;cursor:pointer;padding:5px;border-radius:50%}
.lg-eye:hover{color:#066F6C}
.lg-err{display:block;font-style:normal;font-size:12.5px;color:#B3261E;margin:6px 0 0 4px}
.lg-row{display:flex;justify-content:space-between;align-items:center;margin:4px 0 16px;font-size:14px}
.lg-check{display:inline-flex;align-items:center;gap:10px;cursor:pointer;color:#183044;user-select:none}
.lg-check input{position:absolute;opacity:0;width:0;height:0}
.lg-check i{width:26px;height:26px;border-radius:6px;border:1.5px solid #078B87;background:#fff;display:inline-grid;place-items:center;transition:.15s}
.lg-check input:checked+i{background:#078B87;border-color:#078B87}
.lg-check input:checked+i:after{content:"";width:11px;height:6px;border:3px solid #fff;border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-2px)}
.lg-check input:focus-visible+i{box-shadow:0 0 0 4px rgba(7,139,135,.3)}
.lg-link{color:#066F6C;font-weight:600;text-decoration:none} .lg-link:hover{text-decoration:underline}
.lg-note{display:flex;gap:8px;align-items:flex-start;background:#FFF3E3;border:1px solid #F7D3A5;color:#7A4A10;border-radius:10px;padding:9px 12px;font-size:13px;margin-bottom:12px} .lg-note svg{flex:none;margin-top:1px}
.lg-alert{display:flex;gap:9px;align-items:flex-start;background:#FDECEA;border:1px solid #F3C2BD;color:#8C2A22;border-radius:10px;padding:10px 12px;font-size:13.5px;margin-bottom:12px} .lg-alert svg{flex:none;margin-top:1px}
.lg-alert[hidden],.lg-note[hidden],.lg-err[hidden]{display:none}
.lg-alert.shake{animation:lgshake .4s}
@keyframes lgshake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
.lg-btn{position:relative;width:100%;height:56px;border:0;border-radius:11px;background:#078B87;color:#fff;font:inherit;font-size:20px;font-weight:700;cursor:pointer;box-shadow:0 8px 20px rgba(7,139,135,.34);transition:transform .1s,box-shadow .15s,background .15s}
.lg-btn:hover{background:#066F6C;box-shadow:0 10px 24px rgba(6,111,108,.44)} .lg-btn:active{transform:translateY(1px)}
.lg-btn:focus-visible{outline:3px solid rgba(24,48,68,.5);outline-offset:3px}
.lg-btn .spin{display:none;position:absolute;right:20px;top:50%;width:22px;height:22px;margin-top:-11px;border:3px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:lgspin .7s linear infinite}
.lg-btn.loading .spin{display:block} .lg-btn:disabled{opacity:.88;cursor:progress}
@keyframes lgspin{to{transform:rotate(360deg)}}

/* tablet and phone: hero text above, card below, centred over the scene */
@media (max-width:980px){
  .lg{grid-template-columns:1fr;align-items:start;padding:24px 18px 32px;gap:22px;justify-items:center}
  .lg-bg{background-position:20% bottom}
  .lg-hero{width:100%;max-width:560px}
  .lg-bar{margin:18px 0 12px} .lg-hero h2{font-size:34px} .lg-hero p{font-size:16px;max-width:none}
  .lg-card{grid-column:1;justify-self:center;max-width:520px}
}
@media (max-width:560px){
  .lg-seg{grid-template-columns:1fr}
  .lg-card{border-radius:22px}
}
@media (prefers-reduced-motion:reduce){.lg-btn,.lg-input,.lg-seg button{transition:none}.lg-alert.shake,.lg-card h1 .wave{animation:none}}
/* the app-wide heading colour must not reach the login hero */
.login-root .lg-hero h2{color:#fff}
.login-root .lg-card h1{color:#183044}
