/* Login gate: floating knot draw, no box / no solid backdrop */

.login-knot-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.login-knot-gate.is-on {
  opacity: 1;
  visibility: visible;
}

.login-knot-gate__mark {
  width: min(560px, 78vw);
  line-height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.28));
}

.login-knot-gate__mark svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  background: transparent;
}

.mx-login-knot-s {
  fill: none;
  stroke-width: 55;
  stroke-linejoin: round;
  stroke-dasharray: 1.01;
  stroke-dashoffset: 1.01;
  animation: mx-login-knot-draw var(--t) cubic-bezier(0.55, 0.05, 0.3, 1) var(--d) forwards;
}

.mx-login-knot-tail {
  stroke-linecap: round;
  --t: 1.8s;
  --d: 0s;
}

.mx-login-knot-lobe {
  stroke-linecap: butt;
  --t: 2.6s;
  --d: 1.1s;
}

@keyframes mx-login-knot-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-knot-gate {
    transition: none;
  }
  .mx-login-knot-s {
    animation: none;
    stroke-dashoffset: 0;
  }
}
