@font-face{font-family:"Readex Pro";src:url("fonts/ReadexPro-VF.woff2") format("woff2");font-weight:160 700;font-style:normal;font-display:swap}
/* ============================================================
   Queue System - sign in.
   Single theme on purpose: this screen matches the hall displays,
   so it commits to the dark lobby look rather than following a
   viewer preference. Bilingual AR/EN, mirrors under [dir=rtl].
   ============================================================ */
:root{
  --deep:#08130f;
  --card:rgba(14,28,24,.94);
  --card-line:#23443c;
  --field:#0c1a16;
  --field-line:#274a41;
  --ink:#e7f3ef;
  --ink2:#c9ded7;
  --ink3:#84a199;
  --ink4:#6f8d84;
  --acc:#2fb886;
  --acc-ink:#062019;
  --bad-bg:rgba(168,38,30,.16);
  --bad-line:#6d2822;
  --bad-ink:#ef9b91;
  --sans:"Readex Pro","Segoe UI",Tahoma,system-ui,-apple-system,sans-serif;
  --mono:"Readex Pro","Segoe UI",Tahoma,system-ui,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:var(--deep); color:var(--ink);
  font-family:var(--sans); font-size:14px; line-height:1.55;
  -webkit-font-smoothing:antialiased;
  display:grid; place-items:center;
  padding:28px 18px; position:relative; overflow:hidden;
}

/* ---- decorative ticket wall. Not data: a fixed sequence drawn in
        markup so nothing real is on screen before sign in. ---- */
