/* Sign-in page, Ledger look: paper ground, hairline rules, square corners, one blue. The form on the left, a quiet product panel on the right
   (hidden on narrow screens). View::forceTheme('light'). Colours are local to .lg so the page never depends on the theme tokens. */
.lg{ --ink:#15171A; --mute:#5A6066; --faint:#8A9096; --line:#D5D6D0; --paper:#FBFBF9; --panel:#F2F2EE; --blue:#1D4E89; --ok:#1D4E89; --crit:#C73E1D;
  display:grid; grid-template-columns:minmax(380px, 1fr) minmax(0, 1fr); min-height:100vh; background:var(--paper); color:var(--ink); font-family:'Instrument Sans',ui-sans-serif,system-ui,sans-serif; }
.lg *{ border-radius:0 !important; box-shadow:none; }

/* ---------- form side ---------- */
.lg-panel{ display:flex; flex-direction:column; padding:28px clamp(24px, 5vw, 56px) 28px; min-width:0; }
.lg-top{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding-bottom:14px; border-bottom:2px solid var(--ink); }
.lg-logo{ display:inline-flex; align-items:baseline; gap:10px; }
.lg-mark{ display:none; }
.lg-word{ font-size:.94rem; font-weight:700; letter-spacing:.22em; text-transform:uppercase; }
.lg-tools .lang-switch{ display:inline-flex; gap:8px; font-size:.82rem; font-weight:500; }
.lg-tools .lang-switch a, .lg-tools .lang-switch span, .lg-tools .lang-switch b{ color:var(--mute); text-decoration:none; padding:2px 0; border-bottom:2px solid transparent; background:none !important; }
.lg-tools .lang-switch .active, .lg-tools .lang-switch [aria-current], .lg-tools .lang-switch [aria-pressed="true"], .lg-tools .lang-switch b{ color:var(--ink); font-weight:700; border-bottom-color:var(--ink); }

