/* The welcome page of the public edition (SPEC 12, A-PUB-1). Signed out, a visitor gets tokens.css and this file
   only (styles.css and kit.css sit behind the sign-in), so the shell's rules this page uses are restated here for
   the same classes, token for token: the brand mark, the command line and its error, the primary button, the
   status bar. No colour, size or duration is written as a literal. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
  background: var(--ground); color: var(--ink); font: var(--t-13); font-variant-numeric: tabular-nums;
  font-feature-settings: var(--features); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: var(--ring-w) solid var(--ring); outline-offset: var(--ring-offset); }
::selection { background: var(--blue); color: var(--on-blue); }
.faint { color: var(--faint); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.view {
  flex: 1 0 auto; display: flex; align-items: center; justify-content: center;
  padding: var(--sp-32) var(--sp-16) calc(var(--foot-h) + var(--sp-32) * 2);
}
.cmdline { display: flex; flex-direction: column; width: 100%; max-width: calc(var(--palette-w) * 0.7); }

.brand { display: flex; align-items: center; gap: var(--sp-12); color: var(--ink); }
.brand-src { flex: none; color: var(--blue-ink); }
.brand-dot { fill: var(--ink); }
.brand-word { font: 600 var(--fs-24)/1 var(--brand-face); letter-spacing: -0.01em; color: var(--ink); }
.t-28 { margin-top: var(--sp-16); font: var(--t-28); letter-spacing: var(--track-28); color: var(--ink); }
.lede { margin-top: var(--sp-8); font: var(--t-13); color: var(--ink-2); }

.cl-wrap {
  display: flex; align-items: stretch; height: calc(var(--key-h) + var(--sp-4)); margin-top: var(--sp-32);
  background: var(--panel); border: 1px solid var(--edge);
}
.cl-wrap:focus-within { border-color: var(--ring); box-shadow: var(--halo); }
.k-form-l {
  display: flex; align-items: center; flex: none; padding: 0 var(--sp-12); border-right: 1px solid var(--rule-2);
  font: var(--t-11); letter-spacing: var(--track-head); color: var(--blue-ink); white-space: nowrap; cursor: text;
}
#cl-input {
  flex: 1 1 auto; width: 100%; min-width: 0; padding: 0 var(--sp-12); background: transparent; border: 0;
  outline: none; color: var(--ink); font: var(--t-13);
}

.k-btn {
  display: flex; align-items: center; justify-content: center; height: calc(var(--key-h) + var(--sp-4));
  margin-top: var(--sp-8); padding: 0 var(--sp-12); border-radius: var(--r-pill); border: 1px solid var(--rule-2);
  font: var(--t-13); font-weight: 500; white-space: nowrap; user-select: none;
  transition: background-color var(--dur-1) var(--ease-std), border-color var(--dur-1) var(--ease-std),
    transform var(--dur-2) var(--ease-out);
}
.k-btn-primary { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.k-btn-primary:focus-visible { outline-color: var(--on-blue); }
@media (hover: hover) {
  .k-btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
}
@media (hover: hover) and (pointer: fine) {
  .k-btn:active:hover { transform: scale(var(--scale-press)); }
}

#cl-error { margin-top: var(--sp-12); font: var(--t-12); }
.cl-error {
  padding: var(--sp-8) var(--sp-12); background: var(--pop); color: var(--ink); border: 1px solid var(--rule-2);
  border-left: 2px solid var(--err); font: var(--t-13);
}
#cl-error.cl-error { font: var(--t-13); }

.statusbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--foot-h); z-index: 50;
  display: flex; align-items: stretch; background: var(--chrome); border-top: 1px solid var(--rule-2);
  color: var(--ink-2); font: var(--t-11); white-space: nowrap;
}
.statusbar > * { flex: none; display: flex; align-items: center; padding: 0 var(--sp-12); border-right: 1px solid var(--rule); }
.statusbar > .tb-spacer { flex: 1 1 0; min-width: 0; padding: 0; border: 0; }
.statusbar > .tb-spacer ~ * { border-right: 0; border-left: 1px solid var(--rule); }
.sb-footer, .sb-beta { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* a phone: the field's text at 16px so the browser does not zoom, and the status bar's two lines stacked */
@media (max-width: 600px) {
  .view { align-items: flex-start; padding-top: calc(var(--sp-32) * 3); }
  .brand-word { font-size: var(--fs-18); }
  .brand-src { width: var(--sp-24); height: var(--sp-24); }
  .t-28 { margin-top: var(--sp-12); }
  #cl-input { font-size: var(--fs-18); }
  .statusbar { height: auto; flex-direction: column; white-space: normal; padding-bottom: env(safe-area-inset-bottom); }
  .statusbar > * { padding: var(--sp-4) var(--sp-12); border-right: 0; }
  .statusbar > .tb-spacer { display: none; }
  .statusbar > .tb-spacer ~ * { border-left: 0; border-top: 1px solid var(--rule); }
  .sb-footer, .sb-beta { overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  .k-btn { transition: none; }
}