.ticker{
  position:fixed; inset:0; overflow:hidden; opacity:.075; z-index:0;
  font-family:var(--mono); font-size:clamp(24px,3.2vw,40px); font-weight:600;
  line-height:1.3; color:var(--acc); white-space:nowrap; letter-spacing:.04em;
  direction:ltr; pointer-events:none; user-select:none;
  -webkit-mask-image:radial-gradient(64% 58% at 50% 50%, transparent 34%, #000 88%);
  mask-image:radial-gradient(64% 58% at 50% 50%, transparent 34%, #000 88%);
}
.ticker div{padding-inline-start:20px}

/* ---- card ---- */
.signin{
  position:relative; z-index:1; width:min(400px,100%);
  background:var(--card); backdrop-filter:blur(14px);
  border:1px solid var(--card-line); border-radius:18px;
  padding:34px 32px 28px;
  box-shadow:0 30px 70px -30px rgba(0,0,0,.9);
}
.brand{text-align:center; margin-bottom:24px}
.brand .mark{
  width:46px; height:46px; border-radius:14px; display:grid; place-items:center;
  margin:0 auto 12px; background:rgba(47,184,134,.12);
  border:1px solid rgba(47,184,134,.4); color:var(--acc);
  font-family:var(--mono); font-weight:600; font-size:20px;
}
.brand h1{margin:0; font-size:17px; font-weight:600; letter-spacing:-.01em; line-height:1.3}
.brand p{margin:4px 0 0; font-size:12.5px; color:var(--ink3)}

/* ---- validation / failure ---- */
.signin .text-danger{margin:0}
.signin .text-danger ul{margin:0; padding:0; list-style:none}
.signin .text-danger li{display:none}
.signin .text-danger li:not([style*="display:none"]):not([style*="display: none"]){display:block}
.failed{
  display:flex; gap:9px; align-items:flex-start;
  background:var(--bad-bg); border:1px solid var(--bad-line); color:var(--bad-ink);
  border-radius:9px; padding:10px 12px; margin-bottom:16px; font-size:13px;
}
.failed svg{width:15px; height:15px; flex:0 0 auto; margin-top:2px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round}

/* ---- fields ---- */
.fld{position:relative; margin-bottom:14px}
.fld label{display:block; font-size:12.5px; font-weight:600; color:var(--ink2); margin-bottom:6px}
.fld input[type=text],.fld input[type=password]{
  width:100%; font-family:var(--sans); font-size:14.5px; color:var(--ink);
  background:var(--field); border:1px solid var(--field-line); border-radius:9px;
  padding:11px 13px; outline:none; transition:border-color .12s ease, box-shadow .12s ease;
}
.fld input::placeholder{color:#5d7973}
.fld input:focus{border-color:var(--acc); box-shadow:0 0 0 3px rgba(47,184,134,.16)}
/* Chrome paints saved credentials on a pale blue ground, which reads as a
   broken field on a dark card. Repaint it without blocking autofill. */
.fld input:-webkit-autofill,
.fld input:-webkit-autofill:hover,
.fld input:-webkit-autofill:focus{
  -webkit-text-fill-color:var(--ink);
  -webkit-box-shadow:0 0 0 1000px var(--field) inset;
  caret-color:var(--ink);
  transition:background-color 9999s ease-out 0s;
}
/* Username and password are always Latin, so the inputs are dir=ltr. The reveal
   button therefore sits on the physical right in both languages - using a logical
   inset here put it on the left in Arabic, on top of the text. */
.fld input[type=password]{padding-right:42px; padding-left:13px; font-family:var(--mono); letter-spacing:.06em}
.eye{
  position:absolute; right:9px; bottom:8px;
  width:28px; height:28px; display:grid; place-items:center;
  background:transparent; border:0; border-radius:7px; cursor:pointer; color:var(--ink3);
}
.eye:hover{color:var(--ink2); background:rgba(255,255,255,.05)}
.eye:focus-visible{outline:2px solid var(--acc); outline-offset:1px}
.eye svg{width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round}
.eye .slash{display:none}
.eye.on .slash{display:block}

/* ---- remember + language ---- */
.row{display:flex; align-items:center; justify-content:space-between; gap:12px; margin:4px 0 18px}
.check{display:inline-flex; align-items:center; gap:8px; font-size:13px; color:var(--ink2); cursor:pointer; user-select:none}
.check input{position:absolute; opacity:0; width:0; height:0}
.check .box{
  width:16px; height:16px; border-radius:4px; flex:0 0 auto;
  border:1.5px solid #2f574c; display:grid; place-items:center; transition:.12s ease;
}
.check .box svg{width:11px; height:11px; fill:none; stroke:var(--acc-ink); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; opacity:0}
.check input:checked + .box{background:var(--acc); border-color:var(--acc)}
.check input:checked + .box svg{opacity:1}
.check input:focus-visible + .box{outline:2px solid var(--acc); outline-offset:2px}

.langsw{display:inline-flex; border:1px solid var(--field-line); border-radius:7px; overflow:hidden; font-size:12px}
.langsw a{padding:5px 11px; color:var(--ink3); text-decoration:none; line-height:1.4}
.langsw a:hover{color:var(--ink2); background:rgba(255,255,255,.04)}
.langsw a.on{background:rgba(47,184,134,.14); color:var(--ink); font-weight:600}

/* ---- submit ---- */
.submit{
  width:100%; border:0; border-radius:9px; cursor:pointer;
  font-family:var(--sans); font-size:15px; font-weight:600; padding:12px;
  background:var(--acc); color:var(--acc-ink);
  display:flex; align-items:center; justify-content:center; gap:9px;
  transition:filter .12s ease;
}
.submit:hover{filter:brightness(1.07)}
.submit:active{filter:brightness(.94)}
.submit:focus-visible{outline:2px solid var(--ink); outline-offset:2px}
.submit svg{width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
[dir="rtl"] .submit svg{transform:scaleX(-1)}

.help{font-size:12px; color:var(--ink4); text-align:center; margin:18px 0 0}

@media (max-width:420px){
  .signin{padding:26px 22px 22px; border-radius:14px}
  body{padding:16px}
}
@media (prefers-reduced-motion: reduce){*{animation:none !important; transition:none !important}}
