/* The login sheet (templates/_login_sheet.html + static/login-sheet.js).
   Self-contained so the public site shell (site.css tokens) and the app shell (samay.css tokens) render the same
   sheet: each colour reads the site token first and the app token second, and no colour is typed here. */
html.login-open{overflow:hidden}
.lsx-scrim{--lsx-fg:var(--fg,var(--text));--lsx-bg:var(--bg2,var(--bg-2,var(--bg)));--lsx-mut:var(--muted);--lsx-line:var(--line2,var(--line));
  --lsx-acc:var(--gold-hi);--lsx-ink:var(--gold-ink,var(--bg));
  position:fixed;inset:0;z-index:1300;display:flex;align-items:center;justify-content:center;padding:16px;
  background:color-mix(in srgb,var(--bg) 72%,transparent);color:var(--lsx-fg);font:400 16px/1.5 var(--f-body,system-ui,sans-serif)}
.lsx-scrim[hidden]{display:none}
.lsx-sheet{width:min(100%,420px);background:var(--lsx-bg);border:1px solid var(--lsx-line);border-radius:24px;padding:22px;
  display:flex;flex-direction:column;
  /* One height for every step. The sheet used to grow and shrink with the step, so the buttons moved under a finger
     that was already coming down. The steps share one slot and the message line is reserved; extra content (More
     options) scrolls inside the sheet instead of resizing it. dvh/--vvh follow the on-screen keyboard. */
  height:min(620px,calc(var(--vvh,100dvh) - 32px));overflow-y:auto;overscroll-behavior:contain}
.lsx-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;height:48px;flex:none}
.lsx-top h2{margin:0;font:500 28px/48px var(--f-display,inherit);white-space:nowrap}
/* reserved: 2 x 44px targets, always present */
.lsx-lang{display:flex;flex:none;border:1px solid var(--lsx-line);border-radius:999px;overflow:hidden}
.lsx-lang button{min-width:44px;min-height:44px;padding:0 12px;border:0;background:none;color:var(--lsx-fg);font-size:14px}
.lsx-lang button[aria-pressed="true"]{background:var(--lsx-acc);color:var(--lsx-ink)}
.lsx-lead{margin:4px 0 14px;color:var(--lsx-mut);font-size:14px;line-height:21px;min-height:42px}
.lsx-step{min-height:176px}
.lsx-step[hidden],.lsx-more[hidden],.lsx-field[hidden]{display:none}
.lsx-label{display:block;margin:0 0 6px;font-size:14px;color:var(--lsx-mut)}
.lsx-inrow{display:flex;gap:8px;margin-bottom:12px}
.lsx-inp{width:100%;min-height:48px;padding:0 14px;border-radius:12px;border:1px solid var(--lsx-line);background:transparent;color:var(--lsx-fg);font:inherit;font-size:17px;box-sizing:border-box}
.lsx-inrow .lsx-inp{flex:1;min-width:0}
.lsx-cc{flex:none;width:64px;min-height:48px;display:grid;place-items:center;border-radius:12px;border:1px solid var(--lsx-line);color:var(--lsx-mut)}
.lsx-code{letter-spacing:.4em;text-align:center;font-size:22px;margin-bottom:12px}
.lsx-field{margin-bottom:10px}
.lsx-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;padding:0 20px;border-radius:999px;border:1px solid var(--lsx-line);
  background:none;color:var(--lsx-fg);font:inherit;font-size:16px;font-weight:500;text-decoration:none;cursor:pointer;box-sizing:border-box}
.lsx-btn[hidden]{display:none}
.lsx-primary{background:var(--lsx-acc);border-color:var(--lsx-acc);color:var(--lsx-ink)}
.lsx-btn:disabled{opacity:.6;cursor:default}
.lsx-row{display:flex;justify-content:space-between;gap:12px;margin-top:4px}
.lsx-link{display:inline-flex;align-items:center;min-height:44px;background:none;border:0;padding:0 4px;font:inherit;font-size:14px;color:var(--lsx-acc);text-decoration:underline;cursor:pointer}
.lsx-link:disabled{color:var(--lsx-mut);text-decoration:none;cursor:default}
/* reserved so a long error never moves the buttons below it */
.lsx-msg{min-height:3.2em;margin:8px 0 0;font-size:14px;color:var(--lsx-mut)}
.lsx-msg.bad{color:var(--lsx-fg);border-left:3px solid var(--lsx-acc);padding-left:10px}
.lsx-alt{display:flex;flex-direction:column;gap:6px;align-items:center;margin-top:6px}
.lsx-more{margin-top:8px;padding-top:12px;border-top:1px solid var(--lsx-line)}
.lsx-seg{display:flex;border:1px solid var(--lsx-line);border-radius:999px;overflow:hidden;margin-bottom:12px}
.lsx-seg button{flex:1;min-height:44px;border:0;background:none;color:var(--lsx-fg);font:inherit;font-size:14px}
.lsx-seg button[aria-pressed="true"]{background:var(--lsx-acc);color:var(--lsx-ink)}
.lsx-close{margin-top:auto;flex:none}
.lsx-more + .lsx-close{margin-top:14px}
.lsx-sheet :focus-visible{outline:2px solid var(--lsx-acc);outline-offset:3px}
/* phones: a bottom sheet, so the thumb reaches it and the keyboard rises under it */
@media (max-width:520px){
  .lsx-scrim{align-items:flex-end;padding:0}
  .lsx-sheet{width:100%;border-radius:24px 24px 0 0;height:min(620px,calc(var(--vvh,100dvh) - 12px));padding-bottom:max(22px,env(safe-area-inset-bottom,0px))}
}
@media (prefers-reduced-motion:no-preference){.lsx-sheet{animation:lsx-in .18s ease-out}@keyframes lsx-in{from{transform:translateY(12px);opacity:.6}}}
