body {
  margin: 0;
}

html {
  overflow-x: hidden;
  overflow-y: scroll;
}

#loading-bg {
  position: absolute;
  display: block;
  background: var(--initial-loader-bg, #fff);
  block-size: 100%;
  inline-size: 100%;
}

.loading-logo {
  position: fixed; /* Keep the splash screen fixed in place */
  z-index: 1000; /* Ensure it is above other content */
  display: flex;
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
  block-size: 100vh; /* Full viewport height */
  inline-size: 100vw; /* Full viewport width */
  inset-block-start: 0;
  inset-inline-start: 0;
}

.branded-startup-loader {
  flex-direction: column;
  gap: 23px;
  background: radial-gradient(ellipse at center, #8294aa19, transparent 65%), var(--initial-loader-bg, #0f1729);
  color: var(--loader-caption, #bac5d7);
  font: 500 13px/1.45 Inter, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

.branded-startup-loader img {
  display: block;
}

.tenant-foil-logo {
  display: inline-grid;
  width: min(200px, 65vw);
  height: 112px;
}

.tenant-loading-name {
  font: 600 1.25rem/1.3 Inter, "Segoe UI", sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
}

.tenant-foil-logo img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Sweeping a tinted copy keeps the reflection inside the logo's original alpha. */
.tenant-foil-highlight {
  filter: brightness(0) invert(89%) sepia(15%) saturate(550%);
  mask-image: linear-gradient(110deg, transparent 40%, #0003 47%, black 50%, #0005 52%, transparent 57%);
  mask-size: 300% 100%;
  mask-repeat: no-repeat;
  animation: tenant-foil-sweep 1.5s ease-in-out infinite;
}

@keyframes tenant-foil-sweep {
  0%, 10% { mask-position: 100% 0; }
  85%, 100% { mask-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tenant-foil-logo .tenant-foil-highlight {
    display: none;
    animation: none;
  }
}

.loading {
  position: absolute;
  box-sizing: border-box;
  border: 3px solid transparent;
  border-radius: 50%;
  block-size: 55px;
  inline-size: 55px;
  inset-block-start: 50%;
  inset-inline-start: calc(50% - 35px);
}

.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, #000);
  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;
}

@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);
  }
}
