.loader-container {
  width: 200px;
  height: 200px;

  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;

  margin: auto;

  text-align: center;
}

.loader {
  width: 100px;
  height: 100px;
  border: 8px solid;
  border-top-color: #eee;
  border-left-color: #ddd;
  border-bottom-color: #eee;
  border-right-color: #ddd;
  border-radius: 50%;
  transform: rotate(45deg);
  margin: 10px auto;

  background: url(trademire-icon.svg) center center;
  background-size: 80%;
  background-repeat: no-repeat;
}

.loader-animation {
  animation: heartFadeInOut 1.5s linear infinite;
}

.loader-title {
  background: url(trademire-text.svg) center center;
  background-size: 90%;
  background-repeat: no-repeat;
  min-height: 42px;
  margin-bottom: 12px;
}

@keyframes heartFadeInOut {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(0.97);
  }
  35% {
    transform: scale(0.9);
  }
  45% {
    transform: scale(1.1);
  }
  55% {
    transform: scale(0.9);
  }
  65% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.spinner-container {
  padding-top: clamp(24px, 6vh, 64px);
  width: 200px;
  margin: auto;
  text-align: center;
}

.spinner {
  width: 100px;
  height: 100px;

  margin: 10px auto;

  background: url(trademire-icon.svg) center center;
  background-size: 80%;
  background-repeat: no-repeat;
}

.spinner-animation {
  animation: rotating 6s linear infinite;
}

.spinner-title {
  background: url(trademire-text.svg) center center;
  background-size: 90%;
  background-repeat: no-repeat;
  min-height: 42px;
  margin-bottom: 32px;
}

/* Mobile: compact logo and top-weighted layout */
@media (max-width: 599px) {
  .spinner-container {
    padding-top: 24px;
    width: 160px;
  }

  .spinner {
    width: 80px;
    height: 80px;
    margin: 8px auto;
  }

  .spinner-title {
    min-height: auto;
    margin-bottom: 24px;
  }
}

@keyframes rotating {
  to {
    transform: rotate(360deg);
  }
}
