.auth-animated-card {
  --auth-border-radius: 24px;
  --auth-border-size: 2px;
  --auth-border-glow: rgba(51, 255, 204, 0.22);
  position: relative;
  border-radius: var(--auth-border-radius);
  isolation: isolate;
}

.auth-animated-card::before {
  content: "";
  position: absolute;
  inset: calc(var(--auth-border-size) * -1);
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #00e5ff, #7c3aed, #ff2d95, #ffb800, #00d084, #00e5ff)
    0 0 / 400% 100%;
  animation: authBorderFlow 7s linear infinite;
  box-shadow:
    0 0 18px var(--auth-border-glow),
    0 0 34px rgba(124, 58, 237, 0.16);
}

.auth-animated-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: calc(var(--auth-border-radius) - 1px);
  background: inherit;
  pointer-events: none;
}

.auth-animated-card > .card,
.auth-animated-card > .login-box,
.auth-animated-card > .block-signin__card,
.block-signin__card.auth-animated-card,
.well.auth-animated-card {
  position: relative;
  z-index: 1;
  border: 0 !important;
  border-radius: calc(var(--auth-border-radius) - 2px) !important;
}

@keyframes authBorderFlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 400% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-animated-card::before {
    animation: none;
  }
}
