/* Brand wordmark entrance adapted from the supplied chromatic assemble effect.
   Typography intentionally inherits the existing login font and weight. */
.login-mark-wordmark {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font: inherit;
  letter-spacing: inherit;
  line-height: 1;
}

.login-mark-char {
  display: inline-block;
  transform-origin: 50% 78%;
  will-change: transform, opacity, filter;
}

.login-mark-space {
  display: inline-block;
  width: .28em;
}

.login-motion-root.is-motion-ready .login-mark-logo {
  animation: login-logo-arrive 520ms var(--ease-out) both;
}

.login-motion-root.is-motion-ready .login-mark-char {
  animation: login-wordmark-assemble 760ms var(--ease-out) var(--delay) both;
}

.login-motion-root.is-motion-settled .login-mark-char,
.login-motion-root.is-motion-settled .login-mark-logo {
  will-change: auto;
}

.login-intro[hidden] {
  display: none !important;
}

.login-intro {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 32px;
  color: #f7faff;
  background:
    radial-gradient(circle at 50% 43%, rgba(52, 117, 255, .38), transparent 34%),
    radial-gradient(ellipse at 50% 105%, rgba(12, 48, 132, .72), transparent 60%),
    linear-gradient(155deg, #07142f 0%, #071e52 52%, #03112d 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 560ms var(--ease-out), visibility 0s linear 560ms;
}

.login-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image:
    linear-gradient(rgba(151, 187, 255, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 187, 255, .16) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 48%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 0%, transparent 68%);
}

.login-intro::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(78vw, 920px);
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(153, 202, 255, .65), transparent);
  opacity: 0;
  animation: login-intro-line 680ms 300ms var(--ease-out) both;
}

.login-intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-intro-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  width: min(1040px, 100%);
  text-align: center;
}

.login-intro-brand {
  display: flex;
  gap: clamp(18px, 2.4vw, 32px);
  align-items: center;
  justify-content: center;
  color: #f8fbff;
  font: inherit;
  font-size: clamp(46px, 7.2vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.028em;
}

.login-intro-brand .company-logo {
  width: clamp(72px, 8.4vw, 112px);
  height: clamp(72px, 8.4vw, 112px);
  flex-basis: clamp(72px, 8.4vw, 112px);
}

.login-intro-brand .company-logo img {
  width: 210%;
  height: 210%;
  filter: brightness(0) invert(1);
}

.login-intro-welcome {
  display: grid;
  gap: 10px;
  justify-items: center;
  opacity: 0;
  animation: login-welcome-arrive 480ms 560ms var(--ease-out) both;
}

.login-intro-welcome h1 {
  margin: 0;
  color: #f7faff;
  font: inherit;
  font-size: clamp(24px, 3.1vw, 38px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .015em;
}

.login-intro-caption {
  margin: 0;
  color: rgba(206, 224, 255, .72);
  font: inherit;
  font-size: 14px;
  letter-spacing: .22em;
}

#loginScreen.login-intro-active #liveLogin {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 10px, 0);
}

#loginScreen.is-revealed #liveLogin {
  visibility: visible;
  animation: login-page-arrive 420ms var(--ease-out) both;
}

@keyframes login-logo-arrive {
  from {
    opacity: 0;
    transform: translate3d(-18px, 4px, 0) scale(.82);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes login-wordmark-assemble {
  0% {
    opacity: 0;
    filter: blur(1.8px);
    transform: translate3d(var(--dx), var(--dy), 0) scale(1.3);
    text-shadow:
      -10px 0 rgba(0, 98, 255, .46),
      10px 0 rgba(0, 211, 255, .34),
      0 5px 0 rgba(213, 48, 154, .2);
  }
  58% {
    opacity: 1;
    filter: blur(.35px);
    transform: translate3d(calc(var(--dx) * .08), calc(var(--dy) * .08), 0) scale(1.045);
    text-shadow:
      -2px 0 rgba(0, 98, 255, .2),
      2px 0 rgba(0, 211, 255, .16),
      0 1px 0 rgba(213, 48, 154, .08);
  }
  100% {
    opacity: 1;
    filter: none;
    transform: translate3d(0, 0, 0) scale(1);
    text-shadow: none;
  }
}

@keyframes login-intro-line {
  from {
    opacity: 0;
    transform: translate3d(-50%, 0, 0) scaleX(.18);
  }
  to {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scaleX(1);
  }
}

@keyframes login-page-arrive {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes login-welcome-arrive {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-motion-root.is-motion-ready .login-mark-logo,
  .login-motion-root.is-motion-ready .login-mark-char,
  .login-intro::after,
  .login-intro-welcome {
    animation: none !important;
    opacity: 1;
    filter: none;
    transform: none;
    text-shadow: none;
    will-change: auto;
  }

  .login-intro {
    transition: opacity 180ms ease;
  }

  #loginScreen.is-revealed #liveLogin {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 560px) {
  .login-intro {
    padding: 24px 18px;
  }

  .login-intro-brand {
    flex-direction: column;
    gap: 18px;
    max-width: 100%;
    font-size: clamp(42px, 12.5vw, 54px);
  }

  .login-intro-brand .company-logo {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .login-intro-welcome h1 {
    font-size: 23px;
  }

  .login-intro-caption {
    font-size: 11px;
    letter-spacing: .16em;
  }
}
