/* ENJAZ AUTH REFERENCE MATCH V13
   Desktop composition tuned to the supplied 1536x1024 employee-login reference.
   Presentation-only overrides: keep PHP authentication handlers and form field names untouched. */
:root{
  --enjaz-gold:#f4b900;
  --enjaz-gold-2:#ffc21b;
  --enjaz-white:#fffefa;
  --enjaz-panel:rgba(18,17,17,.82);
  --enjaz-line:rgba(255,255,255,.66);
  --enjaz-font:"Noto Sans Arabic","Tajawal","Segoe UI",Tahoma,Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0;padding:0;overflow:hidden!important}
html{background:#08090b}
body.enjaz-auth-page{position:relative;width:100vw;height:100vh;height:100dvh;min-height:0;overflow:hidden!important;color:var(--enjaz-white);font-family:var(--enjaz-font);background:#08090b;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.auth-ambient{position:fixed;inset:0;z-index:0;background:#08090b;overflow:hidden}
.auth-ambient:before{content:"";position:absolute;inset:-1.8%;background:url("enjaz-auth-reference-background-v13.webp") center center/cover no-repeat;filter:blur(1.05px);transform:scale(1.018)}
.auth-ambient:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.38),rgba(0,0,0,.23) 52%,rgba(0,0,0,.40)),linear-gradient(0deg,rgba(0,0,0,.30),rgba(0,0,0,.19))}
.auth-stage{position:relative;z-index:1;isolation:isolate;width:100vw;height:100vh;height:100dvh;min-height:0;max-width:none;max-height:none;overflow:hidden;display:grid;grid-template-columns:minmax(0,.96fr) minmax(0,1fr);align-items:center;gap:clamp(28px,4.7vw,72px);padding:clamp(14px,2.3vh,26px) clamp(24px,5.35vw,82px) clamp(14px,2.3vh,26px) clamp(28px,8.85vw,136px);direction:ltr}
.auth-language-position{position:absolute;z-index:8;top:clamp(10px,1.7vh,18px);right:clamp(14px,2.2vw,30px);direction:ltr}
.auth-language{height:40px;min-width:82px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:3px 9px;border-radius:24px;background:rgba(6,7,8,.76);border:1px solid rgba(245,189,0,.82);color:#fff;position:relative;cursor:pointer;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.auth-globe{width:28px;height:28px;display:grid;place-items:center;flex:0 0 28px;border:1.4px solid var(--enjaz-gold);border-radius:50%;color:var(--enjaz-gold)}
.auth-globe svg{width:18px;height:18px}.auth-lang-code{font-size:14px;font-weight:800;letter-spacing:.02em;line-height:1}.auth-language select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.auth-story{grid-column:1;grid-row:1;direction:inherit;text-align:left;justify-self:stretch;align-self:center;width:100%;max-width:610px;min-width:0;padding:0;margin:0}
.auth-logo{display:block;width:min(100%,430px);height:auto;max-height:clamp(86px,12.5vh,130px);object-fit:contain;object-position:left center;margin:0 0 clamp(17px,2.45vh,25px);filter:drop-shadow(0 3px 10px rgba(0,0,0,.32))}
.auth-badge{display:inline-flex;align-items:center;justify-content:center;gap:13px;min-height:clamp(52px,6.0vh,63px);padding:6px clamp(19px,1.55vw,24px);border:1.6px solid var(--enjaz-gold);border-radius:17px;color:var(--enjaz-white);background:rgba(10,10,10,.55);font-size:clamp(18px,1.48vw,22px);font-weight:800;line-height:1.18;white-space:nowrap;box-shadow:inset 0 0 0 1px rgba(255,206,45,.08)}
.auth-badge svg{width:clamp(34px,3.1vw,44px);height:clamp(34px,3.1vw,44px);color:var(--enjaz-gold);flex:0 0 auto}
.auth-story h2{margin:clamp(21px,3.0vh,32px) 0 0;font-size:clamp(42px,3.55vw,56px);font-weight:850;line-height:1.08;letter-spacing:-.035em;color:#fff;max-width:610px;text-shadow:0 2px 12px rgba(0,0,0,.22)}
.story-main,.story-gold{display:block}.story-gold{color:var(--enjaz-gold);margin-top:2px}
.auth-rule{width:clamp(94px,7vw,108px);height:7px;border-radius:10px;background:var(--enjaz-gold);margin:clamp(14px,2.0vh,21px) 0 clamp(15px,2.35vh,24px);box-shadow:0 1px 6px rgba(244,185,0,.12)}
.auth-story-description{max-width:590px;margin:0;color:#fff;font-size:clamp(17px,1.42vw,21px);font-weight:600;line-height:1.48;text-shadow:0 2px 9px rgba(0,0,0,.72)}
.auth-features{list-style:none;margin:clamp(18px,2.4vh,25px) 0 0;padding:0;display:flex;flex-direction:column;gap:clamp(8px,1.15vh,12px)}
.auth-features li{display:flex;align-items:center;gap:clamp(13px,1.45vw,21px);color:#fff;font-size:clamp(17px,1.38vw,20px);font-weight:750;line-height:1.28;text-shadow:0 2px 8px rgba(0,0,0,.78)}
.auth-feature-icon{width:clamp(54px,4.4vw,64px);height:clamp(54px,6.0vh,62px);flex:0 0 clamp(54px,4.4vw,64px);border-radius:16px;background:rgba(128,87,14,.42);border:1px solid rgba(245,189,0,.29);display:grid;place-items:center;color:var(--enjaz-gold);box-shadow:0 5px 16px rgba(0,0,0,.20)}
.auth-feature-icon svg{width:clamp(31px,2.85vw,39px);height:clamp(31px,2.85vw,39px)}
.auth-panel{grid-column:2;grid-row:1;justify-self:end;align-self:center;transform:translateY(20px);width:min(100%,636px);max-width:636px;max-height:calc(100dvh - 32px);min-width:0;overflow:hidden;direction:inherit;text-align:start;padding:clamp(46px,5.7vh,62px) clamp(36px,3.3vw,50px);border:1.45px solid var(--enjaz-line);border-radius:27px;background:var(--enjaz-panel);box-shadow:0 26px 72px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.09);backdrop-filter:blur(18px) saturate(116%);-webkit-backdrop-filter:blur(18px) saturate(116%)}
.auth-panel-head{text-align:center;margin:0 0 clamp(27px,3.6vh,40px)}
.auth-panel-head h1{margin:0;color:#fff;font-size:clamp(36px,3.0vw,47px);font-weight:850;line-height:1.2;letter-spacing:-.025em}
.auth-panel-head p{margin:9px 0 0;color:rgba(255,255,255,.94);font-size:clamp(16px,1.28vw,19px);font-weight:450;line-height:1.48}
.auth-form{display:flex;flex-direction:column;gap:clamp(13px,1.9vh,20px)}
.auth-field{width:100%;min-width:0}
.auth-field>label{display:block;margin:0 0 8px;color:#fff;font-size:clamp(16px,1.18vw,18px);font-weight:750;line-height:1.25}
.auth-input-wrap{position:relative;display:flex;align-items:center;width:100%;min-height:clamp(54px,6.1vh,63px);border:1.25px solid rgba(255,255,255,.62);border-radius:13px;background:rgba(8,8,9,.35);transition:border-color .18s,box-shadow .18s}
.auth-input-wrap:focus-within{border-color:var(--enjaz-gold);box-shadow:0 0 0 3px rgba(245,189,0,.13)}
.auth-field-icon{width:25px;height:25px;flex:0 0 25px;margin-inline:16px;color:#fff}
.auth-input{width:100%;height:clamp(52px,5.9vh,61px);min-width:0;border:0!important;outline:0;background:transparent!important;color:#fff!important;box-shadow:none!important;font-family:inherit;font-size:clamp(17px,1.28vw,19px);font-weight:500;padding:0 8px;text-align:start;direction:ltr}
.auth-input::placeholder{color:rgba(255,255,255,.72)}
.auth-password-toggle{width:44px;height:44px;flex:0 0 44px;margin-inline:7px;border:0;background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer}.auth-password-toggle svg{width:23px;height:23px}
.auth-forgot{margin-top:0;text-align:start;font-size:clamp(16px,1.16vw,18px);font-weight:750}.auth-forgot a{color:var(--enjaz-gold);text-decoration:none}.auth-forgot a:hover{text-decoration:underline}
.auth-consent{display:flex;align-items:center;gap:11px;color:#fff;font-size:clamp(15px,1.08vw,17px);line-height:1.4;margin-top:clamp(6px,1.0vh,11px)}
.auth-consent input{appearance:none;width:32px;height:32px;flex:0 0 32px;margin:0;border:1.6px solid rgba(255,255,255,.78);border-radius:8px;background:rgba(0,0,0,.24);cursor:pointer;position:relative}
.auth-consent input:checked{background:var(--enjaz-gold);border-color:var(--enjaz-gold)}.auth-consent input:checked:after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;color:#111;font-size:21px;font-weight:900}
.auth-consent label{cursor:pointer}.auth-consent a{color:var(--enjaz-gold);font-weight:750;text-underline-offset:3px}
.auth-submit{width:100%;height:clamp(64px,7.4vh,76px);min-height:60px;border:0;border-radius:15px;background:linear-gradient(110deg,#ffca20,#f0ad00);color:#111;display:flex;align-items:center;justify-content:center;gap:17px;font-family:inherit;font-size:clamp(20px,1.7vw,25px);font-weight:850;cursor:pointer;box-shadow:0 8px 24px rgba(218,156,0,.22);transition:filter .18s,transform .18s}
.auth-submit:hover{filter:brightness(1.04);transform:translateY(-1px)}.auth-submit svg{width:27px;height:27px;flex:0 0 27px}
.auth-footer{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px clamp(12px,1.45vw,20px);margin-top:clamp(12px,1.7vh,18px);font-size:clamp(12px,.94vw,14px);font-weight:650;line-height:1.35}.auth-footer a{color:var(--enjaz-gold);text-decoration:none}.auth-footer a:hover{text-decoration:underline}
/* The supplied employee-login reference has no footer links inside its glass card. */
body.role-staff.page-login .auth-footer{display:none!important}
.auth-error{margin:0 0 10px;padding:8px 11px;border:1px solid rgba(255,115,115,.5);background:rgba(120,15,15,.25);border-radius:9px;color:#ffe4e4;font-size:13px;line-height:1.35}
.auth-password-hint{margin:-5px 0 0;color:rgba(255,255,255,.84);font-size:12px;line-height:1.3}
.auth-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.register-form{gap:clamp(8px,1vh,11px)}
.page-register .auth-panel{padding-top:clamp(22px,3.2vh,34px);padding-bottom:clamp(22px,3.2vh,34px);transform:none}
.page-register .auth-panel-head{margin-bottom:clamp(12px,1.6vh,18px)}.page-register .auth-panel-head h1{font-size:clamp(28px,2.3vw,36px)}
.page-register .auth-input-wrap{min-height:clamp(44px,4.8vh,51px)}.page-register .auth-input{height:clamp(42px,4.6vh,49px)}.page-register .auth-footer{margin-top:10px}
.auth-access-options{display:flex;flex-direction:column;gap:clamp(10px,1.5vh,16px)}
.auth-access-option{display:grid;grid-template-columns:54px minmax(0,1fr) 22px;align-items:center;gap:14px;padding:clamp(12px,1.8vh,18px) 16px;border:1px solid rgba(255,255,255,.32);border-radius:15px;background:rgba(255,255,255,.06);color:#fff;text-decoration:none;transition:.18s}
.auth-access-option:hover{border-color:var(--enjaz-gold);background:rgba(245,189,0,.09);transform:translateY(-1px)}.auth-access-icon{width:50px;height:50px;border-radius:14px;display:grid;place-items:center;background:rgba(245,189,0,.14);color:var(--enjaz-gold)}.auth-access-icon svg{width:28px;height:28px}.auth-access-copy{display:flex;flex-direction:column;gap:4px}.auth-access-copy strong{font-size:clamp(16px,1.42vw,20px);font-weight:800}.auth-access-copy small{font-size:clamp(13px,1vw,15px);line-height:1.4;color:rgba(255,255,255,.8)}.auth-access-arrow{font-size:22px;color:var(--enjaz-gold)}
/* Short desktop viewports: preserve the proportions while avoiding clipped controls. */
@media (min-width:1000px) and (max-height:820px){
 .auth-stage{gap:clamp(24px,3.7vw,56px);padding-left:clamp(48px,7.5vw,112px);padding-right:clamp(28px,4.6vw,68px)}
 .auth-logo{width:min(100%,370px);max-height:clamp(70px,10vh,88px);margin-bottom:12px}
 .auth-badge{min-height:45px;font-size:17px;padding:5px 16px}.auth-badge svg{width:32px;height:32px}
 .auth-story h2{font-size:clamp(34px,3.0vw,45px);margin-top:14px}.auth-rule{height:5px;margin:11px 0 12px}
 .auth-story-description{font-size:15px}.auth-features{margin-top:12px;gap:5px}.auth-features li{font-size:15px}.auth-feature-icon{width:43px;height:43px;flex-basis:43px}.auth-feature-icon svg{width:27px;height:27px}
 .auth-panel{transform:translateY(8px);padding:clamp(20px,3vh,30px) clamp(24px,2.6vw,36px);border-radius:22px}
 .auth-panel-head{margin-bottom:16px}.auth-panel-head h1{font-size:32px}.auth-panel-head p{font-size:14px;margin-top:5px}
 .auth-form{gap:8px}.auth-field>label{font-size:14px;margin-bottom:5px}.auth-input-wrap{min-height:45px}.auth-input{height:43px;font-size:15px}.auth-field-icon{width:21px;height:21px;margin-inline:12px}
 .auth-forgot{font-size:13px}.auth-consent{font-size:12px;gap:8px;margin-top:2px}.auth-consent input{width:24px;height:24px;flex-basis:24px}
 .auth-submit{height:52px;min-height:48px;font-size:17px;border-radius:12px}.auth-submit svg{width:22px;height:22px}.auth-footer{margin-top:8px;font-size:11px}
 .page-register .auth-panel{padding:17px 24px;transform:none}
}
@media (min-width:1000px) and (max-height:620px){
 .auth-logo{max-height:60px;width:min(100%,300px);margin-bottom:6px}.auth-badge{min-height:36px;font-size:14px}.auth-badge svg{width:26px;height:26px}
 .auth-story h2{font-size:32px;margin-top:8px}.auth-rule{margin:7px 0 8px}.auth-story-description{font-size:13px}.auth-features{margin-top:7px;gap:3px}.auth-features li{font-size:13px}.auth-feature-icon{width:35px;height:35px;flex-basis:35px}.auth-feature-icon svg{width:22px;height:22px}
 .auth-panel{padding:12px 18px}.auth-panel-head{margin-bottom:7px}.auth-panel-head h1{font-size:25px}.auth-form{gap:5px}.auth-input-wrap{min-height:36px}.auth-input{height:34px}.auth-consent{font-size:10px}.auth-consent input{width:20px;height:20px;flex-basis:20px}.auth-submit{height:40px;min-height:38px;font-size:14px}.auth-footer{margin-top:5px;font-size:9px}
}
@media (max-width:999px){
 html,body{height:auto;min-height:100%;overflow-x:hidden!important;overflow-y:auto!important}
 body.enjaz-auth-page{height:auto;min-height:100dvh;overflow-y:auto!important}
 .auth-ambient{position:fixed}
 .auth-stage{width:100%;height:auto;min-height:100dvh;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:62px 18px 24px;overflow:visible}
 .auth-language-position{top:10px;right:14px}.auth-story{display:none}
 .auth-panel{transform:none;width:min(100%,570px);max-height:none;padding:22px 20px;border-radius:21px}
 .auth-panel-head h1{font-size:clamp(25px,4vw,33px)}.auth-panel-head p{font-size:14px}
 .auth-input-wrap{min-height:48px}.auth-input{height:46px;font-size:15px}.auth-field>label{font-size:14px}
 .auth-submit{height:54px;min-height:50px;font-size:16px}.auth-footer{font-size:12px}
 .page-register .auth-panel{padding:16px 18px}.page-register .auth-panel-head{margin-bottom:10px}.register-form{gap:9px}
}
@media (max-width:560px){
 .auth-panel{padding:20px 16px}.auth-panel-head{margin-bottom:15px}.auth-consent{font-size:11px}.auth-consent input{width:24px;height:24px;flex-basis:24px}
 .auth-field-grid{grid-template-columns:1fr;gap:8px}.page-register .auth-panel{padding:14px 15px}.page-register .auth-panel-head h1{font-size:23px}.page-register .auth-panel-head p{font-size:12px}
 .auth-footer{gap:6px 12px}.auth-access-option{grid-template-columns:42px minmax(0,1fr) 16px;gap:9px}.auth-access-icon{width:39px;height:39px}.auth-access-copy strong{font-size:15px}.auth-access-copy small{font-size:12px}
}
