body.loading-page {
  overflow: hidden;
  --initial-loader-bg: white;
  --initial-loader-progress: #263C82;
}
/* @media (prefers-color-scheme: light) {
  body {
    --initial-loader-bg: white;
    --initial-loader-progress: #263C82;
  }
}
@media (prefers-color-scheme: dark) {
  body {
    --initial-loader-bg: black;
    --initial-loader-progress: #5573d6;
  }
} */
#loading-page {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--initial-loader-bg, #fff);
  block-size: 100%;
  gap: 1rem 0;
  inline-size: 100%;
  cursor: wait;
  transition: all 250ms;
  z-index: 99999999;
  inset: 0;
}

.logo-crm-loading {
  width: 70px;
  aspect-ratio: 70/32;
  pointer-events: none;
  user-select: none;
  -webkit-box-reflect: below 1px linear-gradient(transparent 40%, var(--initial-loader-bg, #ffffff) 140%);
  animation: float 1s ease-in-out infinite alternate-reverse;
}

.loading {
  position: relative;
  box-sizing: border-box;
  border: 3px solid transparent;
  border-radius: 50%;
  block-size: 55px;
  inline-size: 55px;
}

.loading .effect-1,
.loading .effect-2,
.loading .effect-3 {
  position: absolute;
  box-sizing: border-box;
  border: 3px solid transparent;
  border-radius: 50%;
  block-size: 100%;
  border-inline-start: 3px solid var(--initial-loader-color, #263C82);
  inline-size: 100%;
}

.loading .effect-1 {
  animation: rotate 1s ease infinite;
}

.loading .effect-2 {
  animation: rotate-opacity 1s ease infinite 0.1s;
}

.loading .effect-3 {
  animation: rotate-opacity 1s ease infinite 0.2s;
}

.loading .effects {
  transition: all 0.3s ease;
}

.loading-logo {
  position: relative;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-progress {
  position: absolute;
  width: 100%;
  height: 6px;
  bottom: -50px;
  overflow: hidden;
  border-radius: 50px;
  box-shadow: -1px 1px 5px -2px #ccc;
}

.loading-progress .loading-progress-body {
  position: relative;
}

.loading-progress .loading-progress-body .loading-progress-head {
  position: absolute;
  background-image: linear-gradient(90deg,var(--initial-loader-bg, #ffffff) 0%,transparent 100%);
  width: 30%;
  height: 6px;
  left: 0;
}

.loading-progress .loading-progress-body .loading-progress-tail {
  position: absolute;
  background-image: linear-gradient(90deg,transparent 0%,var(--initial-loader-bg, #ffffff) 100%);
  width: 30%;
  height: 6px;
  right: 0;
}


.loading-progress .loading-progress-body .effects-progress {
  position: absolute;
  width: 25%;
  height: 6px;
  border-radius: 50px;
  background-image: linear-gradient(90deg, transparent 0%,var(--initial-loader-progress, #263C82) 100%);
  animation: loadingProgress 1s ease infinite;
}

@keyframes loadingProgress {
  0% {
    left: 0;
    width: 35%;
  }

  10% {
    left: 25%;
    width: 35%;
  }

  25% {
    left: 40%;
    width: 25%;
  }

  60% {
    left: 75%;
    width: 25%;
  }

  100% {
    left: 100%;
    width: 25%;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(1turn);
  }
}

@keyframes rotate-opacity {
  0% {
    opacity: 0.1;
    transform: rotate(0deg);
  }

  100% {
    opacity: 1;
    transform: rotate(1turn);
  }
}

@keyframes float {
  0% {
    transform: translateY(12%);
  }

  100% {
    transform: translateY(0%);
  }
}
