body.edc-auth-page {
  --edc-blue-950: #051433;
  --edc-blue-900: #0a2257;
  --edc-blue-800: #12357e;
  min-height: 100vh;
  background:
    radial-gradient(1200px 720px at -14% -16%, rgba(93, 140, 255, 0.34) 0%, rgba(93, 140, 255, 0) 54%),
    radial-gradient(1300px 760px at 106% 4%, rgba(60, 167, 217, 0.26) 0%, rgba(60, 167, 217, 0) 48%),
    radial-gradient(1400px 800px at 52% 118%, rgba(39, 94, 211, 0.22) 0%, rgba(39, 94, 211, 0) 46%),
    linear-gradient(150deg, var(--edc-blue-950) 0%, var(--edc-blue-900) 42%, var(--edc-blue-800) 100%);
}

.edc-auth-content {
  position: relative;
  z-index: 2;
}

.edc-auth-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.edc-auth-bg .edc-blob {
  position: absolute;
  filter: blur(56px);
  opacity: 0.35;
  animation: edc-float 18s ease-in-out infinite;
}

.edc-auth-bg .b1 {
  width: 540px;
  height: 540px;
  left: -180px;
  top: -160px;
  background: #2e63d7;
}

.edc-auth-bg .b2 {
  width: 460px;
  height: 460px;
  right: -150px;
  top: -120px;
  background: #2e8fc4;
  animation-delay: 2.8s;
}

.edc-auth-bg .b3 {
  width: 560px;
  height: 560px;
  right: -230px;
  bottom: -230px;
  background: #1c4db4;
  animation-delay: 5.2s;
}

.edc-auth-bg .b4 {
  width: 420px;
  height: 420px;
  left: 12%;
  bottom: -210px;
  background: #1f4ca6;
  animation-delay: 8.4s;
}

