/* gate.css — the Lyra gate's shared look (2026-11-07). CANONICAL COPY in
   07.Portfolio/accounts/public/; other apps carry a synced copy (accounts/scripts/sync-gate.sh).
   Everything is prefixed lg- / lyra-gate so it can sit inside any app's stylesheet.

   A sign-in screen built from these parts looks like the Accounts gate:
     .lg-screen            full-screen dark stage, content centred
       canvas.lyra-gate-sky  the WebGL sky + ring (gate.js); fixed, behind everything
       .lg-stage             the column
         .lg-gate            the ring's anchor (a round hit area; put data-anchor on the canvas)
         .lg-mark            optional quiet wordmark under the ring
         .lg-orbs > .lg-orb  round glass buttons (Google, email, …), icon only + aria-label
         .lg-line            an input on a single line with a leading icon, no box
         .lg-glyphs > .lg-glyph(.go)  small round icon buttons (back, submit, …)
         .lg-btn(.go)        a glass pill with words, for screens that need them
         .lg-check           consent checkbox row
         .lg-whisper / .lg-err  the only prose: hints and errors */

.lyra-gate-sky {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 0; display: block;
  pointer-events: none;
  /* shown only when WebGL is missing: a still version of the same sky */
  background: radial-gradient(ellipse 70% 55% at 50% 36%, #2a1d5c 0%, #0d0828 50%, #05040f 100%);
}
html.lyra-gate-on .lyra-gate-sky { background: #05040f; }

.lg-screen {
  --lg-abyss: #05040f; --lg-deep: #0d0828; --lg-ice: #9fe6ff; --lg-gold: #ffd29a; --lg-lilac: #b9a2ff;
  --lg-ink: #f4f0ff; --lg-mist: rgba(222, 216, 245, .74); --lg-faint: rgba(222, 216, 245, .32);
  --lg-glass: rgba(255, 255, 255, .05); --lg-rim: rgba(255, 236, 210, .18); --lg-rose: #ff9aa8;
  color-scheme: dark; position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center;
  background: var(--lg-abyss); color: var(--lg-ink); overflow-x: hidden;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.lg-screen svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; }
.lg-stage { position: relative; z-index: 1; width: min(100% - 32px, 340px); padding: 6vh 0 8vh;
  display: flex; flex-direction: column; align-items: center; gap: 28px; }

/* the ring's anchor: a round hit area the WebGL ring is drawn on */
.lg-gate { --size: min(72vw, 320px, 42vh); position: relative; width: var(--size); height: var(--size);
  flex: none; border-radius: 50%; border: 0; padding: 0; background: none; color: inherit; }
button.lg-gate { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lg-gate:focus-visible { outline: 1px solid var(--lg-ice); outline-offset: 10px; }
html:not(.lyra-gate-on) .lg-gate::before { /* fallback ring when WebGL is missing */
  content: ""; position: absolute; inset: 7%; border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(255, 246, 232, .9), 0 0 18px 4px rgba(255, 210, 154, .45),
    0 0 60px 14px rgba(185, 162, 255, .25), inset 0 0 40px 6px rgba(159, 230, 255, .18);
}

.lg-mark { margin: -10px 0 0; font-size: 12px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--lg-faint); text-indent: .42em; }

.lg-orbs { display: flex; gap: 22px; justify-content: center; animation: lg-rise .5s ease both; }
.lg-orb, .lg-glyph, .lg-btn { position: relative; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--lg-rim); background: var(--lg-glass); color: #efe9ff; cursor: pointer; padding: 0;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .25s, box-shadow .25s, transform .25s; -webkit-tap-highlight-color: transparent; }
.lg-orb { width: 58px; height: 58px; }
.lg-glyph { width: 44px; height: 44px; color: var(--lg-mist); }
.lg-glyph svg { width: 19px; height: 19px; }
.lg-btn { width: 100%; min-height: 48px; border-radius: 999px; padding: 0 20px; display: flex; gap: 10px;
  justify-content: center; align-items: center; font-size: 15px; letter-spacing: .02em; }
.lg-btn svg { width: 18px; height: 18px; }
.lg-orb:hover, .lg-glyph:hover, .lg-btn:hover { border-color: rgba(255, 214, 160, .55);
  box-shadow: 0 0 24px rgba(255, 210, 154, .18), inset 0 1px 0 rgba(255, 255, 255, .08); transform: translateY(-1px); }
.lg-orb:focus-visible, .lg-glyph:focus-visible, .lg-btn:focus-visible { outline: 2px solid var(--lg-ice); outline-offset: 3px; }
.lg-orb:disabled, .lg-glyph:disabled, .lg-btn:disabled { opacity: .45; cursor: progress; transform: none; }
.lg-glyph.go, .lg-btn.go { color: #fff; border-color: rgba(255, 220, 175, .5);
  background: linear-gradient(180deg, rgba(255, 226, 190, .14), rgba(255, 255, 255, .04)); }
.lg-glyphs { display: flex; justify-content: center; gap: 16px; margin-top: 8px; }

.lg-form { width: 100%; display: grid; gap: 14px; animation: lg-rise .5s ease both; }
.lg-line { display: flex; align-items: center; gap: 12px; color: var(--lg-mist);
  border-bottom: 1px solid var(--lg-rim); padding: 2px 2px 0; transition: border-color .3s, box-shadow .3s; }
.lg-line:focus-within { border-color: var(--lg-gold); box-shadow: 0 10px 18px -16px var(--lg-gold); color: #fff; }
.lg-line svg { flex: none; width: 19px; height: 19px; }
.lg-line input { flex: 1; min-width: 0; border: 0; border-radius: 0; background: transparent; padding: 12px 0;
  color: #f8f5ff; font: inherit; font-size: 17px; letter-spacing: .02em; caret-color: var(--lg-gold); outline: none;
  box-shadow: none; }
.lg-line input::placeholder { color: rgba(222, 216, 245, .3); letter-spacing: .08em; }
/* browsers paint autofilled fields with a light box (the "white box", 2026-11-07): clip it to the glyphs */
.lg-line input:-webkit-autofill, .lg-line input:-webkit-autofill:hover, .lg-line input:-webkit-autofill:focus,
.lg-line input:autofill { -webkit-text-fill-color: #f8f5ff; caret-color: var(--lg-gold);
  -webkit-background-clip: text; background-clip: text; box-shadow: none;
  transition: background-color 99999s ease-out 0s; }
.lg-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--lg-mist); }
.lg-check input { margin-top: 2px; width: 17px; height: 17px; flex: none; accent-color: var(--lg-gold); }
.lg-check a, .lg-whisper a { color: var(--lg-ice); }
.lg-whisper { margin: 0; max-width: 34ch; text-align: center; font-size: 14px; color: var(--lg-mist); }
.lg-link { background: none; border: 0; padding: 6px 2px; color: var(--lg-mist); font: inherit; font-size: 14px;
  cursor: pointer; text-decoration: none; }
.lg-link:hover { color: #fff; }
.lg-err { margin: 0; min-height: 1.5em; max-width: 34ch; text-align: center; font-size: 14px; color: var(--lg-rose); }
.lg-err:empty { visibility: hidden; }

@keyframes lg-rise { from { opacity: 0; translate: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .lg-orbs, .lg-form { animation: none; } }
