/* Sign-in and sign-up (layouts/auth): the form, and the app's panel on the other side. Colours from theme.css. */
.auth{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}
.form-side{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 24px;position:relative;background:var(--form-bg)}
.box{width:100%;max-width:440px}
.lang{position:absolute;top:24px;inset-inline-end:24px;display:flex;gap:4px;padding:4px;border-radius:999px;background:var(--panel);border:1px solid var(--line)}
.lang button{border:0;background:none;font:inherit;font-size:13px;padding:5px 14px;border-radius:999px;cursor:pointer;color:var(--muted)}
.lang button.on{background:var(--brand-soft);color:var(--brand-ink);font-weight:600}
.box .eyebrow{color:var(--brand);font-size:13px;font-weight:600;margin:0 0 6px}
.box h1{margin:0;font-size:32px;font-weight:600}
.box .sub{color:var(--muted);margin:8px 0 28px;font-size:15px}
.f{margin-bottom:18px}
.f label{display:block;font-size:14px;font-weight:600;margin-bottom:8px}
.inp{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:0 14px;transition:border-color .15s,box-shadow .15s}
.inp:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
.inp svg{width:18px;height:18px;flex:none;stroke:var(--muted);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.inp input,.inp select{flex:1;min-width:0;border:0;outline:0;background:none;font:inherit;font-size:15px;padding:14px 0;color:var(--text)}
.inp .peek{border:0;background:none;color:var(--brand);font:inherit;font-size:13px;cursor:pointer}
.f .err{color:var(--bad);font-size:13px;margin-top:6px}
.f .hint{color:var(--muted);font-size:12.5px;margin-top:6px}
.rules{display:flex;gap:14px;color:var(--muted);font-size:12.5px;margin-top:8px}
.rules span.ok{color:var(--ok)}
.row2{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 20px;font-size:14px}
.row2 label{display:flex;align-items:center;gap:8px;color:var(--muted)}
input[type=checkbox]{accent-color:var(--brand);width:16px;height:16px}
.go{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:14px;padding:15px;font:inherit;font-size:16px;font-weight:600;color:var(--on-brand);background:var(--brand);cursor:pointer;box-shadow:var(--shadow-btn);transition:background .15s}
.go:hover{background:var(--brand-ink)}
.go svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
[dir=ltr] .go .arrow{transform:scaleX(-1)}
.alt{text-align:center;color:var(--muted);font-size:14px;margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}
.alt a{color:var(--text);font-weight:600}
.note-ok{padding:12px 16px;border-radius:12px;background:var(--ok-soft);color:var(--ok-ink);margin-bottom:18px;font-size:14px}
.note-bad{padding:12px 16px;border-radius:12px;background:var(--bad-soft);color:var(--bad-ink);margin-bottom:18px;font-size:14px}
.brand-side{position:relative;overflow:hidden;background:var(--side);color:#fff;padding:56px 64px;display:flex;flex-direction:column}
.brand-side::before,.brand-side::after{content:'';position:absolute;border:1px solid rgba(255,255,255,.12);border-radius:50%}
.brand-side::before{width:640px;height:640px;top:-380px;inset-inline-start:-220px}
.brand-side::after{width:560px;height:560px;bottom:-300px;inset-inline-end:-260px}
.brand-side .logo{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;position:relative}
.brand-side .logo b{font-size:22px}
.pitch{margin:auto 0;position:relative;max-width:520px}
.pitch .eyebrow{color:rgba(255,255,255,.65);font-size:13px;margin:0 0 14px}
.pitch h2{font-size:52px;line-height:1.25;font-weight:500;margin:0 0 18px}
.pitch .sub{color:rgba(255,255,255,.75);font-size:17px;line-height:1.8;margin:0 0 28px}
.pitch ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:14px}
.pitch li{display:flex;align-items:center;gap:12px;font-size:16px;color:rgba(255,255,255,.9)}
.pitch li svg{width:18px;height:18px;stroke:#bfe3d6;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.brand-side .foot{color:rgba(255,255,255,.5);font-size:13px;position:relative;margin:0}
@media (max-width:900px){.auth{grid-template-columns:1fr}.brand-side{display:none}.form-side{justify-content:flex-start;padding-top:88px}}

/* Motion: the form rises in; the scale tips, swings and settles level (debit = credit), its pivot glowing while level;
   a ledger's figures drift by behind. Transforms and opacity only; still with «reduce motion». */
.box{animation:rise-in .55s cubic-bezier(.2,.7,.2,1) both}
.theme-toggle{position:absolute;top:24px;inset-inline-start:24px}
.scale{width:230px;height:auto;display:block;margin:0 0 26px;overflow:visible}
.scale line,.scale .strings{stroke:rgba(255,255,255,.75);stroke-width:2.5;stroke-linecap:round;fill:none}
.scale .strings{stroke-width:1.2;stroke:rgba(255,255,255,.45)}
.scale .foot,.scale .pivot{fill:rgba(255,255,255,.8)}
.scale .dish{fill:rgba(255,255,255,.14);stroke:rgba(255,255,255,.6);stroke-width:1.5}
.scale .coin{fill:var(--gold);stroke:#a8843f;stroke-width:.8}
.scale text{fill:rgba(255,255,255,.7);font:600 14px 'IBM Plex Sans Arabic',system-ui,sans-serif;text-anchor:middle}
.scale .beam,.scale .pan,.scale .settle{transform-box:view-box}
.scale .beam{transform-origin:130px 40px;animation:sway 9s cubic-bezier(.45,0,.55,1) infinite}
.scale .pan{animation:unsway 9s cubic-bezier(.45,0,.55,1) infinite}
.scale .settle{fill:none;stroke:#bfe3d6;stroke-width:2;transform-origin:130px 36px;opacity:0;animation:settle 9s ease-out infinite}
@keyframes sway{0%,100%{transform:rotate(-9deg)}12%{transform:rotate(7deg)}24%{transform:rotate(-4.5deg)}36%{transform:rotate(2.5deg)}46%{transform:rotate(-1deg)}56%,86%{transform:rotate(0)}}
@keyframes unsway{0%,100%{transform:rotate(9deg)}12%{transform:rotate(-7deg)}24%{transform:rotate(4.5deg)}36%{transform:rotate(-2.5deg)}46%{transform:rotate(1deg)}56%,86%{transform:rotate(0)}}
@keyframes settle{0%,56%{opacity:0;transform:scale(.4)}62%{opacity:.9;transform:scale(1)}80%{opacity:0;transform:scale(2.2)}100%{opacity:0}}
.ledger{position:absolute;top:0;bottom:0;inset-inline-end:40px;width:210px;overflow:hidden;opacity:.06;pointer-events:none;
  -webkit-mask:linear-gradient(transparent,#000 22%,#000 78%,transparent);mask:linear-gradient(transparent,#000 22%,#000 78%,transparent)}
.ledger div{display:grid;grid-template-columns:1fr 1fr;gap:14px 26px;direction:ltr;font-variant-numeric:tabular-nums;font-size:15px;
  text-align:right;animation:ledger 60s linear infinite;will-change:transform}
@keyframes ledger{to{transform:translateY(-50%)}}
@media (prefers-reduced-motion:reduce){.box,.scale .beam,.scale .pan,.scale .settle,.ledger div{animation:none}}
