/* ============================================================
   Jeux Git — branded sign-in page (replicates Jeux Sphere login).
   Scoped to .jeux-login so it never affects the rest of Forgejo.
   ============================================================ */

:root {
  --jx-50:#FFF4ED; --jx-100:#FFE6D5; --jx-200:#FFC9AA; --jx-300:#FFA274;
  --jx-400:#FF7A3D; --jx-500:#FF5A1F; --jx-600:#F04A0E; --jx-700:#C7390A;
  --jx-s900:#0f172a; --jx-s700:#334155; --jx-s500:#64748b; --jx-s400:#94a3b8;
  --jx-s200:#e2e8f0; --jx-s100:#f1f5f9; --jx-bg:#FAFAFA;
}

/* Hide Forgejo's own navbar + footer ONLY on the login page */
body:has(.jeux-login) #navbar,
body:has(.jeux-login) .page-footer,
body:has(.jeux-login) footer.page-footer { display:none !important; }

/* Break out of Forgejo's fixed-width container and fill the page */
body:has(.jeux-login) .page-content,
body:has(.jeux-login) .page-content > .ui.container,
body:has(.jeux-login) .ui.container,
body:has(.jeux-login) .ui.container.fluid,
body:has(.jeux-login) .ui.grid,
body:has(.jeux-login) .ui.grid > .column{
  width:100% !important; max-width:100% !important; margin:0 !important; padding:0 !important;
}
.jeux-login{
  position:relative; width:100%; min-height:100vh; z-index:40;
  background:var(--jx-bg);
  font-family:'Inter',ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:24px; color:var(--jx-s900); box-sizing:border-box; overflow-x:hidden;
}

/* Outer card */
.jeux-card{
  width:100%; max-width:1120px; margin:0 auto;
  background:#fff; border:1px solid var(--jx-s100);
  border-radius:20px; overflow:hidden;
  box-shadow:0 8px 40px rgba(15,23,42,.08);
  display:flex; min-height:760px;
}
.jeux-left, .jeux-right{ flex:0 0 50%; max-width:50%; min-width:0; }

