@font-face{font-family:Cairo;src:url("assets/fonts/cairo-700.ttf") format("truetype");font-weight:600 900;font-display:swap}
@font-face{font-family:Tajawal;src:url("assets/fonts/tajawal-400.ttf") format("truetype");font-weight:400 500;font-display:swap}
@font-face{font-family:Tajawal;src:url("assets/fonts/tajawal-700.ttf") format("truetype");font-weight:600 900;font-display:swap}
:root{--navy:#073770;--gold:#d8a542;--ink:#092f66;--muted:#577496;--edge:#bed5f1}
*{box-sizing:border-box}
html{min-width:320px;scroll-behavior:smooth}
body{margin:0;background:linear-gradient(145deg,#f2f8ff,#fff 73%,#dceafb);color:var(--ink);font-family:'Tajawal','Noto Sans Arabic',sans-serif;-webkit-font-smoothing:antialiased}
button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #5aa5f2;outline-offset:3px}
.shell{max-width:100%;margin:0 auto;min-height:100svh;overflow:hidden;background:linear-gradient(154deg,#fff 53%,#edf5fd 86%,#f8fbff);box-shadow:0 1px 28px #00234d0a}
.hero{width:100%;position:relative;line-height:0;background:#eff6fd}
.hero-image{display:block;width:100%;height:auto;aspect-ratio:768/657;object-fit:cover}
.access{position:relative;z-index:2;margin-top:-1px;padding:0 13px 16px}
.access-card{width:100%;background:linear-gradient(155deg,#fff 0%,#fff 80%,#fbfdff 100%);border-radius:24px;border:1px solid #e8eff8;box-shadow:0 10px 32px #10447919,0 1px 3px #10447912,inset 0 0 0 1px #ffffff; padding:21px 20px 16px}
.field-label{display:block;margin:0 0 8px;color:#0a316a;font-family:'Cairo','Noto Kufi Arabic',sans-serif;font-weight:800;font-size:17px;line-height:1.5}
.field-wrap{display:flex;flex-direction:row;align-items:center;gap:10px;min-height:46px;border:1.3px solid #acc8ec;border-radius:13px;background:linear-gradient(105deg,#e8f0fc,#edf4ff);padding:0 13px;transition:box-shadow .2s,border-color .2s}
.field-wrap:focus-within{border-color:#3276c5;box-shadow:0 0 0 3px #85b3e239}
.field-wrap.invalid{border-color:#d75a69}
.id-icon{width:25px;height:25px;display:flex;align-items:center;justify-content:center;flex:none}
.id-icon svg{display:block;width:25px;height:25px;fill:none;stroke:#5b7fa9;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.field-wrap input{flex:1;min-width:0;height:45px;padding:0;margin:0;border:0;background:transparent;outline:0!important;color:#082e64;text-align:left;font-size:18px;line-height:45px;direction:ltr;letter-spacing:.3px;font-weight:500}
.field-wrap input::placeholder{font-size:16px;color:#879fba;letter-spacing:0;opacity:1}
.field-error{font-size:12px;line-height:1.4;font-weight:700;color:#b72a43;margin:0}
.field-error:not(:empty){padding-top:7px}
.remember{cursor:pointer;display:flex;align-items:center;gap:11px;margin:16px 0 20px;font-size:14px;font-weight:600;line-height:1.4;color:#244a7e}
.remember input{position:absolute;opacity:0;inline-size:1px;block-size:1px}
.remember .box{flex:none;width:20px;height:20px;border:1.6px solid #8aa5c5;border-radius:4px;background:#fff;display:flex;align-items:center;justify-content:center}
.box svg{display:none;width:15px;height:15px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.remember input:checked+.box{background:#1163b6;border-color:#1163b6}.remember input:checked+.box svg{display:block}.remember input:focus-visible+.box{outline:3px solid #7db1f4;outline-offset:3px}
.enter{width:100%;height:50px;border:0;border-radius:12px;background:linear-gradient(105deg,#f1bd4e 0%,#e3ad43 45%,#cf972e 100%);color:#062c5e;display:flex;align-items:center;justify-content:center;gap:12px;font-family:'Cairo','Noto Kufi Arabic',sans-serif;font-weight:900;font-size:21px;box-shadow:inset 0 1px 1px #fff8,0 5px 11px #bc8c3b1c;transition:transform .15s,filter .15s}
.enter svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.enter:hover{filter:brightness(1.04)}.enter:active{transform:scale(.993)}.enter:disabled{cursor:wait;opacity:.7}
.rule{height:1px;background:#d9e5f2;margin:18px 0 13px}
.help{border:0;background:none;color:#064a9b;min-height:30px;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;font-family:'Tajawal','Noto Sans Arabic',sans-serif;font-size:15px;font-weight:800;white-space:nowrap;padding:0}
.help:hover span{text-decoration:underline}.help svg{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.help-sign{height:21px;width:21px}.back-sign{width:18px;height:18px;margin-right:3px}
.trust{margin:19px 0 0;background:linear-gradient(108deg,#edf5ff,#e6f0fc 72%,#e1edfb);min-height:78px;border-radius:20px;display:flex;align-items:center;gap:12px;padding:12px 17px;color:#0c3873}
.trust-icon{width:55px;height:54px;flex:none;display:flex;align-items:center;justify-content:center;border-left:1px solid #9ebce4;padding-left:11px}.trust-icon svg{width:40px;height:47px}
.trust-copy{display:flex;flex-direction:column;gap:6px;text-align:right}.trust-copy strong{font-family:'Cairo','Noto Kufi Arabic',sans-serif;font-size:16px;font-weight:800;line-height:1.2}.trust-copy span{font-size:12px;color:#718aad;font-weight:600}
.site-address{display:flex;align-items:center;justify-content:center;direction:ltr;gap:8px;font-size:13px;letter-spacing:.35px;color:#7791b1;margin:14px 0 5px;font-family:'Tajawal',sans-serif}.site-address svg{width:16px;height:16px;stroke:#809cbf;fill:none;stroke-width:1.8;stroke-linecap:round}
.mobile-extras{text-align:center;font-size:11px;color:#8298b0;margin:0}.mobile-extras summary{list-style:none;cursor:pointer;display:inline-block;padding:7px;text-decoration:underline}.mobile-extras summary::-webkit-details-marker{display:none}.mobile-extras>div{display:flex;gap:9px;padding:7px 0 12px}.mobile-extras button{flex:1;background:#edf5ff;border:1px solid #c8d9ee;border-radius:10px;padding:10px 3px;font-size:12px;font-weight:700;color:#0b4a8d}
.visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}
dialog{color:var(--ink);border:0;border-radius:22px;width:min(90vw,390px);padding:0;box-shadow:0 25px 90px #001b4a4d}dialog::backdrop{background:#031c4080}.dialog-body{position:relative;text-align:center;padding:30px 25px}.dialog-body h2{font-family:'Cairo',sans-serif;font-size:22px;margin:0 0 12px}.dialog-body p{font-size:15px;line-height:1.7;white-space:pre-line}.close{position:absolute;left:13px;top:10px;border:0;background:none;font-size:29px;color:#6c85aa}.dialog-okay{margin-top:12px;width:140px;height:41px;background:#d9a441;border:0;border-radius:10px;font-weight:800;color:#092f66}
@media(min-width:480px){.shell{max-width:460px;margin:32px auto;border-radius:24px;min-height:0;box-shadow:0 17px 70px #143d6a20;border:1px solid #e8eef6}.access{padding:0 17px 22px}.access-card{padding:24px 25px 19px}.trust{margin-top:22px}}
@media(min-width:920px){body{min-height:100svh;display:flex;justify-content:center;align-items:center;padding:35px;background:radial-gradient(circle at 18% 22%,#ddeefe,transparent 35%),linear-gradient(135deg,#f3f8ff,#fff 70%)}.shell{margin:0;max-width:1000px;display:grid;grid-template-columns:1fr 1fr;min-height:635px;box-shadow:0 22px 80px #0c407225;border-radius:32px;overflow:hidden;background:#fff}.hero{grid-column:2;grid-row:1;height:100%;background:linear-gradient(180deg,#e3f0fc 0%,#fff 94%)}.hero-image{width:100%;height:auto;object-fit:contain;object-position:top}.hero::after{content:"البوابة الموحدة لجميع خدمات الدورات التدريبية الخاصة";display:block;color:#235b92;text-align:center;font-size:16px;line-height:2;font-weight:700;margin:40px 12px 0;padding-top:18px;border-top:2px solid #d9a44150}.access{grid-column:1;grid-row:1;display:flex;flex-direction:column;justify-content:center;align-items:stretch;padding:30px 40px 23px;background:linear-gradient(140deg,#fff,#f8fbff)}.access-card{padding:27px 27px 25px}.field-label{font-size:19px}.field-wrap{min-height:56px}.field-wrap input{height:56px;font-size:20px}.remember{font-size:16px;margin:21px 0 24px}.enter{height:58px}.rule{margin-top:26px;margin-bottom:19px}.trust{margin-top:28px}.site-address{margin:15px 0 0}.mobile-extras{margin-top:6px}}
@media(max-width:359px){.access{padding:0 10px 12px}.access-card{padding:18px 16px 14px}.field-label{font-size:16px}.remember{font-size:12.4px}.help{font-size:13px}.trust{padding:10px 12px}.trust-copy strong{font-size:14px}.trust-copy span{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

[hidden]{display:none!important}
#pin-section{margin-top:16px}
#help-form{text-align:right}
#help-form .field-label{margin-top:14px;font-size:16px}
#help-form>input,#help-form>select{width:100%;min-height:46px;border:1px solid #acc8ec;background:#edf4ff;color:#092f66;padding:10px;border-radius:10px;font-size:17px}
#help-result{min-height:24px;font-size:15px}
@media(max-width:479px){.field-wrap{min-height:48px}.field-wrap input{height:47px}.remember{font-size:15px}.trust-copy span{font-size:13px}}
html[data-auth-state="checking"] body{visibility:hidden}
.staging-enter{margin-top:12px;background:#8a6519}.staging-enter:hover{background:#6e4e0f}
