/* Login presentation only. Auth IDs, submit handlers and cloud hydration stay in index.html. */
#authGate{--login-navy:#0b2a5b;--login-blue:#1458e8;--login-purple:#6336e8;--login-teal:#079caa;overflow-x:hidden;overflow-y:auto;background:#f4f9ff;color:var(--login-navy)}
#authGate.show{display:block;padding:0}
#authGate .auth-box{display:flex;flex-direction:column;width:100%;max-width:620px;margin:0 auto;overflow:visible;border:0;border-radius:0;box-shadow:none;background:transparent}
#authGate .auth-brand-panel{position:relative;display:flex;align-items:center;justify-content:flex-start;flex-direction:column;min-height:0;height:300px;padding:calc(45px + env(safe-area-inset-top,0px)) 15px 0;background:#b4dcf9 url('kuwait-login-mobile.webp') center 48%/cover no-repeat;color:var(--login-navy);overflow:hidden}
#authGate .auth-brand-panel:after{content:"";position:absolute;inset:auto 0 0;height:54px;pointer-events:none;background:linear-gradient(transparent,#e9f7ff77)}
#authGate .auth-flag{position:absolute;top:calc(21px + env(safe-area-inset-top,0px));left:13px;width:74px;height:auto;filter:drop-shadow(0 3px 5px #15304c45);transform:rotate(-5deg)}
#authGate .auth-national{position:absolute;top:calc(24px + env(safe-area-inset-top,0px));right:15px;display:grid;gap:1px;text-align:center;line-height:1.12;text-shadow:0 1px 10px #fff9}
#authGate .auth-national strong{font-size:clamp(22px,7vw,31px);font-weight:800;letter-spacing:-.8px}
#authGate .auth-national span{font-size:clamp(9px,2.7vw,12px);font-weight:700}
#authGate .auth-brand-identity{position:relative;z-index:1;display:flex;align-items:center;flex-direction:column;text-align:center;width:min(66%,245px);text-shadow:0 1px 12px #fff}
#authGate .auth-brand-identity img{display:block;width:88px;height:88px;object-fit:contain;border-radius:21px;box-shadow:0 6px 19px #0c367c32}
#authGate .auth-brand-identity h1{margin:8px 0 -1px;color:var(--login-navy);font-size:30px;line-height:1.12;font-weight:800;white-space:nowrap;letter-spacing:-.7px}
#authGate .auth-brand-identity p{margin:0;color:var(--login-teal);font-size:15px;line-height:1.3;font-weight:800;white-space:nowrap}
#authGate .auth-kuwait-line{display:block;width:97px;height:4px;margin-top:11px;border-radius:8px;background:linear-gradient(90deg,#007a3d 0 35%,#101418 35% 68%,#ce1126 68%)}
#authGate .auth-form-panel{position:relative;z-index:2;width:calc(100% - 28px);margin:-30px auto 0;padding:23px 21px 20px;border:1px solid #fff;border-radius:30px 30px 25px 25px;background:linear-gradient(160deg,#ffffffed,#fafdfffa);box-shadow:0 12px 36px #17478019;text-align:center}
#authGate .auth-form-heading h2{margin:0 0 2px;color:var(--login-navy);font-size:23px;line-height:1.35;font-weight:800}
#authGate .auth-form-heading p{margin:0 0 15px;color:#647590;font-size:12px;line-height:1.45}
#authGate .auth-box label{color:#304566}
#authGate #authCredentialsWrap>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0;padding:0}
#authGate .auth-field{margin-bottom:10px}
#authGate .auth-box input:not([type=checkbox]){height:52px;min-height:52px;width:100%;border:1.5px solid #d4e0f3;border-radius:15px;background:#fff;font-size:15px;font-weight:600;color:var(--login-navy);box-shadow:0 2px 8px #14345d05}
#authGate .auth-box input:not([type=checkbox])::placeholder{color:#7787a4;opacity:1}
#authGate #authEmail,#authGate #authPassword{direction:ltr;text-align:right}
#authGate #authEmail{padding:12px 15px 12px 53px}
#authGate #authPassword{padding:12px 43px 12px 55px}
#authGate .auth-field>svg{position:absolute;left:18px;right:auto;top:15px;width:22px;height:22px;color:#435982}
#authGate .auth-field:has(#authPassword)>svg{right:17px;left:auto;width:18px;height:18px;top:17px;color:#7486a5}
#authGate .password-toggle{position:absolute;left:5px;right:auto;top:4px;display:grid;place-items:center;width:44px;min-height:44px;padding:0;border-radius:12px;font-size:0;color:#435982}
#authGate .password-toggle:before{content:"";display:block;width:23px;height:23px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23435982' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.7-6 10-6 10 6 10 6-3.7 6-10 6-10-6-10-6z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}
#authGate .password-toggle[aria-pressed=true]:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23435982' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3 21 21M10 6.3A11 11 0 0 1 12 6c6.3 0 10 6 10 6a15 15 0 0 1-3.2 3.5M6.1 6.8C3.5 8.7 2 12 2 12s3.7 6 10 6a10 10 0 0 0 4-.8'/%3E%3C/svg%3E")}
#authGate .remember-row{display:flex;align-items:center;gap:8px;margin:1px 0 0;color:var(--login-navy);font-size:13px}
#authGate .remember-row label{font-size:13px;font-weight:700;color:var(--login-navy)}
#authGate .remember-row input{width:19px;height:19px;min-height:19px;accent-color:var(--login-purple);opacity:1}
#authGate .remember-row small{display:none}
#authGate #authSubmit,#authGate #authModeToggle{position:relative;width:100%;min-height:52px;border-radius:16px;font-size:16px;font-weight:800;line-height:1.2}
#authGate #authSubmit{margin-top:13px!important;padding:10px 55px;background:linear-gradient(105deg,#1756dc,#4d4de9 56%,#8442ed);color:white;box-shadow:0 9px 19px #3b43c02b}
#authGate #authSubmit:hover{background:linear-gradient(105deg,#144ac6,#4242d6 56%,#7436db)}
#authGate #authSubmit:before{content:"";position:absolute;left:13px;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;background:#ffffff27 center/19px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E")}
#authGate #authSubmit:disabled:before{animation:none;border:0}
#authGate #authModeToggle{margin-top:8px!important;padding:10px 49px;border:1.5px solid #6755f6;background:#fff;color:#5b3ce0}
#authGate #authModeToggle:hover{background:#f3f1ff;border-color:#5b3ce0}
#authGate #authModeToggle:before{content:"";position:absolute;left:15px;top:50%;transform:translateY(-50%);width:26px;height:26px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b3ce0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='8' r='3'/%3E%3Cpath d='M4 21v-2a6 6 0 0 1 12 0v2M19 8v8m-4-4h8'/%3E%3C/svg%3E")}
#authGate #authStatus{margin:10px 0 0;padding:9px 12px;background:#eff5ff;color:var(--login-navy);text-align:right;font-size:12px}
#authGate #authStatus[data-tone=error]{background:#fff0f3;color:#ad3450!important}
#authGate #authCloudRetry[hidden]{display:none!important}
#authGate .auth-safe-note{display:flex;align-items:center;justify-content:center;gap:13px;margin:12px 0 0;padding:13px;border:0;border-radius:15px;background:#e8f3ff;color:var(--login-navy);text-align:right}
#authGate .auth-safe-note svg{width:27px;height:27px;color:#623dee}
#authGate .auth-safe-note strong,#authGate .auth-safe-note small{display:block}
#authGate .auth-safe-note strong{font-size:13px;line-height:1.2}
#authGate .auth-safe-note small{font-size:10px;color:#72839e;line-height:1.5}
#authGate .auth-bottom{width:min(100%,620px);min-height:95px;margin:0 auto;padding:12px 15px max(15px,env(safe-area-inset-bottom,0px));background:url('kuwait-skyline-light.svg') center bottom/100% auto no-repeat;text-align:center;color:var(--login-navy)}
#authGate .auth-bottom p{margin:0 0 28px;font-size:15px;color:#0b2a5b}
#authGate .auth-bottom p:first-letter{color:#0aa3b0}
#authGate .auth-bottom small{font-size:10px;color:#7183a5}
#authGate #authNameWrap,#authGate #authSubjectWrap{text-align:right}
#authGate #authNameWrap label,#authGate #authSubjectWrap label{margin:5px 0 2px}
#authGate #authNameWrap input,#authGate #authSubjectWrap input{direction:rtl;text-align:right}
@media(max-width:374px){#authGate .auth-brand-panel{height:280px;padding-top:calc(42px + env(safe-area-inset-top,0px))}#authGate .auth-brand-identity img{width:78px;height:78px}#authGate .auth-brand-identity h1{font-size:27px}#authGate .auth-form-panel{padding:20px 17px 18px}#authGate .auth-form-heading h2{font-size:21px}#authGate .auth-national strong{font-size:22px}}
@media(min-width:375px) and (max-width:379px){#authGate .auth-brand-panel{height:285px}#authGate .auth-bottom p{margin-bottom:14px}}
@media(min-width:430px) and (max-width:699px){#authGate .auth-brand-panel{height:320px}#authGate .auth-brand-identity img{width:99px;height:99px}#authGate .auth-brand-identity h1{font-size:33px}#authGate .auth-form-panel{padding:28px 28px 24px}}
@media(min-width:700px) and (max-width:899px){#authGate.show{padding:30px 20px}#authGate .auth-box{max-width:680px;border-radius:30px;overflow:hidden;box-shadow:0 22px 60px #12345b1b}#authGate .auth-brand-panel{height:300px;background-position:center 56%}#authGate .auth-form-panel{width:100%;margin:0;border:0;border-radius:0;padding:32px 70px}#authGate .auth-bottom{max-width:680px}}
@media(min-width:900px){#authGate.show{display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px}#authGate .auth-box{display:grid;grid-template-columns:1fr 1fr;max-width:1080px;min-height:620px;border:1px solid #e1ebf8;border-radius:32px;overflow:hidden;background:white;box-shadow:0 24px 70px #12345b20}#authGate .auth-brand-panel{grid-column:2;grid-row:1;height:auto;min-height:620px;padding-top:115px;background-image:url('kuwait-mobile-panorama.webp');background-position:31% center}#authGate .auth-brand-identity img{width:112px;height:112px}#authGate .auth-brand-identity h1{font-size:38px}#authGate .auth-brand-identity p{font-size:18px}#authGate .auth-national{right:24px;top:28px}#authGate .auth-flag{left:24px;top:28px;width:92px}#authGate .auth-form-panel{grid-column:1;grid-row:1;width:auto;margin:0;padding:65px 55px;display:flex;flex-direction:column;justify-content:center;border:0;border-radius:0;box-shadow:none;background:white}#authGate .auth-form-heading h2{font-size:27px}#authGate .auth-form-heading p{font-size:14px;margin-bottom:25px}#authGate .auth-box input:not([type=checkbox]){height:56px}#authGate .auth-bottom{max-width:1080px;background-size:65% auto}}