.edc-auth-bg .finance-sky {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

.edc-auth-bg .finance-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(145deg, var(--c1, #3f8bff), var(--c2, #2558d8));
  box-shadow: 0 14px 34px rgba(5, 20, 51, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: edc-drift var(--dur, 12s) cubic-bezier(0.42, 0.05, 0.58, 0.95) infinite,
    edc-glow calc(var(--dur, 12s) * 0.72) ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  will-change: transform, filter;
}

.edc-auth-bg .finance-icon i {
  font-size: 26px;
  line-height: 1;
  animation: edc-icon-sway calc(var(--dur, 12s) * 0.55) ease-in-out infinite;
}

.edc-auth-bg .f1 {
  top: 11%;
  left: 10%;
  --r: -7deg;
  --c1: #3f8bff;
  --c2: #2558d8;
  --mx: 22px;
  --my: 15px;
  --dur: 11.5s;
}

.edc-auth-bg .f2 {
  top: 18%;
  right: 14%;
  --r: 8deg;
  --c1: #12b7ff;
  --c2: #0666cc;
  --mx: -17px;
  --my: 18px;
  --dur: 13.2s;
}

.edc-auth-bg .f3 {
  top: 36%;
  left: 6%;
  --r: -6deg;
  --c1: #2ec4b6;
  --c2: #1b8f84;
  --mx: 19px;
  --my: -14px;
  --dur: 10.8s;
}

.edc-auth-bg .f4 {
  top: 46%;
  right: 9%;
  --r: 7deg;
  --c1: #8e67ff;
  --c2: #5842d8;
  --mx: -20px;
  --my: 14px;
  --dur: 12.6s;
}

.edc-auth-bg .f5 {
  bottom: 14%;
  left: 11%;
  --r: -5deg;
  --c1: #ff8f2f;
  --c2: #d56817;
  --mx: 16px;
  --my: -17px;
  --dur: 11.9s;
}

.edc-auth-bg .f6 {
  bottom: 8%;
  right: 16%;
  --r: 5deg;
  --c1: #ff4d8d;
  --c2: #cc2f67;
  --mx: -20px;
  --my: -14px;
  --dur: 13.8s;
}

.edc-auth-bg .f7 {
  top: 58%;
  left: 22%;
  --r: -4deg;
  --c1: #38cf7a;
  --c2: #169a55;
  --mx: 17px;
  --my: 13px;
  --dur: 10.9s;
}

.edc-auth-bg .f8 {
  top: 28%;
  right: 28%;
  --r: 6deg;
  --c1: #f5b942;
  --c2: #cf8a17;
  --mx: -15px;
  --my: -16px;
  --dur: 12.1s;
}

.edc-auth-bg .finance-icon:hover {
  filter: saturate(1.18) brightness(1.05);
  box-shadow: 0 18px 40px rgba(5, 20, 51, 0.34), 0 0 0 4px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: edc-drift var(--dur, 12s) cubic-bezier(0.42, 0.05, 0.58, 0.95) infinite,
    edc-glow calc(var(--dur, 12s) * 0.72) ease-in-out infinite, edc-bounce 0.72s ease-in-out infinite;
}

.edc-auth-page .authentication-wrapper.authentication-basic .card,
.edc-auth-page .auth-card.pure {
  border: 1px solid rgba(17, 45, 101, 0.14);
  border-radius: 22px;
  backdrop-filter: saturate(150%) blur(4px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 56px rgba(8, 26, 73, 0.3);
}

.edc-auth-page .authentication-wrapper.authentication-basic .btn-primary {
  background: linear-gradient(100deg, #0d2f74, #1f4ca6 62%, #2a66d0);
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(13, 47, 116, 0.32);
}

.edc-auth-page .authentication-wrapper.authentication-basic .btn-primary:hover {
  filter: brightness(0.98);
}

.edc-auth-page .authentication-wrapper.authentication-basic .form-control {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fbfcff;
  padding: 0.75rem 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.edc-auth-page .authentication-wrapper.authentication-basic .form-control:focus {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 4px rgba(199, 210, 254, 0.28);
  background: #ffffff;
}

.edc-auth-page .welcome-title {
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #0d2f74;
  font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2rem);
}

.edc-auth-page .welcome-sub {
  color: #42526d;
}

.edc-auth-page .auth-logo-container {
  display: inline-flex;
  width: 60px;
  height: 60px;
}

.edc-auth-page .auth-logo-container .auth-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.edc-auth-page .or-divider {
  height: 1px;
}

.edc-auth-page .or-divider::before,
.edc-auth-page .or-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 44%;
  height: 1px;
  background: #e5e7eb;
}

.edc-auth-page .or-divider::before {
  left: 0;
}

.edc-auth-page .or-divider::after {
  right: 0;
}

.edc-auth-page .or-chip {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  color: #6b7280;
  font-size: 0.75rem;
}

.edc-auth-page .link-row a {
  color: #0f3c90;
  text-decoration: none;
}

.edc-auth-page .link-row a:hover {
  text-decoration: underline;
}

.edc-auth-page .auth-footer-note {
  color: rgba(227, 236, 255, 0.82);
}

.edc-auth-page .authentication-wrapper.authentication-basic .authentication-inner {
  width: min(92vw, 430px);
  max-width: 430px;
  margin-inline: auto;
}

.edc-auth-page .authentication-wrapper.authentication-basic.container-p-y {
  padding-top: 3.5rem !important;
  padding-bottom: 2.5rem !important;
}

@keyframes edc-float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-14px) translateX(9px);
  }
}

@keyframes edc-drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--r, 0deg));
  }
  25% {
    transform: translate3d(calc(var(--mx, 18px) * 0.8), calc(var(--my, 14px) * -0.7), 0)
      rotate(calc(var(--r, 0deg) + 4deg));
  }
  50% {
    transform: translate3d(calc(var(--mx, 18px) * -0.72), calc(var(--my, 14px) * 0.85), 0)
      rotate(calc(var(--r, 0deg) - 3deg));
  }
  75% {
    transform: translate3d(calc(var(--mx, 18px) * 0.55), calc(var(--my, 14px) * 0.55), 0)
      rotate(calc(var(--r, 0deg) + 2deg));
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--r, 0deg));
  }
}

@keyframes edc-glow {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }
  50% {
    filter: saturate(1.14) brightness(1.06);
  }
}

@keyframes edc-icon-sway {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  35% {
    transform: translateY(-2px) rotate(5deg);
  }
  70% {
    transform: translateY(1px) rotate(-4deg);
  }
}

@keyframes edc-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(var(--r, 0deg));
  }
  30% {
    transform: translateY(-8px) scale(1.08) rotate(calc(var(--r, 0deg) + 2deg));
  }
  60% {
    transform: translateY(-2px) scale(1.03) rotate(calc(var(--r, 0deg) + 1deg));
  }
}

@media (max-width: 991.98px) {
  .edc-auth-bg .finance-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
  }

  .edc-auth-bg .finance-icon i {
    font-size: 22px;
  }

  .edc-auth-bg .f3,
  .edc-auth-bg .f7,
  .edc-auth-bg .f8 {
    display: none;
  }
}

@media (hover: none) {
  .edc-auth-bg .finance-sky {
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edc-auth-bg .edc-blob,
  .edc-auth-bg .finance-icon,
  .edc-auth-bg .finance-icon i {
    animation: none !important;
  }
}
