body {
  background: transparent;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

#loading-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--initial-loader-bg, #ffffff);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000; /* Higher than AuthLoading */
}

.loading-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader {
  width: 120px;
  height: 100px;
  position: relative;
}

/* Triangles arranged in an 'M' shape */
.triangle {
  width: 0;
  height: 0;
  position: absolute;
  animation: fade 1.6s infinite ease-in-out;
}

/* Top row (3 triangles) */
.t1 {
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid #b2c8d6; /* light blue */
  left: 0px;
  top: 0px;
  animation-delay: 0s;
}
.t2 {
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid #f7c942; /* yellow */
  left: 30px;
  top: 0px;
  animation-delay: 0.2s;
}
.t3 {
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid #e04f3d; /* red */
  left: 60px;
  top: 0px;
  animation-delay: 0.4s;
}

/* Bottom row (4 triangles) */
.t4 {
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid #ddecf1; /* white/gray */
  left: 0px;
  top: 36px;
  animation-delay: 0.6s;
}
.t5 {
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid #1976d2; /* blue */
  left: 30px;
  top: 36px;
  animation-delay: 0.8s;
}
.t6 {
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid #3fa248; /* green */
  left: 60px;
  top: 36px;
  animation-delay: 1s;
}
.t7 {
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid #000000; /* black */
  left: 90px;
  top: 36px;
  animation-delay: 1.2s;
}

@keyframes fade {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}
