* {
  box-sizing: border-box;
}

html[data-boot-loading="1"],
html[data-boot-loading="1"] body {
  overflow: hidden;
}

#loadingPage,
#portalBootLoader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  min-height: 100vh;
  width: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  color: #111827;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fluid-container {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fluid-shape {
  position: absolute;
  width: 90px;
  height: 90px;
  background: #111827;
  animation: morph 4.5s ease-in-out infinite, float 3.5s ease-in-out infinite;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
}

.fluid-shape:nth-child(2) {
  width: 56px;
  height: 56px;
  background: #dbeafe;
  animation: morph-reverse 5s ease-in-out infinite, orbit 5.5s linear infinite;
  box-shadow: none;
}

.fluid-shape:nth-child(3) {
  width: 25px;
  height: 25px;
  background: #2563eb;
  animation: morph 3s ease-in-out infinite, orbit-reverse 4.5s linear infinite;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

@keyframes morph {
  0%,
  100% {
    border-radius: 44% 56% 57% 43% / 49% 41% 59% 51%;
    transform: rotate(0deg) scale(1);
  }
  25% {
    border-radius: 62% 38% 42% 58% / 55% 60% 40% 45%;
  }
  50% {
    border-radius: 36% 64% 60% 40% / 42% 54% 46% 58%;
    transform: rotate(12deg) scale(1.07);
  }
  75% {
    border-radius: 57% 43% 36% 64% / 60% 43% 57% 40%;
  }
}

@keyframes morph-reverse {
  0%,
  100% {
    border-radius: 60% 40% 42% 58% / 50% 61% 39% 50%;
  }
  50% {
    border-radius: 38% 62% 58% 42% / 61% 41% 59% 39%;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(8deg);
  }
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(53px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(53px) rotate(-360deg);
  }
}

@keyframes orbit-reverse {
  0% {
    transform: rotate(360deg) translateX(63px) rotate(-360deg);
  }
  100% {
    transform: rotate(0deg) translateX(63px) rotate(0deg);
  }
}

.background-shape {
  position: absolute;
  border-radius: 999px;
  opacity: 0.7;
  pointer-events: none;
  animation: background-float 10s ease-in-out infinite;
}

.shape-1 {
  width: 180px;
  height: 180px;
  background: #eff6ff;
  top: -60px;
  left: -60px;
}

.shape-2 {
  width: 120px;
  height: 120px;
  background: #f3f4f6;
  bottom: 8%;
  right: -35px;
  animation-delay: -3s;
}

.shape-3 {
  width: 55px;
  height: 55px;
  background: #dbeafe;
  bottom: 15%;
  left: 12%;
  animation-delay: -5s;
}

@keyframes background-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(15px, -18px, 0) scale(1.08);
  }
}

.loading-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #9ca3af;
  border-radius: 50%;
  margin: 0 2px;
  animation: dot 1.5s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dot {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.loading-content {
  animation: page-enter 0.7s ease forwards;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-exit {
  animation: exit-page 0.45s ease forwards;
}

@keyframes exit-page {
  to {
    opacity: 0;
    transform: scale(1.025);
    filter: blur(8px);
  }
}
