@font-face { font-family: 'BenchmarkForm'; font-weight: 700; font-display: swap; src: url('fonts/BenchmarkForm-Bold.a55bde3af3.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('fonts/Manrope-Regular.73665c4099.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('fonts/Manrope-SemiBold.5238caf791.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('fonts/Manrope-Bold.85165a2245.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('fonts/Manrope-ExtraBold.2bc95401b6.ttf') format('truetype'); }

/* The sky shader's colors; the gradient is what shows when WebGL is missing. */
:root {
  --sky-top: #3f86d4;
  --sky-mid: #8dbbe9;
  --sky-low: #dcebf8;
  --ink: #0a161a;
  --alpha: #0b5fc6;
  --button: #0b74e0;
  --button-press: #0963c2;
  --ease-settle: cubic-bezier(0.23, 1, 0.32, 1);
}

html:not(.signed-in),
html:not(.signed-in) body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 900ms ease;
}
.sky.is-on {
  opacity: 1;
}

.gate {
  position: relative;
  min-height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 12vh;
  text-align: center;
}
html.signed-in .gate,
html.signed-in .sky {
  display: none;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 0 40px;
  line-height: 0;
  font-size: 0;
}
.logo-word {
  width: min(440px, 78vw);
  height: auto;
  filter: drop-shadow(0 1px 18px rgb(255 255 255 / 0.55));
}
.logo-alpha {
  width: min(112px, 22vw);
  /* the handwriting rises about 10 degrees; this sets its baseline level */
  transform: rotate(10deg);
  height: auto;
  aspect-ratio: 793 / 428;
  fill: var(--alpha);
  filter: drop-shadow(0 0 10px rgb(255 255 255 / 0.75)) drop-shadow(0 1px 1px rgb(255 255 255 / 0.6));
}

.signin {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 0 38px 0 12px;
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px -12px rgb(8 52 110 / 0.6);
  transition: background-color 160ms ease, transform 160ms var(--ease-settle);
  -webkit-tap-highlight-color: transparent;
}
.signin:hover {
  background: var(--button-press);
}
.signin:active {
  transform: scale(0.97);
}
.signin:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.g-chip {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
}
.g-chip svg {
  width: 28px;
  height: 28px;
}

.note {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: rgb(10 22 26 / 0.72);
}
.note-error {
  margin-top: 8px;
  color: #8a1020;
}

/* One calm entrance after the session check: logo, then the button. */
.js .gate > * {
  opacity: 0;
}
.js .gate.is-in > * {
  animation: rise 700ms var(--ease-settle) both;
}
.js .gate.is-in > .signin {
  animation-delay: 140ms;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .gate.is-in > * {
    animation: fade 300ms ease both;
  }
  .sky {
    transition: none;
  }
  .signin:active {
    transform: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
