/* zyx: the three pages its login gateway serves in front of the deployed app (ezd: landing, sign-in, starting).

   They are dressed by the app itself. Each page loads the app's own stylesheet and its themes (assets/app.css and
   assets/themes.css, copies of ui/flow/styles.css and themes.css: scripts/site.sh) and is built from the app's own
   parts: its masthead and wordmark, its buttons, a dialog's panel for the card. So a page here is in whichever style
   the Design tab has picked, in the app or on these pages (the choice is kept in one place: assets/design.js).

   What is here is only what these pages have that the app does not: where things sit, the landing page's few large
   words over its swarm, a field.
   Colours, type and corners are the app's tokens and nothing else, so every style, light or dark, carries. */

/* One column, the app's width for reading. (The app's front page, whose parts these are, becomes two columns on a
   wide window, with its lists of runs in the second: there is no second here.) */
main.home.gate { max-width: 780px; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-start; padding-bottom: 28px; }
.gate-wordmark { color: inherit; text-decoration: none; }
.gate-blurb:empty, .gate-foot:empty { display: none; }
.gate-open { margin: 0; }
.gate-foot { margin-top: auto; padding-top: 56px; color: var(--ink-3); font-size: 12.5px; }

/* the landing page: a few words set large, and behind the whole page a swarm of dots (assets/swarm.js), which goes
   round the words. The canvas is the window's size and takes no clicks; the page is above it. */
.gate-swarm { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
main.home.gate { position: relative; z-index: 1; }
.gate-hero { align-self: flex-start; max-width: 600px; margin-top: clamp(56px, 19vh, 200px); }
/* (the size only: the face, weight and spacing of a heading are each style's own) */
main.home.gate .gate-hero h1 { margin: 0 0 28px; font-size: clamp(34px, 5.6vw, 58px); line-height: 1.06; }
.gate-hero .lede { max-width: 30em; margin: 0 0 28px; font-size: 17px; }

/* sign-in and starting: one card, the panel the app puts a dialog in */
.gate-card { align-self: center; max-width: 400px; margin-top: min(14vh, 120px); padding: 22px 24px 20px; }
.gate-card .modal-head h2 { margin: 0; }
.gate-card label { display: block; margin: 16px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.gate-card input {
  width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: calc(8px * var(--round));
  background: var(--surface); color: var(--ink); font-size: 14.5px;
}
.gate-card input:hover { border-color: var(--ink-3); }
.gate-card .modal-foot { margin-top: 20px; }
.gate-note { align-self: center; max-width: 400px; margin: 14px 0 0; color: var(--ink-3); font-size: 12.5px; text-align: center; }
/* what the gateway says when a sign-in fails (its own markup: <p class="login-error" role="alert">) */
.login-error { margin: 14px 0 0; padding: 10px 12px; border-radius: calc(10px * var(--round)); background: var(--neg-soft); color: var(--ink); font-size: 13.5px; }

/* the starting page: the line the gateway's script writes its progress into. It holds two lines' height, so the card
   does not move when the wording changes. */
.gate-wait { display: flex; align-items: flex-start; gap: 10px; min-height: 3em; margin: 16px 0 0; color: var(--ink-2); font-size: 14px; }
.gate-wait .spinner { width: 16px; height: 16px; margin-top: 2px; }
.gate-out { margin-top: 10px; }
