/* Full-Screen Background */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: linear-gradient(160deg, #ffffffe3 0%, #d3d5c83b 50%, #bfc4b17f 100%);
  overflow: hidden;
}

/* Centering Content */
#login-background {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  position: relative;
  z-index: 3;
  margin-left: 5%;
}

/* Logo Styling */
.logo, .logo1, .logo3 {
  filter: drop-shadow(2px 2px 8px rgba(255, 255, 255, 0.3));
  transition: transform 0.3s ease-in-out;
}

.logo { width: 80px; height: 70px; }
.logo1 { width: 65px; height: 70px; }
.logo3 { width: 72px; height: 65px; margin-top: 4%; }

.logo:hover, .logo1:hover, .logo3:hover {
  transform: scale(1.1);
  cursor: pointer;
}

/* Main Row for Logos */
.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-bottom: 5px;
}

/* Bottom Logo */
.logo-bottom {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: none; /* Hidden by default, shown on mobile */
}

/* Header */
.wasa-header {
  font-size: 26px;
  font-weight: bold;
  color: rgb(3, 3, 3);
  text-transform: uppercase;
  text-shadow: 1px 2px 10px rgb(228, 224, 224);
  cursor: pointer;
  margin-bottom: 2%;
  z-index: -1;        
}

.wasa-header:hover {
  text-shadow: 1px 2px 10px rgb(45, 44, 44);
}

/* Animated Icon */
.pipeline-icon {
  width: 80px;
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* Login Box */
.login-bg {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease-in-out;
  max-width: 400px;
  width: 100%;
  padding: 30px;
}

.login-bg:hover {
  transform: scale(1.02);
}

/* Show Password - Left Align */
.show-password-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.show-password-container input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
}

/* 🚀 Image Collage */
.image-collage {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 5;
}

.left-collage { left: 2%; }
.right-collage { right: 6%; }

/* Collage Images */
.collage-img {
  width: 180px;
  border: 5px solid #fff;
  border-radius: 12px;
  box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.collage-img:hover {
  transform: scale(1.8) translateX(15px);
  box-shadow: 5px 5px 18px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
  cursor: pointer;
}

/* Reverse Slide Effect for Left Collage */
.left-collage .collage-img:hover {
  transform: scale(1.8) translateX(-15px);
}

.right-collage .collage-img:hover {
  transform: scale(1.8) translateX(-15px);
}

/* Alternating Positions */
.left-collage .img1 { transform: translateX(-15px) rotate(-12deg); }
.left-collage .img2 { transform: translateX(50px) rotate(8deg); }
.left-collage .img3 { transform: translateX(-10px) rotate(-6deg); }
.left-collage .img4 { transform: translateX(50px) rotate(10deg); }

.right-collage .img1 { transform: translateX(15px) rotate(10deg); }
.right-collage .img2 { transform: translateX(-10px) rotate(-8deg); }
.right-collage .img3 { transform: translateX(12px) rotate(6deg); }
.right-collage .img4 { transform: translateX(-15px) rotate(-10deg); }

/* 🚀 Button Interaction */
.primaryAction {
  background-color: #00a0e3;
  border: none;
  padding: 12px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.primaryAction:hover {
  background: #0088cc;
  transform: scale(1.05);
  animation: buttonBounce 0.4s ease-in-out;
}

@keyframes buttonBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1.05); }
}

/* 🎯 RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .wasa-header { font-size: 22px; }
  .pipeline-icon { width: 50px; }
  .login-bg { max-width: 95%; }

  /* Hide collages */
  .image-collage { display: none; }
}

@media (max-width: 480px) {
  .login-bg { padding: 20px;        margin-top: 55px;  }
  .logo { width: 70px; height: 60px; }
  right-collage { right: -3%; }
  .logo3 { width: 65px; height: 60px;margin-bottom: 175px; }
  .logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 41px;
}
}

/* Nest Hub (1024x600) Optimization */
@media (max-width: 1024px) and (max-height: 600px) {
  #login-background {
    margin-left: 0;
    padding: 20px;
    min-height: 90vh;
  }

  .logo-row { gap: 25px; }
  .logo, .logo1 { width: 60px; height: 55px; }
  .wasa-header { font-size: 20px; margin-bottom: 1%; }
  .login-bg { max-width: 80%; padding: 20px; margin-left: 10%; }
  .logo-bottom { display: flex; bottom: 5px; }
  .primaryAction { padding: 10px; font-size: 14px; }

  /* ✅ Enable Collage on Nest Hub */
  .image-collage {
    width: 220px;
    height: 500px;
    gap: 10px;
  }

  .left-collage { left: 5%; }
  .right-collage { right: -3%; }

  .collage-img {
    width: 90px;
    border-radius: 10px;
    border: 3px solid #fff;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
  }

  .collage-img:hover { transform: scale(1.3); }
}



#moving-network-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Send behind other content */
}

/* Nest Hub (1024x600) Optimization */
@media (max-width: 1200px) and (max-height: 800px) {
  #login-background {
    margin-left: 0;
    padding: 20px;
    min-height: 90vh;
  }

  .logo-row { gap: 25px; }
  .logo, .logo1 { width: 60px; height: 55px; }
  .wasa-header { font-size: 20px; margin-bottom: 1%; }
  .login-bg { max-width: 80%; padding: 20px; margin-left: 10%; }
  .logo-bottom { display: flex; bottom: 5px; }
  .primaryAction { padding: 10px; font-size: 14px; }

  /* ✅ Enable Collage on Nest Hub */
  .image-collage {
    width: 220px;
    height: 500px;
    gap: 10px;
  }

  .left-collage { left: 5%; }
  .right-collage { right: 1%; }

  .collage-img {
    width: 125px;
    border-radius: 10px;
    border: 3px solid #fff;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
  }

  .collage-img:hover { transform: scale(1.3); }
}


