.login-brand-side.login-with-video {
  isolation: isolate;
}

.login-with-video .login-art,
.login-with-video::after,
.login-with-video .login-hero-media {
  display: none;
}

.login-hero-toggle {
  align-self: flex-end;
  position: absolute;
  z-index: 2;
  right: clamp(24px, 3vw, 64px);
  bottom: 24px;
  border: 1px solid #c8deff60;
  border-radius: 999px;
  padding: 7px 13px;
  background: #0c1d35cc;
  color: #ebf3ff;
  font-size: 12px;
}

@media (min-width: 651px) {
  .login-with-video .login-hero-media {
    display: block;
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: #10223d url("./login-hero.webp") 60% center / cover no-repeat;
  }

  .login-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, #0c1d36f5 0%, #10223de8 24%, #10223dca 43%, #10223d80 64%, #10223d18 100%),
      linear-gradient(0deg, #0a1931d4, transparent 25%, transparent 83%, #0a19315e);
  }

  .login-hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% center;
    opacity: 0;
  }

  .login-hero-media video.is-ready {
    opacity: 1;
  }

  .login-with-video .login-story p,
  .login-with-video .login-kicker,
  .login-with-video .login-pipeline,
  .login-with-video .login-pipeline b,
  .login-with-video .login-brand-foot {
    color: #c2d5f0;
  }

  .login-with-video .login-brand-foot {
    padding-right: 105px;
  }
}

@media (min-width: 651px) and (max-width: 900px) {
  .login-hero-media::after {
    background:
      linear-gradient(90deg, #0a1931f5, #10223dd6 52%, #10223db0),
      linear-gradient(0deg, #0a1931dc, transparent 40%);
  }
}

@media (max-width: 650px), (prefers-reduced-motion: reduce) {
  .login-hero-toggle {
    display: none;
  }
}
