/* Modern Animated Background - Microsoft Style */
.auth-cover-bg {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #e8eef5 0%,
    #f0f3f8 25%,
    #f5f7fa 50%,
    #e6ecf3 75%,
    #dfe7f0 100%
  );
  overflow: hidden;
}

/* Smooth gradient overlay to blend with right panel */
.auth-cover-bg::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.95) 100%
  );
  pointer-events: none;
  z-index: 10;
}

/* Large geometric shape - top right with 3D effect */
.auth-cover-bg::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  background: linear-gradient(
    135deg,
    rgba(120, 160, 210, 0.18) 0%,
    rgba(150, 180, 220, 0.1) 100%
  );
  border-radius: 40% 60% 50% 50%;
  top: -300px;
  right: -200px;
  opacity: 1;
  box-shadow: 0 15px 45px rgba(120, 160, 210, 0.18),
    0 9px 25px rgba(100, 140, 190, 0.14),
    inset 0 -2px 14px rgba(255, 255, 255, 0.22);
}

/* Geometric Shapes Container */
.auth-cover-bg-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Large geometric shape - bottom left with depth */
.auth-cover-bg-shapes::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  background: linear-gradient(
    225deg,
    rgba(180, 200, 230, 0.15) 0%,
    rgba(160, 190, 220, 0.08) 100%
  );
  border-radius: 45% 55% 60% 40%;
  bottom: -250px;
  left: -250px;
  opacity: 1;
  box-shadow: 0 18px 55px rgba(180, 200, 230, 0.22),
    0 10px 30px rgba(160, 180, 210, 0.16),
    inset 0 -2px 16px rgba(255, 255, 255, 0.2);
}

/* Medium geometric shape - center with 3D effect */
.auth-cover-bg-shapes::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: linear-gradient(
    180deg,
    rgba(200, 215, 235, 0.13) 0%,
    rgba(170, 195, 225, 0.07) 100%
  );
  border-radius: 50% 50% 45% 55%;
  top: 50%;
  left: 20%;
  transform: translateY(-50%);
  opacity: 1;
  box-shadow: 0 16px 48px rgba(200, 215, 235, 0.2),
    0 9px 26px rgba(180, 200, 220, 0.15),
    inset 0 -2px 14px rgba(255, 255, 255, 0.18);
}

/* Soft Geometric Shapes - Microsoft Style with 3D depth */
.shape {
  position: absolute;
  opacity: 0.45;
  filter: blur(0px);
  box-shadow: 0 12px 40px rgba(120, 160, 210, 0.16),
    0 6px 20px rgba(100, 140, 190, 0.12),
    inset 0 -2px 10px rgba(255, 255, 255, 0.15);
}

.shape-1 {
  width: 450px;
  height: 450px;
  background: linear-gradient(
    135deg,
    rgba(140, 180, 220, 0.22) 0%,
    rgba(160, 190, 225, 0.12) 100%
  );
  border-radius: 35% 65% 60% 40%;
  top: 10%;
  left: -10%;
  box-shadow: 0 18px 50px rgba(140, 180, 220, 0.24),
    0 10px 28px rgba(120, 160, 200, 0.18),
    inset 0 -2px 15px rgba(255, 255, 255, 0.22);
}

.shape-2 {
  width: 550px;
  height: 550px;
  background: linear-gradient(
    225deg,
    rgba(160, 185, 215, 0.18) 0%,
    rgba(180, 200, 230, 0.1) 100%
  );
  border-radius: 60% 40% 50% 50%;
  bottom: 5%;
  right: -5%;
  box-shadow: 0 15px 45px rgba(160, 185, 215, 0.22),
    0 8px 24px rgba(140, 170, 200, 0.16),
    inset 0 -2px 12px rgba(255, 255, 255, 0.2);
}

