/* The colours of the sign-in page, one set for each theme (23 Nov 2026). The layout and the motion are the same in all three. */
[data-theme] .n4f-lg{--cl-ground:#f4effd;--cl-b1:#c3b0ff;--cl-b2:#ffcfe6;--cl-b3:#c4ecd2;--cl-b4:#ffdcbd;--cl-blob-o:.75;
  --cl-card:rgba(255,255,255,.74);--cl-edge:#fff;--cl-edge2:rgba(255,255,255,.9);--cl-shadow:rgba(74,45,180,.20);--cl-frame:rgba(255,255,255,.55);
  --cl-ink:#20184a;--cl-soft:#574f80;--cl-mute:#6b6391;--cl-ph:#8d86ad;
  --cl-accent:#6a46e8;--cl-accent2:#8a5cf6;--cl-accent-d:#5a39d6;--cl-on-accent:#fff;--cl-focus:#c2531f;
  --cl-field:rgba(240,234,255,.9);--cl-field-h:#e8dfff;--cl-field-f:#fff;--cl-glow:rgba(106,70,232,.14);--cl-glow3:rgba(106,70,232,.34);--cl-seg:rgba(255,255,255,.7);
  --cl-info-bg:#ece6ff;--cl-info:#3a2a8c;--cl-err-bg:#fde3dc;--cl-err:#8a2a10;--cl-dash:#cfc2f3;
  --cl-title:linear-gradient(100deg,#20184a 0%,#6a46e8 38%,#c2531f 62%,#20184a 100%)}
/* Midnight: deep navy, sky-blue accent */
[data-theme="dark"] .n4f-lg{--cl-ground:#06141c;--cl-b1:#1d5fa8;--cl-b2:#4a3399;--cl-b3:#0f6b66;--cl-b4:#8a4428;--cl-blob-o:.5;
  --cl-card:rgba(14,34,50,.72);--cl-edge:rgba(255,255,255,.10);--cl-edge2:rgba(255,255,255,.16);--cl-shadow:rgba(0,0,0,.5);--cl-frame:rgba(255,255,255,.10);
  --cl-ink:#eaf2f7;--cl-soft:#b3c5d3;--cl-mute:#9fb3c2;--cl-ph:#8298a8;
  --cl-accent:#3b9eff;--cl-accent2:#74c2ff;--cl-accent-d:#8fd0ff;--cl-on-accent:#04121c;--cl-focus:#ffb37a;
  --cl-field:rgba(255,255,255,.07);--cl-field-h:rgba(255,255,255,.12);--cl-field-f:#0b2030;--cl-glow:rgba(59,158,255,.20);--cl-glow3:rgba(59,158,255,.38);--cl-seg:rgba(255,255,255,.08);
  --cl-info-bg:#12324a;--cl-info:#cfe8ff;--cl-err-bg:#4a1f1a;--cl-err:#ffc4b5;--cl-dash:#2f4f66;
  --cl-title:linear-gradient(100deg,#eaf2f7 0%,#74c2ff 38%,#ffb37a 62%,#eaf2f7 100%)}
/* Vakif: cream paper, deep green accent */
[data-theme="vakif"] .n4f-lg{--cl-ground:#f6f1e3;--cl-b1:#bfe0cf;--cl-b2:#f3dfae;--cl-b3:#cfe6c4;--cl-b4:#f6cdb0;--cl-blob-o:.8;
  --cl-card:rgba(255,253,246,.78);--cl-edge:#fff;--cl-edge2:rgba(255,255,255,.9);--cl-shadow:rgba(10,74,64,.20);--cl-frame:rgba(255,255,255,.6);
  --cl-ink:#12332c;--cl-soft:#465c55;--cl-mute:#566a63;--cl-ph:#7f8f89;
  --cl-accent:#0a5a4d;--cl-accent2:#17806c;--cl-accent-d:#084a3f;--cl-on-accent:#fff;--cl-focus:#b8621f;
  --cl-field:rgba(10,90,77,.07);--cl-field-h:rgba(10,90,77,.12);--cl-field-f:#fff;--cl-glow:rgba(10,90,77,.15);--cl-glow3:rgba(10,90,77,.34);--cl-seg:rgba(255,255,255,.7);
  --cl-info-bg:#dcefe6;--cl-info:#0a4a40;--cl-err-bg:#fde3dc;--cl-err:#8a2a10;--cl-dash:#b9d3c8;
  --cl-title:linear-gradient(100deg,#12332c 0%,#0a7a66 38%,#b8742a 62%,#12332c 100%)}
/* the picture is the same pale clay scene in every theme, so the words on it stay dark */
[data-theme] .n4f-lg .n4f-lg-b{--cl-ink:#20184a;--cl-soft:#574f80}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-top .n4f-seg button{color:var(--cl-soft) !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-top .n4f-seg button[aria-pressed="true"]{color:var(--cl-ink) !important;background:var(--cl-field-h) !important}
/* Sign-in with motion (23 Nov 2026, second design). Light look only.
   A slow moving sky of soft colour, a glass card with the email + password form, and the garden picture as a floating
   card that leans toward the pointer. Everything stands still for people who ask their device for less motion.
   Styles the app's own sign-in form (live app) and the stand-in form of the trial copy (clay-login.js). */
@property --cl-a{syntax:"<angle>";inherits:false;initial-value:0deg}

/* ---------- the stage ---------- */
[data-theme] .n4f-lg.n4f-lg{position:relative;overflow:hidden;isolation:isolate;grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;gap:clamp(20px,4vw,56px);padding:0 clamp(16px,4vw,56px);background:var(--cl-ground) !important;min-height:100vh}
[data-theme] .n4f-lg .cl-sky{position:absolute;inset:-8%;z-index:-1;pointer-events:none;transform:translate3d(calc(var(--mx,0) * -18px),calc(var(--my,0) * -18px),0);transition:transform .5s cubic-bezier(.2,.8,.2,1)}
[data-theme] .n4f-lg .cl-blob{position:absolute;border-radius:50%;filter:blur(64px);opacity:var(--cl-blob-o);will-change:transform}
[data-theme] .n4f-lg .cl-blob:nth-child(1){width:52vmax;height:52vmax;left:-12vmax;top:-18vmax;background:var(--cl-b1);animation:cl-drift-a 22s ease-in-out infinite alternate}
[data-theme] .n4f-lg .cl-blob:nth-child(2){width:44vmax;height:44vmax;right:-10vmax;top:-8vmax;background:var(--cl-b2);animation:cl-drift-b 26s ease-in-out infinite alternate}
[data-theme] .n4f-lg .cl-blob:nth-child(3){width:46vmax;height:46vmax;left:18vmax;bottom:-24vmax;background:var(--cl-b3);animation:cl-drift-c 24s ease-in-out infinite alternate}
[data-theme] .n4f-lg .cl-blob:nth-child(4){width:34vmax;height:34vmax;right:6vmax;bottom:-14vmax;background:var(--cl-b4);animation:cl-drift-a 30s ease-in-out infinite alternate-reverse}
@keyframes cl-drift-a{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(9vmax,6vmax,0) scale(1.18)}}
@keyframes cl-drift-b{from{transform:translate3d(0,0,0) scale(1.1)}to{transform:translate3d(-10vmax,8vmax,0) scale(.92)}}
@keyframes cl-drift-c{from{transform:translate3d(0,0,0) scale(.95)}to{transform:translate3d(8vmax,-7vmax,0) scale(1.15)}}

/* ---------- form column ---------- */
[data-theme] .n4f-lg.n4f-lg .n4f-lg-m{order:1;background:transparent !important;padding:22px 0 26px !important;gap:0 !important;min-height:100vh}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-top{animation:cl-fade .8s .1s both}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-top .n4f-seg{background:var(--cl-seg) !important;box-shadow:0 6px 18px var(--cl-glow) !important;backdrop-filter:blur(10px)}

/* the glass card, with a slow light travelling round its edge */
[data-theme] .n4f-lg.n4f-lg .n4f-lg-card{position:relative;max-width:470px !important;margin-block:auto !important;margin-inline:auto 0 !important;padding:38px 36px 32px !important;gap:22px !important;border:0 !important;border-radius:38px !important;
  background:var(--cl-card) !important;backdrop-filter:blur(26px) saturate(1.35);-webkit-backdrop-filter:blur(26px) saturate(1.35);
  box-shadow:0 34px 80px var(--cl-shadow),0 2px 6px var(--cl-shadow),inset 0 1px 0 var(--cl-edge) !important;animation:cl-rise .8s cubic-bezier(.2,.9,.2,1) both}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-card::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:2px;pointer-events:none;
  background:conic-gradient(from var(--cl-a),var(--cl-edge2),var(--cl-accent2) 18%,#ff9ecb 34%,var(--cl-edge2) 50%,#7fd8a6 68%,#ffb98a 84%,var(--cl-edge2));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);animation:cl-turn 9s linear infinite}
@keyframes cl-turn{to{--cl-a:360deg}}
@keyframes cl-rise{from{opacity:0;transform:translateY(36px) scale(.96)}to{opacity:1;transform:none}}
@keyframes cl-fade{from{opacity:0}to{opacity:1}}
@keyframes cl-up{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

[data-theme] .n4f-lg.n4f-lg .n4f-lg-h{gap:8px !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-clogo{display:block !important;width:68px !important;height:68px !important;border-radius:22px;margin:0 0 14px !important;background:#fff;animation:cl-pop .7s .25s cubic-bezier(.2,1.5,.4,1) both,cl-bob 5s 1s ease-in-out infinite,cl-halo 3.2s 1s ease-out infinite}
@keyframes cl-pop{from{opacity:0;scale:.4;rotate:-25deg}to{opacity:1;scale:1;rotate:0deg}}
@keyframes cl-bob{0%,100%{translate:0 0}50%{translate:0 -7px}}
@keyframes cl-halo{0%{box-shadow:0 10px 24px var(--cl-glow),0 0 0 0 var(--cl-glow3)}70%,100%{box-shadow:0 10px 24px var(--cl-glow),0 0 0 18px transparent}}
:root:not(#x):not(#y) [data-theme] .n4f-lg.n4f-lg .n4f-lg-card h2{font-size:clamp(34px,3.4vw,46px) !important;font-weight:900 !important;line-height:1.1 !important;margin:0 !important;padding-bottom:2px;
  background:var(--cl-title) 0 0 / 260% 100%;-webkit-background-clip:text;background-clip:text;color:transparent !important;-webkit-text-fill-color:transparent;animation:cl-up .7s .35s both,cl-ink 9s 1.2s ease-in-out infinite alternate}
:root:not(#x):not(#y) [data-theme] .n4f-lg.n4f-lg .n4f-lg-card h2 *{color:transparent !important;-webkit-text-fill-color:transparent}
@keyframes cl-ink{from{background-position:0 0}to{background-position:100% 0}}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-h p,
[data-theme] .n4f-lg.n4f-lg .cl-sub{font-size:16.5px !important;font-weight:700 !important;color:var(--cl-soft) !important;margin:0 !important;line-height:1.5}

/* the form: each part arrives a moment after the one above it */
[data-theme] .n4f-lg.n4f-lg .n4f-lg-form{gap:18px !important}
[data-theme] .n4f-lg.n4f-lg .cl-form{margin-top:-14px}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-form > *{animation:cl-up .6s both}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-form > :nth-child(1){animation-delay:.42s}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-form > :nth-child(2){animation-delay:.50s}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-form > :nth-child(3){animation-delay:.58s}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-form > :nth-child(4){animation-delay:.66s}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-form > :nth-child(5){animation-delay:.74s}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-form > :nth-child(n+6){animation-delay:.82s}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-f{gap:8px !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-l{font-size:15px !important;font-weight:800 !important;color:var(--cl-ink) !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-link{font-size:14.5px !important;font-weight:800 !important;color:var(--cl-accent-d) !important;padding:4px 0 !important;background:linear-gradient(var(--cl-accent-d),var(--cl-accent-d)) no-repeat 0 100% / 0 2px;transition:background-size .3s}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-link:hover{background-size:100% 2px}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-in{height:58px !important;padding:0 18px !important;gap:12px !important;border:2px solid transparent !important;border-radius:20px !important;background:var(--cl-field) !important;color:var(--cl-mute) !important;transition:border-color .2s,background .2s,box-shadow .25s,transform .2s}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-in > svg{transition:color .2s,transform .3s cubic-bezier(.2,1.6,.4,1)}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-in:hover{background:var(--cl-field-h) !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-in:focus-within{border-color:var(--cl-accent) !important;background:var(--cl-field-f) !important;box-shadow:0 0 0 6px var(--cl-glow),0 12px 26px var(--cl-glow);transform:translateY(-1px)}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-in:focus-within > svg{color:var(--cl-accent);transform:scale(1.18)}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-in .input{flex:1;min-width:0;height:100% !important;border:0 !important;background:transparent !important;box-shadow:none !important;outline:0 !important;padding:0 !important;font-size:17px !important;font-weight:700 !important;color:var(--cl-ink) !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-in .input::placeholder{color:var(--cl-ph) !important;font-weight:600}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-eye{width:44px !important;height:44px !important;border-radius:14px !important;color:var(--cl-soft) !important;margin-inline-end:-10px;transition:background .2s,transform .2s}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-eye:hover{background:var(--cl-field-h) !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-eye:active{transform:scale(.9)}

/* the button: a light sweeps across it now and then; it turns into a spinner, then a tick, on the way in */
[data-theme] .n4f-lg.n4f-lg .n4f-lg-go{position:relative;overflow:hidden;height:60px !important;min-height:60px !important;border:0 !important;border-radius:20px !important;font-size:18px !important;font-weight:900 !important;margin-top:4px;display:flex;align-items:center;justify-content:center;gap:8px;
  background:linear-gradient(100deg,var(--cl-accent),var(--cl-accent2) 50%,var(--cl-accent)) 0 0 / 220% 100% !important;box-shadow:0 14px 30px var(--cl-glow3) !important;transition:background-position .6s,box-shadow .25s,transform .15s,background-color .3s}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-go,[data-theme] .n4f-lg.n4f-lg .n4f-lg-go *{color:var(--cl-on-accent) !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-go::after{content:"";position:absolute;top:-20%;bottom:-20%;width:34%;left:-45%;transform:skewX(-20deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.42),transparent);animation:cl-shine 4.5s 1.6s ease-in-out infinite}
@keyframes cl-shine{0%{left:-45%}28%,100%{left:125%}}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-go:hover{background-position:100% 0 !important;box-shadow:0 18px 38px var(--cl-glow3) !important;transform:translateY(-2px)}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-go:active{transform:translateY(0) scale(.98)}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-go svg{transition:transform .25s}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-go:hover svg{transform:translateX(5px)}
[dir="rtl"] [data-theme] .n4f-lg.n4f-lg .n4f-lg-go:hover svg,[data-theme][dir="rtl"] .n4f-lg.n4f-lg .n4f-lg-go:hover svg{transform:translateX(-5px) scaleX(-1)}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-go.cl-busy{pointer-events:none}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-go.cl-busy svg,[data-theme] .n4f-lg.n4f-lg .n4f-lg-go[data-busy="true"] svg{animation:cl-spin .7s linear infinite;transform:none !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-go.cl-ok{background:#1f8a55 !important;box-shadow:0 14px 30px rgba(31,138,85,.36) !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-go.cl-ok svg{animation:cl-pop .4s cubic-bezier(.2,1.6,.4,1) both;transform:none !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-go.cl-ok::after,[data-theme] .n4f-lg.n4f-lg .n4f-lg-go.cl-busy::after{display:none}
@keyframes cl-spin{to{rotate:360deg}}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-go:focus-visible,
[data-theme] .n4f-lg.n4f-lg .n4f-lg-link:focus-visible,
[data-theme] .n4f-lg.n4f-lg .n4f-lg-eye:focus-visible{outline:3px solid var(--cl-focus) !important;outline-offset:3px}

/* messages, and a small shake when the form says no */
[data-theme] .n4f-lg.n4f-lg .n4f-lg-msg{border-radius:18px !important;padding:12px 16px !important;gap:10px !important;font-size:15px !important;font-weight:700 !important;background:var(--cl-info-bg) !important;color:var(--cl-info) !important;align-items:flex-start;animation:cl-up .35s both !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-msg[data-k="err"]{background:var(--cl-err-bg) !important;color:var(--cl-err) !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-msg[hidden]{display:none !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-msg svg{flex:none;margin-top:2px}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-card.cl-shake{animation:cl-shake .45s both}
@keyframes cl-shake{10%,90%{transform:translateX(-2px)}20%,80%{transform:translateX(5px)}30%,50%,70%{transform:translateX(-9px)}40%,60%{transform:translateX(9px)}}
[data-theme] .n4f-lg.n4f-lg.cl-leave .n4f-lg-card{animation:cl-leave .4s both}
[data-theme] .n4f-lg.n4f-lg.cl-leave .n4f-lg-b{animation:cl-leave .4s .05s both}
@keyframes cl-leave{to{opacity:0;transform:translateY(-26px) scale(.97)}}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-fine{font-size:13.5px !important;font-weight:700 !important;color:var(--cl-soft) !important;line-height:1.5}
[data-theme] .n4f-lg.n4f-lg .cl-trial{border:2px dashed var(--cl-dash);border-radius:18px;padding:10px 14px}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-legal{margin-block:18px 0 !important;margin-inline:auto 0 !important;font-size:13.5px !important;font-weight:700 !important;color:var(--cl-soft) !important;max-width:470px !important;width:100%;animation:cl-fade .8s 1s both}

/* ---------- the picture card: floats, and leans toward the pointer ---------- */
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b{order:2;position:relative;align-self:center;justify-self:start;width:min(100%,430px);height:min(78vh,700px) !important;min-height:420px !important;margin:0 !important;padding:34px !important;border-radius:44px !important;justify-content:flex-start !important;overflow:hidden;
  background:url(../assets/clay/toplum-work.png) no-repeat center bottom / cover,#f0e6fb !important;box-shadow:0 40px 90px var(--cl-shadow),0 0 0 8px var(--cl-frame) !important;
  transform:perspective(1300px) rotateY(calc(-7deg + var(--mx,0) * 6deg)) rotateX(calc(var(--my,0) * -5deg));transition:transform .45s cubic-bezier(.2,.8,.2,1);animation:cl-pic .95s .15s cubic-bezier(.2,.9,.2,1) both,cl-float 7s 1.2s ease-in-out infinite}
[dir="rtl"] [data-theme] .n4f-lg.n4f-lg .n4f-lg-b,[data-theme][dir="rtl"] .n4f-lg.n4f-lg .n4f-lg-b{transform:perspective(1300px) rotateY(calc(7deg + var(--mx,0) * 6deg)) rotateX(calc(var(--my,0) * -5deg))}
@keyframes cl-pic{from{opacity:0;translate:0 60px;scale:.9}to{opacity:1;translate:0 0;scale:1}}
@keyframes cl-float{0%,100%{translate:0 0}50%{translate:0 -14px}}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b .n4f-lg-pat,
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b .n4f-lg-k,
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b .n4f-lg-lead,
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b ul,
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b .n4f-lg-q,
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b .n4f-lg-ft{display:none !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b h1{position:relative;z-index:2;font-size:clamp(28px,2.8vw,40px) !important;line-height:1.1 !important;font-weight:900 !important;color:var(--cl-ink) !important;max-width:11ch;margin:0 !important;animation:cl-up .8s .7s both}
/* clouds cross the picture; small lights blink above the hills */
[data-theme] .n4f-lg .cl-air{position:absolute;inset:0;pointer-events:none;z-index:1;overflow:hidden;border-radius:inherit}
[data-theme] .n4f-lg .cl-cloud{position:absolute;left:-45%;height:38px;width:42%;border-radius:999px;background:#fff;opacity:.85;filter:blur(3px);box-shadow:38px -16px 0 -4px #fff,84px 2px 0 -8px #fff;animation:cl-cloud 46s linear infinite}
[data-theme] .n4f-lg .cl-cloud:nth-child(1){top:30%;animation-delay:-8s}
[data-theme] .n4f-lg .cl-cloud:nth-child(2){top:44%;scale:.7;opacity:.7;animation-duration:62s;animation-delay:-30s}
[data-theme] .n4f-lg .cl-cloud:nth-child(3){top:19%;scale:.55;opacity:.6;animation-duration:78s;animation-delay:-52s}
@keyframes cl-cloud{to{left:125%}}
[data-theme] .n4f-lg .cl-spark{position:absolute;width:9px;height:9px;border-radius:50%;background:#fff;box-shadow:0 0 14px 4px rgba(255,255,255,.9);animation:cl-blink 3.4s ease-in-out infinite}
[data-theme] .n4f-lg .cl-spark:nth-child(4){left:18%;top:52%}
[data-theme] .n4f-lg .cl-spark:nth-child(5){left:72%;top:38%;animation-delay:-1.1s;scale:.7}
[data-theme] .n4f-lg .cl-spark:nth-child(6){left:46%;top:60%;animation-delay:-2.2s;scale:.55}
[data-theme] .n4f-lg .cl-spark:nth-child(7){left:84%;top:58%;animation-delay:-.6s;scale:.8}
@keyframes cl-blink{0%,100%{opacity:0;transform:scale(.4)}50%{opacity:1;transform:scale(1)}}

/* ---------- trial copy: the list of sample people gives way to the form ---------- */
[data-theme] .n4f-lg[data-cl-login] .n4f-lg-demo,
[data-theme] .n4f-lg[data-cl-login] .n4f-lg-status,
[data-theme] .n4f-lg[data-cl-login] .n4f-lg-card > .n4f-lg-fine,
[data-theme] .n4f-lg[data-cl-login] .n4f-lg-h p{display:none !important}

/* ---------- phone and narrow windows: the picture is a band on top, nothing leans ---------- */
@media (max-width:899px){
[data-theme] .n4f-lg.n4f-lg{grid-template-columns:minmax(0,1fr) !important;gap:0;padding:0 14px}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b{order:0;justify-self:stretch;width:auto;height:170px !important;min-height:0 !important;margin:14px 0 0 !important;border-radius:30px !important;padding:0 !important;background-position:center 92% !important;transform:none !important;box-shadow:0 18px 40px var(--cl-shadow),0 0 0 5px var(--cl-frame) !important;animation:cl-pic .8s .1s both}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b h1{display:none !important}
[data-theme] .n4f-lg .cl-cloud{top:14% !important;height:26px}
[data-theme] .n4f-lg .cl-spark{display:none}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-m{min-height:0;padding:14px 0 26px !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-card{margin:16px auto 0 !important;padding:26px 20px 22px !important;border-radius:30px !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-legal{margin-inline:auto !important;text-align:center}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-clogo{width:56px !important;height:56px !important}
[data-theme] .n4f-lg .cl-blob{filter:blur(46px)}
}

/* ---------- less motion: everything stands still ---------- */
@media (prefers-reduced-motion:reduce){
[data-theme] .n4f-lg.n4f-lg *,[data-theme] .n4f-lg.n4f-lg *::before,[data-theme] .n4f-lg.n4f-lg *::after{animation:none !important;transition:none !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b{transform:none !important}
[data-theme] .n4f-lg .cl-sky{transform:none !important}
[data-theme] .n4f-lg .cl-cloud{left:12%}
[data-theme] .n4f-lg .cl-spark{display:none}
}

/* the picture is the foundation's work (well, school, mosque, aid parcels); its own logo and name sit on top */
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b{gap:18px !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b .n4f-lg-logo{position:relative;z-index:2;display:flex !important;align-items:center;gap:12px;align-self:flex-start;background:rgba(255,255,255,.78);backdrop-filter:blur(8px);border-radius:22px;padding:8px 16px 8px 8px;box-shadow:0 8px 20px var(--cl-shadow);animation:cl-up .8s .55s both}
[dir="rtl"] [data-theme] .n4f-lg.n4f-lg .n4f-lg-b .n4f-lg-logo,[data-theme][dir="rtl"] .n4f-lg.n4f-lg .n4f-lg-b .n4f-lg-logo{padding:8px 8px 8px 16px}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b .n4f-lg-logo img{width:46px !important;height:46px !important;border-radius:14px;background:#fff}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b .n4f-lg-logo b{display:block;font-size:17px !important;font-weight:900 !important;color:var(--cl-ink) !important;line-height:1.25}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b .n4f-lg-logo small{display:block;font-size:13px !important;font-weight:700 !important;color:var(--cl-soft) !important;line-height:1.3}
@media (max-width:899px){
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b .n4f-lg-logo{display:none !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b{height:190px !important;background-position:center 100% !important}
}

/* ---------- phone pass (25 Nov 2026): the Sign in button fits on the first screen, and small links are easy to tap ---------- */
[data-theme] .n4f-lg.n4f-lg .n4f-lg-link{min-height:44px;display:inline-flex;align-items:center;margin-block:-12px}
@media (max-width:899px){
[data-theme] .n4f-lg.n4f-lg .n4f-lg-b{height:118px !important;margin-top:12px !important;border-radius:26px !important;background-position:center 100% !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-m{padding:12px 0 22px !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-card{margin-top:12px !important;padding:20px 18px 18px !important;gap:14px !important;border-radius:28px !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-clogo{width:48px !important;height:48px !important;border-radius:16px;margin-bottom:8px !important}
:root:not(#x):not(#y) [data-theme] .n4f-lg.n4f-lg .n4f-lg-card h2{font-size:30px !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-h{gap:4px !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-h p,[data-theme] .n4f-lg.n4f-lg .cl-sub{font-size:15px !important;line-height:1.45}
[data-theme] .n4f-lg.n4f-lg .cl-form{margin-top:-8px}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-form{gap:14px !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-f{gap:6px !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-in{height:54px !important;border-radius:18px !important;padding:0 16px !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-in .input{font-size:16px !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-go{height:56px !important;min-height:56px !important;border-radius:18px !important;margin-top:2px}
[data-theme] .n4f-lg.n4f-lg .cl-trial{padding:8px 12px;font-size:13px !important}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-legal{margin:14px 0 0 !important;padding:0 8px;max-width:none !important;text-align:center}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-top .n4f-seg button{min-height:40px;min-width:40px}
}

/* ===== Sign-in page on wide screens (27 Nov 2026) =====
   The theme and language switches ran across the whole column (the language switch ended up alone at the screen edge),
   the "Install as an app" box was centred under a card that sits off-centre, and on screens around 900px tall the
   install box pushed the card up against the switches. Everything in the column now shares the card's width and edge. */
@media (min-width:900px){
  [data-theme] .n4f-lg.n4f-lg .n4f-lg-top{width:100%;max-width:470px;margin-inline:auto 0;margin-bottom:14px;justify-content:space-between;flex-wrap:nowrap;gap:4px}
  [data-theme] .n4f-lg.n4f-lg .n4f-lg-top .n4f-seg{gap:4px !important;flex-shrink:0}
  [data-theme] .n4f-lg.n4f-lg .n4f-lg-top .n4f-seg button{padding-inline:7px !important}
  /* "Install as an app" floats as a small chip in the bottom corner (left in Arabic, right in English) instead of pushing the page down */
  [data-theme] .n4f-lg.n4f-lg .n4f-lg-app{position:fixed;z-index:40;inset-block-end:20px;inset-inline-end:20px;width:auto;max-width:400px;margin:0;padding:8px;padding-inline-start:12px;gap:10px;border:1px solid rgba(106,70,232,.14);border-radius:20px;background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 16px 36px -18px rgba(74,50,160,.5);animation:cl-up .5s 1s both}
  [data-theme] .n4f-lg.n4f-lg .n4f-lg-app:has(.btn) small{display:none}
  /* clouds drift in the open sky between the title and the roofs, crisp instead of blurred (they read as a smudge behind the title) */
  [data-theme] .n4f-lg .cl-cloud{filter:none}
  [data-theme] .n4f-lg .cl-cloud:nth-child(1){top:37%}
  [data-theme] .n4f-lg .cl-cloud:nth-child(2){top:44%}
  [data-theme] .n4f-lg .cl-cloud:nth-child(3){top:40%}
}
/* shorter screens: a little less air inside the card so card, install box and footer line fit without crowding */
@media (min-width:900px) and (max-height:960px){
  [data-theme] .n4f-lg.n4f-lg .n4f-lg-card{padding:28px 32px 24px !important;gap:16px !important}
  [data-theme] .n4f-lg.n4f-lg .n4f-lg-clogo{width:56px !important;height:56px !important;border-radius:18px !important;margin-bottom:6px !important}
}
/* laptop-height screens: a little less air again */
@media (min-width:900px) and (max-height:820px){
  [data-theme] .n4f-lg.n4f-lg .n4f-lg-m{padding-top:16px !important;padding-bottom:16px !important}
  [data-theme] .n4f-lg.n4f-lg .n4f-lg-card{padding:24px 30px 20px !important;gap:14px !important}
  [data-theme] .n4f-lg.n4f-lg .n4f-lg-legal{margin-top:12px !important}
}
/* the install box's close button (all widths); once closed it stays closed in that browser */
[data-theme] .n4f-lg.n4f-lg .n4f-lg-app{grid-template-columns:auto minmax(0,1fr) auto auto}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-appx{width:34px;height:34px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--cl-soft,#6b6391);display:grid;place-items:center;cursor:pointer}
[data-theme] .n4f-lg.n4f-lg .n4f-lg-appx:hover{background:rgba(106,70,232,.08);color:var(--cl-ink,#20184a)}
