/* Zero Connect — its own sign-in (zeroconnect.jerucig.com). The app after it is connect.css. */
.zs { --ink: #e8f6ff; --dim: #8fb2c8; --line: rgba(120, 200, 255, .16); --cy: #19b8ff; --tl: #1de3c4; --bg: #020b14;
  position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--bg); color: var(--ink);
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif; }
.zs[hidden] { display: none; }
body.zs-on #zc { visibility: hidden; }

/* the picture side: a slow orbit, a few chat bubbles drifting — what Connect is, without words */
.zs-art { position: relative; overflow: hidden; background:
  radial-gradient(60% 50% at 30% 30%, rgba(29, 227, 196, .16), transparent 70%),
  radial-gradient(55% 55% at 75% 75%, rgba(25, 184, 255, .18), transparent 70%), #031322; }
.zs-orbit { position: absolute; inset: 50% auto auto 50%; width: 0; height: 0; }
.zs-orbit i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid var(--line); transform: translate(-50%, -50%); }
.zs-orbit i:nth-child(1) { width: 260px; height: 260px; animation: zsSpin 28s linear infinite; border-top-color: rgba(29, 227, 196, .55); }
.zs-orbit i:nth-child(2) { width: 420px; height: 420px; animation: zsSpin 46s linear infinite reverse; border-left-color: rgba(25, 184, 255, .45); }
.zs-orbit i:nth-child(3) { width: 600px; height: 600px; animation: zsSpin 70s linear infinite; border-bottom-color: rgba(120, 200, 255, .25); }
@keyframes zsSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.zs-mark { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; transform: translate(-50%, -50%); display: grid; place-items: center;
  border-radius: 32px; background: linear-gradient(145deg, rgba(25, 184, 255, .16), rgba(29, 227, 196, .08)); border: 1px solid rgba(25, 184, 255, .35);
  box-shadow: 0 0 60px rgba(25, 184, 255, .25), inset 0 0 30px rgba(29, 227, 196, .12); }
.zs-mark svg { width: 70px; height: 70px; }
.zs-bubbles span { position: absolute; padding: 9px 14px; border-radius: 16px; font-size: 14px; color: var(--ink); background: rgba(8, 28, 46, .82);
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); backdrop-filter: blur(6px); animation: zsFloat 9s ease-in-out infinite; white-space: nowrap; }
.zs-bubbles .b1 { top: 18%; right: 16%; border-bottom-right-radius: 4px; }
.zs-bubbles .b2 { top: 30%; left: 12%; animation-delay: -3s; border-bottom-left-radius: 4px; color: #bff6ec; }
.zs-bubbles .b3 { bottom: 26%; right: 12%; animation-delay: -5s; border-bottom-right-radius: 4px; }
.zs-bubbles .b4 { bottom: 15%; left: 22%; animation-delay: -7s; color: #9fe1ff; font-size: 13px; }
@keyframes zsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* the form side */
.zs-card { align-self: center; justify-self: center; width: min(400px, calc(100% - 40px)); display: flex; flex-direction: column; gap: 14px; }
.zs-brand { display: flex; align-items: baseline; gap: 8px; font-family: Rajdhani, 'IBM Plex Sans Arabic', sans-serif; direction: ltr; justify-content: flex-end; }
.zs-brand b { font-size: 30px; letter-spacing: .5px; color: var(--ink); }
.zs-brand span { font-size: 30px; font-weight: 700; background: linear-gradient(90deg, var(--tl), var(--cy)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zs-card h1 { margin: 6px 0 0; font-size: 24px; font-weight: 700; }
.zs-sub { margin: 0 0 6px; color: var(--dim); font-size: 14.5px; line-height: 1.7; }
.zs-f { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--dim); margin-bottom: 12px; }
.zs-f input { height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(6, 24, 40, .9); color: var(--ink);
  font: 500 16px 'IBM Plex Sans Arabic', system-ui, sans-serif; outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; box-sizing: border-box; }
.zs-f input:focus { border-color: rgba(25, 184, 255, .7); box-shadow: 0 0 0 4px rgba(25, 184, 255, .14); }
.zs-pw { position: relative; display: block; }
.zs-pw input { padding-left: 46px; }
.zs-pw button { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--dim); cursor: pointer; display: grid; place-items: center; }
.zs-pw button:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.zs-pw svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.zs-note { margin: 0 0 10px; color: var(--dim); font-size: 14px; }
.zs-chk { display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: 13.5px; }
.zs-err { padding: 10px 12px; border-radius: 12px; background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .35); color: #ffc2c2; font-size: 14px; }
.zs-err[hidden] { display: none; }
.zs-go { height: 50px; border: 0; border-radius: 14px; cursor: pointer; font: 700 16px 'IBM Plex Sans Arabic', system-ui, sans-serif; color: #02121d;
  background: linear-gradient(90deg, var(--tl), var(--cy)); box-shadow: 0 12px 30px rgba(25, 184, 255, .25); transition: transform .12s, filter .15s; position: relative; }
.zs-go:hover { filter: brightness(1.06); } .zs-go:active { transform: scale(.985); }
.zs-go:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.zs-go.busy span { opacity: 0; }
.zs-go.busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; border: 3px solid rgba(2, 18, 29, .25); border-top-color: #02121d; animation: zsSpin2 .8s linear infinite; }
@keyframes zsSpin2 { to { transform: rotate(360deg); } }
.zs-foot { margin: 4px 0 0; text-align: center; color: rgba(143, 178, 200, .7); font-size: 12.5px; }

@media (max-width: 860px) {
  .zs { grid-template-columns: 1fr; grid-template-rows: 34vh 1fr; }
  .zs-orbit i:nth-child(3) { display: none; }
  .zs-bubbles .b3, .zs-bubbles .b4 { display: none; }
  .zs-mark { width: 88px; height: 88px; border-radius: 26px; } .zs-mark svg { width: 54px; height: 54px; }
  .zs-card { align-self: start; padding: 20px 0 32px; }
}
@media (prefers-reduced-motion: reduce) { .zs-orbit i, .zs-bubbles span { animation: none; } }