.shape-3 {
  width: 400px;
  height: 400px;
  background: linear-gradient(
    315deg,
    rgba(150, 175, 210, 0.2) 0%,
    rgba(170, 195, 220, 0.11) 100%
  );
  border-radius: 45% 55% 55% 45%;
  top: 40%;
  left: 25%;
  box-shadow: 0 14px 42px rgba(150, 175, 210, 0.2),
    0 8px 22px rgba(130, 160, 195, 0.15),
    inset 0 -2px 12px rgba(255, 255, 255, 0.18);
}

.shape-4 {
  width: 350px;
  height: 350px;
  background: linear-gradient(
    180deg,
    rgba(130, 170, 210, 0.17) 0%,
    rgba(150, 180, 215, 0.09) 100%
  );
  border-radius: 50% 50% 45% 55%;
  top: 60%;
  left: 55%;
  box-shadow: 0 12px 38px rgba(130, 170, 210, 0.2),
    0 6px 18px rgba(110, 150, 190, 0.14),
    inset 0 -2px 10px rgba(255, 255, 255, 0.17);
}

/* Removed - not needed for Microsoft style */

/* Enhanced and Smooth Keyframe Animations */
@keyframes floatSlow {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(-60px, -40px);
  }
  66% {
    transform: translate(40px, -70px);
  }
}

/* Light pulse animation - subtle breathing effect */
@keyframes lightPulse {
  0%,
  100% {
    box-shadow: 0 18px 50px rgba(120, 160, 210, 0.2),
      0 10px 28px rgba(100, 140, 190, 0.16),
      inset 0 -2px 10px rgba(255, 255, 255, 0.2);
    opacity: 1;
  }
  50% {
    box-shadow: 0 22px 60px rgba(120, 160, 210, 0.28),
      0 12px 32px rgba(100, 140, 190, 0.22),
      inset 0 -3px 12px rgba(255, 255, 255, 0.28);
    opacity: 1;
  }
}

/* Shadow shift animation - subtle 3D movement */
@keyframes shadowShift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(3px, -3px);
  }
  50% {
    transform: translate(-2px, 2px);
  }
  75% {
    transform: translate(2px, 1px);
  }
}

@keyframes morphSlow {
  0%,
  100% {
    border-radius: 50%;
  }
  25% {
    border-radius: 45% 55% 48% 52% / 52% 45% 55% 48%;
  }
  50% {
    border-radius: 52% 48% 55% 45% / 45% 52% 48% 55%;
  }
  75% {
    border-radius: 48% 52% 45% 55% / 55% 48% 52% 45%;
  }
}

@keyframes driftSlow {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(40px, -40px);
  }
  50% {
    transform: translate(0, -80px);
  }
  75% {
    transform: translate(-40px, -40px);
  }
}

/* Mist/Cloud floating - More visible movement */
@keyframes mistFloat {
  0% {
    opacity: 0.8;
    transform: translateX(0) translateY(0);
  }
  8% {
    opacity: 0.8;
  }
  92% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateX(calc(100vw + 1000px)) translateY(-80px);
  }
}

@keyframes waveSlow {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(-25%) translateY(-10px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes particleSlow {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  5% {
    opacity: 0.9;
  }
  50% {
    transform: translateY(-50vh) scale(1);
  }
  95% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-100vh) scale(0.5);
  }
}

@keyframes particle-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.9;
  }

  25% {
    transform: translate(80px, -80px) scale(1.3);
    opacity: 0.95;
  }

  50% {
    transform: translate(150px, 60px) scale(1);
    opacity: 0.85;
  }

  75% {
    transform: translate(-60px, 100px) scale(1.3);
    opacity: 0.95;
  }
}

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

  50% {
    transform: rotate(360deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .auth-cover-bg {
    display: none;
  }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1200px) {
  .shape {
    filter: blur(30px);
  }

  .shape-1,
  .shape-2,
  .shape-3 {
    width: 400px;
    height: 400px;
  }
}

/* Reduced motion support - Accessibility first */
@media (prefers-reduced-motion: reduce) {
  .auth-cover-bg *,
  .auth-cover-bg::before,
  .auth-cover-bg::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .shape {
    opacity: 0.15;
  }
}
