/* JQIO standalone pages: sign-in, password reset, terms.
   Colours come from jqio-theme.css (dark by default, light on request). */
:root{
  --display:'Noto Kufi Arabic','IBM Plex Sans Arabic','Segoe UI',system-ui,sans-serif;
  /* the brand panel is a block of colour in both themes */
  --panel-a:#13213f; --panel-b:#060b18; --panel-line:rgba(255,255,255,.12);
  --panel-glow:rgba(63,111,192,.24); --panel-gold:rgba(242,184,75,.16);
}
:root[data-theme="light"]{
  --panel-a:#1b3a6b; --panel-b:#0c1f40; --panel-line:rgba(255,255,255,.16);
  --panel-glow:rgba(125,159,214,.26); --panel-gold:rgba(242,184,75,.22);
}

*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:'IBM Plex Sans Arabic','Segoe UI',system-ui,sans-serif;font-size:16px;line-height:1.7;
  color:var(--txt);min-height:100vh;
  background:
    radial-gradient(900px 520px at 100% -8%,var(--glow-1),transparent 70%),
    radial-gradient(760px 460px at -8% 4%,var(--glow-2),transparent 70%),
    var(--bg);
  background-attachment:fixed;
}
a{color:var(--accent)}
button,input{font-family:inherit}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

/* ----- brand lockup and the theme button ----- */
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--txt);text-decoration:none}
.brand img{display:block;width:44px;height:44px}
.brand-word{display:block;font-family:'Sora','Segoe UI',system-ui,sans-serif;font-weight:800;font-size:26px;letter-spacing:.5px;line-height:1;direction:ltr;text-align:right}
.brand-sub{display:block;font-size:12.5px;color:var(--muted);margin-top:4px;line-height:1.2}
.icon-btn{
  width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:var(--surface);
  color:var(--txt);font-size:17px;line-height:1;cursor:pointer;transition:border-color .2s;
}
.icon-btn:hover{border-color:var(--line-strong)}

/* ----- sign-in / reset layout: form on one side, brand panel on the other ----- */
.auth{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);min-height:100vh}
.auth-main{display:flex;flex-direction:column;padding:26px clamp(20px,5vw,64px)}
.auth-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.auth-body{flex:1;display:flex;align-items:center;justify-content:center;padding:30px 0}
.auth-card{width:100%;max-width:430px}
.auth-card h1{font-family:var(--display);font-weight:900;font-size:clamp(26px,3vw,34px);line-height:1.45}
.auth-card .lead{color:var(--muted);margin:4px 0 24px}

.tabs{display:flex;gap:6px;margin-bottom:22px;background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:5px}
.tab{flex:1;text-align:center;padding:10px;border-radius:10px;border:0;background:none;font-size:15px;font-weight:700;cursor:pointer;color:var(--muted);transition:color .2s}
.tab:hover{color:var(--txt)}
.tab.active{background:var(--surface);color:var(--txt);box-shadow:var(--shadow)}

.field{margin-bottom:16px}
.field label{display:block;font-size:14.5px;font-weight:600;margin-bottom:6px}
.field input{
  width:100%;background:var(--surface);border:1px solid var(--line-strong);color:var(--txt);
  border-radius:12px;padding:13px 14px;font-size:16px;outline:none;transition:border-color .2s,box-shadow .2s;
}
.field input:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
/* e-mail addresses and passwords are typed left to right */
.field input[type="email"],.field input[type="password"]{direction:ltr;text-align:left}
.check{display:flex;align-items:flex-start;gap:10px;font-size:14.5px;color:var(--muted);margin-bottom:16px;cursor:pointer}
.check input{width:18px;height:18px;margin-top:5px;flex-shrink:0;accent-color:var(--brand)}

