/* ACC Daily · gate (hosted copy only): sign-in, loading and error screens shown before the app mounts.
 * Uses the app tokens (tokens.css) and the header's wordmark. Prefix gt-. */
/* a fixed layer over #app, so the app can mount under it and the layer just goes away (no jump) */
.gt { position: fixed; inset: 0; z-index: 100; overflow-y: auto; display: flex; flex-direction: column; align-items: center;
  padding: 48px 16px 64px; background: var(--page); }
.gt > * { margin: auto 0; }
.gt[hidden] { display: none !important; }
.gt__card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--rule-heavy);
  padding: 32px 32px 28px; }
.gt__word { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-1); }
.gt__mark { width: 34px; height: 34px; border: 2px solid var(--ink-1); display: inline-flex; align-items: center; justify-content: center;
  font: 700 12px/1 var(--font-ui); font-stretch: 100%; letter-spacing: -.01em; }
.gt__name { font: 600 var(--fs-18)/22px var(--font-ui); white-space: nowrap; }
.gt__title { margin-top: 28px; font: 600 var(--fs-20)/26px var(--font-ui); color: var(--ink-1); }
.gt__sub { margin-top: 6px; font: 400 var(--fs-14)/20px var(--font-ui); color: var(--ink-2); }

.gt__form { margin-top: 20px; display: grid; gap: 14px; }
.gt__label { display: grid; gap: 6px; }
.gt__label .c-cap { color: var(--ink-2); }
.gt__in { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--ink-4); border-radius: var(--r-2); background: var(--surface);
  color: var(--ink-1); font: 400 var(--fs-16)/20px var(--font-ui); }
.gt__in:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink-1); }
.gt__in[aria-invalid="true"] { border-color: var(--critical); }
.gt__btn { height: 44px; width: 100%; justify-content: center; font-size: var(--fs-15); }
.gt__btn[disabled] { background: var(--ink-3); border-color: var(--ink-3); color: var(--accent-ink); cursor: progress; }
.gt__err { display: flex; align-items: flex-start; gap: 8px; min-height: 20px; font: 500 var(--fs-14)/20px var(--font-ui); color: var(--critical-text); }
.gt__err:empty { display: none; }
.gt__err svg { flex: none; margin-top: 3px; }
.gt__note { margin-top: 20px; font: 400 var(--fs-12)/16px var(--font-ui); font-stretch: 92%; color: var(--ink-3); }

/* loading and errors: no card frame, just the wordmark and one quiet line */
.gt__status { display: grid; justify-items: center; gap: 18px; text-align: center; max-width: 380px; }
.gt__status .gt__title { margin-top: 4px; }
.gt__status .gt__sub { margin-top: 0; }
.gt__bar { width: 160px; height: 2px; background: var(--rule); overflow: hidden; position: relative; }
.gt__bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--ink-1); animation: gt-slide 1.1s ease-in-out infinite; }
@keyframes gt-slide { from { left: -40%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .gt__bar::after { animation: none; left: 30%; } }
.gt__wait { opacity: 0; transition: opacity 200ms ease 400ms; }
.gt__wait.is-on { opacity: 1; }
.gt__status .c-btn { margin-top: 4px; }

@media (max-width: 439px) {
  .gt { padding-top: 40px; }
  .gt > .gt__card { margin-top: 0; }
  .gt__card { padding: 24px 20px 22px; }
}
.gt__slow { margin-top: 0; min-height: 16px; max-width: 360px; }