/* Nest Hub (1024x600) Optimization */
@media (max-width: 1280px) and (max-height: 800px) {
  #login-background {
    margin-left: 0;
    padding: 20px;
    min-height: 90vh;
  }

  .logo-row { gap: 25px; }
  .logo, .logo1 { width: 60px; height: 55px; }
  .wasa-header { font-size: 20px; margin-bottom: 1%; }
  .login-bg { max-width: 90%; padding: 20px; margin-left: 8%; }
  .logo-bottom { display: flex; bottom: 5px; }
  .primaryAction { padding: 10px; font-size: 14px; }

  /* ✅ Enable Collage on Nest Hub */
  .image-collage {
    width: 220px;
    height: 500px;
    gap: 4px;
  }

  .left-collage { left: 5%; }
  .right-collage { right: -5%; }

  .collage-img {
    width: 125px;
    border-radius: 10px;
    border: 3px solid #fff;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
  }

  .collage-img:hover { transform: scale(1.3); }
}



/* 💻 Large Laptops and Desktops (1281px to 2559px) */

@media (min-width: 1281px) and (max-width: 2559px) {
  #login-background {
    margin-left: 5%;
    padding: 30px;
    min-height: 95vh;
  }

  .logo-row { gap: 50px; }
  .logo, .logo1 { width: 90px; height: 80px; }
  .logo3 { width: 80px; height: 70px; }

  .wasa-header {
    font-size: 30px;
    margin-bottom: 2%;
  }

  .login-bg {
    max-width: 720px;
    padding: 35px;
    font-size: 18px;
  }

  .logo-bottom {
    display: flex;
    bottom: 10px;
  }

  .primaryAction {
    padding: 14px;
    font-size: 16px;
  }

  /* ✅ Collage Setup for Large Laptops */
  .image-collage {
    width: 260px;
    height: 900px;
    gap: 50px;
  }

  .left-collage { left: 6%; }
  .right-collage { right: 6%; }

  .collage-img {
    width: 200px;
    border-radius: 12px;
    border: 4px solid #fff;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.25);
  }

  .collage-img:hover {
    transform: scale(1.45);
  }
}

/* 📺 4K Screens (3840x2160) */
@media (min-width: 2560px) {
  #login-background {
    
    margin-left: 8%;
    min-height: 100vh;
  }

  .logo-row { gap: 80px; }
  .logo, .logo1 { width: 120px; height: 100px; }
  .logo3 { width: 100px; height: 90px; }
  .wasa-header { font-size: 40px; margin-bottom: 3%; }
  
  .login-bg {
    max-width: 962px;
    padding: 50px;
    font-size: 22px;
  }

  .logo-bottom { display: flex; bottom: 15px; }

  .primaryAction {
    padding: 16px;
    font-size: 20px;
  }

  /* ✅ Enable Collage Images */
  .image-collage {
    width: 169px;
    height: 1819px;
    gap: 172px;
}
.right-collage { right: 8%; }

  .collage-img {
    width: 369px;
    border-radius: 15px;
    border: 5px solid #fff;
    box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.25);
  }

  .collage-img:hover {
    transform: scale(1.6);
  }
}

/* 🖥️ Ultra-Wide Screens (3440x1440 & 5120x2160) */
@media (min-width: 3440px) {
  #login-background {
    margin-left: 10%;
  }

  .wasa-header { font-size: 45px; margin-bottom: 3%; }
  .logo-row { gap: 100px; }
  
  .login-bg {
    max-width: 700px;
    padding: 60px;
  }

  .primaryAction {
    padding: 18px;
    font-size: 22px;
  }

  /* ✅ Bigger Collage */
  .image-collage {
    width: 350px;
    height: 800px;
  }

  .collage-img {
    width: 200px;
  }

  .collage-img:hover {
    transform: scale(1.7);
  }
}


/* 🖥️💼 Ultra-Ultra-Wide & 8K Screens (≥5120px) */
@media (min-width: 5120px) {
  #login-background {
    margin-left: 12%;
    min-height: 100vh;
  }

  .wasa-header {
    font-size: 60px;
    margin-bottom: 4%;
  }

  .logo-row { gap: 140px; }
  .logo, .logo1 { width: 160px; height: 140px; }
  .logo3 { width: 140px; height: 120px; }

  .login-bg {
    max-width: 1400px;
    padding: 80px;
    font-size: 26px;
  }

  .primaryAction {
    padding: 24px;
    font-size: 26px;
  }

  .logo-bottom {
    display: flex;
    bottom: 20px;
  }

  /* ✅ Massive Collage Support */
  .image-collage {
    width: 500px;
    height: 2200px;
    gap: 200px;
  }

  .left-collage { left: 10%; }
  .right-collage { right: 10%; }

  .collage-img {
    width: 450px;
    border-radius: 20px;
    border: 6px solid #fff;
    box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.3);
  }

  .collage-img:hover {
    transform: scale(1.8);
  }
}

#moving-network-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Send behind other content */
}