/* Styles for the loading animation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
}


@media screen and (min-width: 768px) and (max-width: 1400px){
  .loading-overlay {
    width: 1200px;
    height: 1200px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}


.loading-animation {
  width: 1200px;
  height: 1200px;
  position: relative;
  transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-animation.transition-to-logo {
  transform: translate(-50%, -300px);
}

.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Background illustration animation */
@keyframes slideIn {
  0% {
    transform: translate(100%, -100%);
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

.login-bg-animation {
  opacity: 0;
  animation: slideIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 3.8s;
}
@media screen and (min-width: 768px) and (max-width: 1400px) {
  .login-bg-animation {
    opacity: 1;
    animation: none;
  }
}