.btn{
  display:block;width:100%;border:0;border-radius:14px;padding:14px;margin-top:4px;
  font-family:var(--display);font-weight:800;font-size:16.5px;line-height:1.5;text-align:center;text-decoration:none;
  cursor:pointer;background:var(--brand);color:var(--on-brand);transition:filter .2s,transform .2s;
}
.btn:hover{filter:brightness(1.08)}
.btn:active{transform:scale(.99)}
.btn:disabled{opacity:.55;cursor:not-allowed}
.link-row{text-align:center;margin-top:14px;font-size:14.5px}
.link-row a{font-weight:600;text-decoration:none}
.link-row a:hover{text-decoration:underline}
.msg{font-size:14.5px;font-weight:600;text-align:center;margin-top:14px;min-height:24px}
.msg.err{color:var(--danger)}
.msg.ok{color:var(--ok)}
.pane{display:none}
.pane.active{display:block}
.auth-foot{display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:space-between;color:var(--muted);font-size:13.5px}
.auth-foot a{color:inherit}

.auth-brand{
  position:relative;isolation:isolate;overflow:hidden;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;
  padding:48px;color:#f4f6fb;text-align:center;
  background:
    radial-gradient(640px 440px at 30% 25%,var(--panel-glow),transparent 70%),
    radial-gradient(560px 380px at 85% 110%,var(--panel-gold),transparent 70%),
    linear-gradient(140deg,var(--panel-a),var(--panel-b));
}
.auth-brand::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23ffffff' stroke-opacity='.06'%3E%3Crect x='30' y='30' width='60' height='60'/%3E%3Crect x='30' y='30' width='60' height='60' transform='rotate(45 60 60)'/%3E%3C/svg%3E");
  background-size:120px 120px;
}
.auth-brand .jqio-seal,.auth-brand [data-jqio-seal]{width:min(72%,430px);aspect-ratio:1}
.auth-brand h2{font-family:var(--display);font-weight:900;font-size:clamp(26px,3vw,42px);line-height:1.45}
.auth-brand h2 b{display:block;color:#f2b84b;font-weight:900}
.auth-brand p{color:#b4bfd6;max-width:40ch;font-size:16.5px}

/* ----- document page (terms) ----- */
.doc{max-width:860px;margin:0 auto;padding:26px 20px 64px}
.doc-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:40px}
.doc h1{font-family:var(--display);font-weight:900;font-size:clamp(28px,4.2vw,44px);line-height:1.45}
.doc h1::after{content:"";display:block;width:56px;height:4px;border-radius:4px;background:var(--gold);margin-top:10px}
.doc .lead{color:var(--muted);margin-top:10px}
.doc-card{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:clamp(22px,4vw,40px);box-shadow:var(--shadow);margin-top:28px}
.doc-card section{margin-bottom:28px}
.doc-card section:last-child{margin-bottom:0}
.doc-card h2{display:flex;align-items:baseline;gap:12px;font-family:var(--display);font-weight:800;font-size:19px;line-height:1.6;margin-bottom:8px}
.doc-card h2 span{flex-shrink:0;color:var(--gold-ink);font-variant-numeric:tabular-nums}
.doc-card p,.doc-card li{font-size:16px;line-height:2}
.doc-card ul{padding-inline-start:24px;margin-top:6px}
.doc-card li{margin-bottom:4px}
.doc-back{display:inline-block;margin-top:24px;font-weight:700;text-decoration:none}
.doc-back:hover{text-decoration:underline}

/* ----- public pages: certificates, capability profile, directory, meeting, project page, 404 ----- */
.pub{max-width:980px;margin:0 auto;padding:26px 20px 56px}
.pub.narrow{max-width:760px}
.pub .doc-top{margin-bottom:34px}
.pub-title{font-family:var(--display);font-weight:900;font-size:clamp(26px,4vw,40px);line-height:1.45}
.pub-title::after{content:"";display:block;width:56px;height:4px;border-radius:4px;background:var(--gold);margin-top:10px}
.pub-lead{color:var(--muted);margin-top:10px}
.pub-card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:clamp(18px,3.4vw,28px);box-shadow:var(--shadow)}
.pub-foot{margin-top:34px;text-align:center;color:var(--muted);font-size:14px;line-height:1.9}
.pub-foot a{color:var(--accent);text-decoration:none;font-weight:600}
.pub-foot a:hover{text-decoration:underline}

/* the certificate card (priority seal, wealth certificate) */
.cert-page{min-height:100vh;display:flex;flex-direction:column}
.cert-wrap{flex:1;display:flex;align-items:center;justify-content:center;padding:4px 0 10px}
.cert{position:relative;width:100%;max-width:480px;margin:0 auto;text-align:center;background:var(--surface);
  border:1px solid var(--line);border-radius:26px;padding:36px 28px 26px;box-shadow:var(--shadow-lg);overflow:hidden}