.lg-card{ width:100%; max-width:440px; margin:auto 0; padding:40px 0; }
.lg-card > *{ animation:lg-rise .5s both; }
.lg-card > :nth-child(2){ animation-delay:.05s; } .lg-card > :nth-child(5){ animation-delay:.1s; }
@keyframes lg-rise{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
.lg-eyebrow{ margin:0 0 6px; font-size:.72rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--mute); }
.lg-card h1{ margin:0 0 22px; font-size:2.7rem; line-height:1.05; font-weight:600; letter-spacing:-.02em; }
.lg-lead{ margin:0 0 8px; font-size:.96rem; line-height:1.5; color:var(--mute); }
.lg-who-mail{ margin:0 0 18px; font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:.82rem; }
.lg-form{ display:flex; flex-direction:column; gap:18px; }
.lg-field{ display:flex; flex-direction:column; gap:8px; font-size:.72rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--mute); }
.lg-field input{ font:inherit; font-size:1rem; letter-spacing:0; text-transform:none; font-weight:400; width:100%; height:48px; padding:0 14px; background:#fff; border:1px solid var(--faint); color:var(--ink); }
.lg-field input::placeholder{ color:var(--faint); }
.lg-field input:focus{ outline:2px solid var(--blue); outline-offset:1px; border-color:var(--blue); }
.lg-field input[aria-invalid="true"]{ border-color:var(--crit); }
.lg-field .lg-code{ height:60px; text-align:center; font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:1.6rem; letter-spacing:.3em; }
.lg-pw{ position:relative; display:flex; }
.lg-pw input{ padding-right:56px; }
.lg-eye{ position:absolute; right:0; top:0; height:48px; width:48px; display:grid; place-items:center; background:transparent; border:0; color:var(--mute); cursor:pointer; }
.lg-eye:hover{ color:var(--ink); }
.lg-eye:focus-visible, .lg-submit:focus-visible, .lg-alt:focus-visible, .lg-links a:focus-visible, .lg-who a:focus-visible{ outline:2px solid var(--blue); outline-offset:2px; }
.lg-eye[aria-pressed="true"]{ color:var(--blue); }
.lg-who{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:10px 14px; border:1px solid var(--line); background:var(--panel); }
.lg-who input{ flex:1; min-width:0; border:0; background:transparent; font:inherit; font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:.88rem; color:var(--ink); padding:0; }
.lg-who input:focus{ outline:none; }
.lg-who a{ font-size:.84rem; font-weight:500; color:var(--blue); }
.lg-check{ display:flex; gap:10px; align-items:center; font-size:.9rem; letter-spacing:0; text-transform:none; font-weight:400; color:var(--ink); }
.lg-check input{ width:18px; height:18px; accent-color:var(--blue); }
.lg-caps{ margin:0; font-size:.82rem; color:var(--crit); font-weight:600; }
.lg-row{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; }
.lg-hint{ font-size:.82rem; color:var(--mute); }
.lg-alt{ font-size:.9rem; font-weight:500; color:var(--blue); text-decoration:none; }
.lg-alt:hover, .lg-links a:hover, .lg-who a:hover{ color:var(--ink); text-decoration:underline; }
.lg-submit{ display:inline-flex; align-items:center; gap:10px; height:48px; padding:0 22px; font:inherit; font-size:.95rem; font-weight:600; color:#fff; background:var(--blue); border:1px solid var(--blue); cursor:pointer; }
.lg-submit svg{ width:16px; height:16px; }
.lg-submit:hover:not(:disabled){ background:var(--ink); border-color:var(--ink); }
.lg-submit:active:not(:disabled){ transform:translateY(1px); }
.lg-submit:disabled{ opacity:.55; cursor:not-allowed; }
.lg-submit[aria-busy="true"]{ opacity:.8; }
.lg-alert{ display:flex; gap:10px; align-items:flex-start; margin:0 0 16px; padding:12px 14px; border:1px solid var(--crit); background:#FCEEE9; color:#8F2A12; font-size:.9rem; line-height:1.45; }
.lg-alert svg{ flex:none; margin-top:2px; }
.lg-links{ margin:22px 0 0; font-size:.9rem; }
.lg-links a{ color:var(--blue); text-decoration:none; font-weight:500; }
.lg-url{ margin:36px 0 0; padding:14px 16px; border:1px solid var(--line); background:var(--panel); font-size:.82rem; line-height:1.55; color:var(--mute); }
.lg-url-v{ display:block; margin-top:2px; color:var(--ink); font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:.82rem; }
.lg-foot{ margin:0; font-size:.8rem; color:var(--mute); }

/* ---------- product panel ---------- */
.lg-show{ position:relative; display:flex; flex-direction:column; justify-content:space-between; gap:40px; padding:28px clamp(24px, 5vw, 56px) 40px; background:var(--panel); border-left:1px solid var(--line); min-width:0; }
.lg-blob, .lg-float{ display:none; }
.lg-peek-h{ display:flex; justify-content:space-between; align-items:baseline; padding-bottom:14px; border-bottom:2px solid var(--ink); font-size:.72rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.lg-pill{ padding:1px 8px; border:1px solid var(--faint); color:var(--mute); font-size:.74rem; letter-spacing:0; text-transform:none; font-weight:400; }
.lg-peek h2{ margin:36px 0 10px; max-width:460px; font-size:2rem; line-height:1.15; font-weight:600; letter-spacing:-.01em; }
.lg-peek p{ margin:0; max-width:420px; font-size:1rem; line-height:1.5; color:var(--mute); }
.lg-kpis{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); margin-top:36px; border-top:1px solid var(--ink); border-bottom:1px solid var(--line); }
.lg-kpis div{ padding:16px 16px 18px; border-right:1px solid var(--line); }
.lg-kpis div:first-child{ padding-left:0; } .lg-kpis div:last-child{ border-right:0; }
.lg-kpis small{ display:block; font-size:.72rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--mute); }
.lg-kpis b{ display:block; font-size:3.2rem; line-height:1.05; font-weight:500; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }
.lg-kpis .r b{ color:var(--crit); } .lg-kpis .g b{ color:var(--blue); }
.lg-spark{ display:block; width:100%; height:90px; margin-top:18px; }
.lg-spark polyline, .lg-spark path{ stroke:var(--blue); }
.lg-tag{ margin:0; font-size:2.5rem; line-height:1.12; font-weight:600; letter-spacing:-.02em; }
.lg-tag em{ font-style:normal; color:var(--blue); }

@media (max-width:980px){
  .lg{ grid-template-columns:minmax(0, 1fr); }
  .lg-show{ display:none; }
  .lg-panel{ padding:24px 20px 24px; }
  .lg-card{ margin:0; padding:28px 0; }
  .lg-card h1{ font-size:2.1rem; }
}
@media (max-width:420px){ .lg-row{ flex-direction:column-reverse; align-items:stretch; } .lg-submit{ justify-content:center; } }
@media (prefers-reduced-motion:reduce){ .lg-card > *{ animation:none; } .lg-submit:active:not(:disabled){ transform:none; } }

/* ---------- signed-in screen ---------- */
.lg-ok{ width:56px; height:56px; margin:4px 0 20px; }
.lg-ok svg{ width:100%; height:100%; }
.lg-ok-c{ stroke:var(--ok); stroke-width:2.5; stroke-dasharray:145; stroke-dashoffset:145; animation:lg-draw .55s .1s ease-out forwards; }
.lg-ok-p{ stroke:var(--ok); stroke-width:3.5; stroke-linecap:square; stroke-linejoin:miter; stroke-dasharray:40; stroke-dashoffset:40; animation:lg-draw .35s .55s ease-out forwards; }
@keyframes lg-draw{ to{ stroke-dashoffset:0; } }
.lg-bar{ height:4px; margin-top:6px; background:#E4E5E0; overflow:hidden; }
.lg-bar i{ display:block; height:100%; width:100%; background:var(--blue); transform-origin:left; transform:scaleX(0); animation:lg-fill 1.3s .2s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes lg-fill{ to{ transform:scaleX(1); } }
.lg.lg-leave .lg-panel{ opacity:0; transform:translateY(-8px); transition:opacity .35s ease, transform .35s ease; }
.lg.lg-leave .lg-show{ opacity:0; transition:opacity .4s ease; }
@media (prefers-reduced-motion:reduce){ .lg-ok-c, .lg-ok-p, .lg-bar i{ animation:none; stroke-dashoffset:0; transform:none; } .lg.lg-leave .lg-panel, .lg.lg-leave .lg-show{ transition:none; } }
