@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-display: swap;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0b0b0d;
  overflow-x: hidden;
}

.logo-button {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.logo-button:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 4px;
  border-radius: 8px;
}

/* The logo's grey backdrop fades out at the edges so it blends into the page */
.logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 45%,
    transparent 72%
  );
  mask-image: radial-gradient(ellipse at center, #000 45%, transparent 72%);
}

.stage {
  position: relative;
}

/* CLI login: floats over the empty backdrop just below the WOLF lettering,
   so opening it never moves or resizes the logo */
.terminal {
  position: absolute;
  top: 76%;
  left: 50%;
  transform: translateX(-50%);
  width: 26ch;
  max-width: calc(100vw - 32px);
  font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #a1a1aa;
  cursor: text;
  animation: terminal-in 0.4s ease;
}

.terminal[hidden] {
  display: none;
}

.line {
  display: flex;
  gap: 1ch;
  margin: 0;
  min-height: 1.6em;
  white-space: pre-wrap;
  word-break: break-all;
}

.line[hidden] {
  display: none;
}

.terminal label,
.terminal .hint {
  flex: none;
  color: #6b6b74;
}

.terminal input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  color: inherit;
  caret-color: #a1a1aa;
}

/* Like a real terminal, the password is not echoed */
.terminal input.no-echo {
  color: transparent;
}

@keyframes terminal-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terminal {
    animation: none;
  }
}