.cert::before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:linear-gradient(90deg,var(--brand),var(--gold))}
.cert .eyebrow{display:table;margin-inline:auto;font-size:13.5px;font-weight:700;color:var(--gold-ink);background:var(--gold-soft);border-radius:999px;padding:4px 14px;margin-bottom:22px}
.cert .seal{width:164px;height:164px;margin:0 auto 18px;filter:drop-shadow(0 10px 22px rgba(0,0,0,.35))}
.cert .seal svg{width:100%;height:100%;display:block}
.cert .title,.cert .holder{font-family:var(--display);font-weight:800;font-size:22px;line-height:1.6;margin-bottom:4px}
.cert .owner{color:var(--muted);font-size:15px;margin-bottom:14px}
.cert .tier{color:var(--gold-ink);font-weight:800;font-size:17px;margin-bottom:14px}
.cert .status{display:inline-flex;align-items:center;gap:6px;font-size:14.5px;font-weight:700;padding:7px 16px;border-radius:999px;margin-bottom:12px}
.cert .status.valid{background:var(--ok-soft);color:var(--ok)}
.cert .status.invalid{background:var(--danger-soft);color:var(--danger)}
.cert .meta{color:var(--muted);font-size:14.5px;margin-bottom:20px}
.cert .qr{width:132px;height:132px;margin:0 auto;background:#fff;border-radius:14px;padding:9px;border:1px solid var(--line)}
.cert .qr svg{width:100%;height:100%;display:block}
.cert .footer{margin-top:22px;padding-top:16px;border-top:1px solid var(--line);font-size:13.5px;color:var(--muted);line-height:1.9}
.cert .footer b{color:var(--txt);font-weight:600}
.cert .loading,.cert .error{color:var(--muted);padding:26px 0;font-size:15.5px}
.cert .error{color:var(--danger)}

@media (max-width:900px){
  .auth{grid-template-columns:1fr}
  .auth-brand{display:none}
  .auth-main{padding:18px 18px 22px}
  .auth-body{align-items:flex-start;padding:34px 0 26px}
  .doc-top{margin-bottom:28px}
  .pub .doc-top{margin-bottom:24px}
}
@media (max-width:520px){
  .pub{padding:18px 16px 40px}
  .cert{padding:30px 18px 22px;border-radius:22px}
  .cert .seal{width:140px;height:140px}
  .pub .brand img{width:38px;height:38px}
  .pub .brand-word{font-size:22px}
}
@media (prefers-reduced-motion:reduce){
  *{transition-duration:.001ms !important}
}

/* lock-up (2026-11-01): JQIO spaced to exactly the width of the company name beneath it */
.brand > span{display:flex;flex-direction:column;align-items:stretch}
.brand-word{font-size:34px;letter-spacing:6px;margin-right:-6px}
.brand-sub{font-size:11.5px;margin-top:3px}
@media (max-width:720px){ .brand-word,.pub .brand-word{font-size:26px;letter-spacing:8px;margin-right:-8px} .brand-sub{font-size:10px} }

/* lock-up (2026-11-04): the mark above the company name; the JQIO word stays for screen readers only.
   The block keeps its old height (50.8px; 44px on phones, 41px on the public pages) so nothing on the page moves. */
.brand{flex-direction:column;justify-content:center;gap:3px;height:50.8px}
.brand img,.pub .brand img{width:40px;height:40px;margin:-3px 0;filter:drop-shadow(0 2px 8px rgba(242,184,75,.22))}
.brand > span{align-items:center}
.brand-word,.pub .brand-word{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.brand-sub{margin-top:0;font-size:12px;font-weight:600;line-height:1.2;text-align:center;color:var(--txt);opacity:.85;white-space:nowrap}
@media (max-width:720px){ .brand{height:44px;gap:2px} .brand img,.pub .brand img{width:34px;height:34px;margin:-3px 0} .brand-sub{font-size:10px} }
@media (max-width:520px){ .pub .brand{height:41px} .pub .brand img{width:32px;height:32px} }