/* ---------------- LEFT panel ---------------- */
.jeux-left{ position:relative; background:rgba(255,244,237,.6); padding:40px; display:flex; flex-direction:column; }
.jeux-dots{
  position:absolute; inset:0; opacity:.4; pointer-events:none;
  background-image:radial-gradient(#FFC9AA 1px, transparent 1px);
  background-size:14px 14px;
  -webkit-mask-image:linear-gradient(to bottom right, black 0%, transparent 55%);
  mask-image:linear-gradient(to bottom right, black 0%, transparent 55%);
}
.jeux-left-inner{ position:relative; flex:1; display:flex; flex-direction:column; }
.jeux-brand{ display:flex; align-items:center; gap:12px; margin-bottom:24px; }
.jeux-logo{ height:48px; width:48px; border-radius:12px; }
.jeux-brand-name{ font-size:26px; font-weight:800; letter-spacing:-.02em; color:var(--jx-s900); line-height:1.1; }
.jeux-brand-sub{ font-size:11px; text-transform:uppercase; letter-spacing:.18em; color:var(--jx-s500); font-weight:600; }
.jeux-heading{ font-size:20px; font-weight:800; color:var(--jx-s900); margin:0; }
.jeux-rule{ width:40px; height:3px; background:var(--jx-500); border-radius:4px; margin:8px 0 16px; }
.jeux-lead{ font-size:14px; line-height:1.6; color:var(--jx-s500); max-width:420px; margin:0; }
.jeux-hero{ margin:16px 0; flex:1; display:flex; align-items:center; justify-content:center; }
.jeux-hero img{ width:100%; max-width:460px; min-width:0; height:auto; user-select:none; }
.jeux-links{ display:grid; grid-template-columns:1fr 1fr; gap:12px; width:100%; max-width:460px; margin:0 auto; }
.jeux-link{
  display:flex; align-items:center; gap:10px; padding:12px 16px;
  background:#fff; border:1px solid var(--jx-s200); border-radius:12px;
  box-shadow:0 1px 2px rgba(15,23,42,.04); text-decoration:none;
  transition:all .2s ease;
}
.jeux-link:hover{ border-color:var(--jx-300); box-shadow:0 6px 16px rgba(15,23,42,.08); transform:translateY(-2px); }
.jeux-link img{ height:32px; width:32px; border-radius:8px; flex-shrink:0; }
.jl-name{ font-size:13px; font-weight:700; color:var(--jx-s900); }
.jeux-link:hover .jl-name{ color:var(--jx-600); }
.jl-host{ font-size:10px; color:var(--jx-s400); }

/* ---------------- RIGHT panel ---------------- */
.jeux-right{ position:relative; background:#fff; padding:32px 40px; display:flex; flex-direction:column; }
.jeux-badge{
  position:absolute; top:20px; right:24px; display:inline-flex; align-items:center; gap:8px;
  padding:6px 12px; border-radius:999px; border:1px solid #D1FAE5; background:rgba(209,250,229,.4);
  font-size:12px; font-weight:600; color:#047857;
}
.jeux-live{ width:9px; height:9px; border-radius:50%; background:#10b981; box-shadow:0 0 0 3px rgba(16,185,129,.18); }

.jeux-form-wrap{ flex:1; display:flex; flex-direction:column; justify-content:center; width:100%; max-width:440px; min-width:0; margin:0 auto; box-sizing:border-box; }
.jeux-signin-form{ width:100%; max-width:100%; min-width:0; }
.jeux-signin-form input{ max-width:100%; }
.jeux-mobile-brand{ display:none; align-items:center; justify-content:center; gap:10px; margin-bottom:20px; font-size:20px; font-weight:800; color:var(--jx-s900); }
.jeux-mobile-brand .jeux-logo{ height:40px; width:40px; }
.jeux-welcome{ text-align:center; margin-bottom:28px; }
.jeux-welcome h1{ font-size:34px; font-weight:800; color:var(--jx-s900); line-height:1.15; margin:0; }
.jeux-welcome p{ font-size:14px; color:var(--jx-s500); margin:8px 0 0; }

.jeux-signin-form label{ display:block; font-size:14px; font-weight:700; color:var(--jx-s900); margin:0 0 8px; }
.jeux-input{ position:relative; margin-bottom:20px; }
.jeux-input .jeux-ic{ position:absolute; left:14px; top:50%; transform:translateY(-50%); width:18px; height:18px; color:var(--jx-s400); }
.jeux-input input{
  width:100%; height:48px; padding:0 44px; border:1px solid var(--jx-s200);
  border-radius:12px; background:#fff; font-size:14px; color:var(--jx-s900);
  outline:none; transition:border-color .15s, box-shadow .15s; box-sizing:border-box;
}
.jeux-input input::placeholder{ color:var(--jx-s400); }
.jeux-input input:focus{ border-color:var(--jx-500); box-shadow:0 0 0 3px var(--jx-100); }
.jeux-input.has-error input{ border-color:#f43f5e; }
.jeux-eye{ position:absolute; right:10px; top:50%; transform:translateY(-50%); background:none; border:0; cursor:pointer; color:var(--jx-s400); padding:6px; display:flex; }
.jeux-eye svg{ width:18px; height:18px; }
.jeux-eye:hover{ color:var(--jx-s700); }
.jeux-eye.on{ color:var(--jx-500); }

.jeux-remember{ display:inline-flex !important; align-items:center; gap:8px; font-weight:400 !important; font-size:14px !important; color:var(--jx-s700) !important; margin:0 0 24px !important; cursor:pointer; }
.jeux-remember input{ width:16px; height:16px; accent-color:var(--jx-500); }

.jeux-login-btn{
  width:100%; height:48px; border:0; border-radius:12px; cursor:pointer;
  background:var(--jx-500); color:#fff; font-size:15px; font-weight:600;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:0 1px 2px rgba(15,23,42,.08); transition:background .15s;
}
.jeux-login-btn:hover{ background:var(--jx-600); }
.jeux-login-btn svg{ width:16px; height:16px; }

.jeux-help{ text-align:center; font-size:14px; color:var(--jx-s500); margin-top:24px; }
.jeux-help a{ font-weight:600; color:var(--jx-500); text-decoration:none; }
.jeux-help a:hover{ color:var(--jx-600); }

.jeux-security{
  width:100%; max-width:440px; margin:16px auto 0;
  background:var(--jx-50); border:1px solid var(--jx-100); border-radius:12px;
  padding:16px; display:flex; align-items:flex-start; gap:12px;
}
.jeux-security-icon{ width:36px; height:36px; border-radius:10px; background:var(--jx-500); color:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.jeux-security-icon svg{ width:20px; height:20px; }
.jeux-security-title{ font-size:14px; font-weight:700; color:var(--jx-s900); }
.jeux-security-text{ font-size:12px; color:var(--jx-s500); margin-top:4px; line-height:1.5; }

/* ---------------- footer under card ---------------- */
.jeux-footer{ text-align:center; margin-top:24px; }
.jeux-footer .jf-top{ font-size:11px; color:rgba(148,163,184,.8); }
.jeux-footer .jf-mid{ font-size:11px; color:rgba(148,163,184,.7); margin-top:4px; }
.jeux-footer .jf-mid span{ margin:0 2px; }
.jeux-footer .jf-copy{ font-size:10px; color:#cbd5e1; margin-top:4px; }

/* ---------------- responsive ---------------- */
@media (max-width:1179px){
  .jeux-card{ flex-direction:column; min-height:0; }
  .jeux-left{ display:none; }
  .jeux-badge{ display:none; }
  .jeux-mobile-brand{ display:flex; }
  .jeux-right{ padding:28px 20px; }
  .jeux-welcome h1{ font-size:28px; }
}
