@font-face {
  font-family: "IBM Plex Mono";
  src:
    url("./fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"),
    url("./fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
}

body.landing-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  font-family: "IBM Plex Mono", monospace;
  color: #fff;
  background:
    radial-gradient(
      circle at 50% 62%,
      rgba(255, 255, 255, 0.16),
      transparent 28%
    ),
    linear-gradient(180deg, rgba(4, 6, 12, 0.92) 0%, rgba(0, 0, 0, 0.94) 100%);
}

.landing-page__video,
.landing-page__overlay,
.landing-page__content {
  position: absolute;
  inset: 0;
}

.landing-page__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* opacity: 0.75; */
  filter: saturate(0.65) blur(0.2px);
  pointer-events: none;
}

.landing-page__overlay {
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.1) 32%,
      rgba(0, 0, 0, 0.56) 100%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(129, 156, 184, 0.22),
      transparent 38%
    );
  pointer-events: none;
}

.landing-page__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 2rem 5rem;
}

.landing-page__logo {
  display: block;
  width: min(60vw, 810px);
  max-width: 100%;
  height: auto;
}

.landing-page__login {
  position: absolute;
  inset-inline-end: max(0rem, env(safe-area-inset-right));
  inset-block-end: clamp(7rem, 36vh, 34rem);
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  width: clamp(19rem, 46vw, 38.75rem);
  max-width: calc(100vw - 4rem);
  min-width: 0;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.landing-page__login:hover,
.landing-page__login:focus-visible {
  opacity: 0.92;
  transform: translateX(6px);
}

.landing-page__login:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

.landing-page__caret {
  color: #e60012;
  font-size: 2.125rem;
  line-height: 1;
  transform: translateY(-1px);
}

.landing-page__label {
  font-size: 1.5rem;
  line-height: 1;
}

.landing-page__line {
  height: 1px;
  flex: 1;
  min-width: 4rem;
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 900px) {
  .landing-page__content {
    gap: 2rem;
    padding-inline: 1.5rem;
  }

  .landing-page__logo {
    width: min(82vw, 680px);
  }

  .landing-page__login {
    /* inset-block-end: clamp(5rem, 18vh, 10rem); */
    width: clamp(16rem, 76vw, 26rem);
    gap: 0.9rem;
  }

  .landing-page__label {
    font-size: 1.25rem;
  }

  .landing-page__caret {
    font-size: 1.85rem;
  }
}

@media (max-width: 560px) {
  .landing-page__content {
    justify-content: center;
    gap: 1.5rem;
    padding: 1.25rem 1.25rem 3rem;
  }

  .landing-page__logo {
    width: min(90vw, 520px);
  }

  .landing-page__login {
    /* inset-inline-end: max(0rem, env(safe-area-inset-right)); */
    /* inset-block-end: clamp(7.5rem, 20vh, 16rem); */
    width: calc(100vw - 14.5rem);
    gap: 0.75rem;
  }

  .landing-page__label {
    font-size: 1.2rem;
  }

  .landing-page__caret {
    font-size: 1.6rem;
  }
}

@media (min-width: 1620px) {
  .landing-page__login {
    /* inset-block-end: clamp(7.5rem, 20vh, 16rem); */
    width: 60rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page__login {
    transition: opacity 180ms ease;
  }

  .landing-page__login:hover,
  .landing-page__login:focus-visible {
    transform: none;
  }
}
