.loginScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  z-index: 9998; /* Below loader, above main content */
  overflow: hidden;
  background-color: #000033; /* Fallback */
}

.gradientBackground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000033, #000066, #000033);
  background-size: 200% 200%;
  animation: gradientShift 20s ease infinite;
  z-index: 0;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.particlesContainer {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2; /* Behind the card, in front of background */
}

.particle {
  position: absolute;
  background-color: rgba(0, 191, 255, 0.4);
  border-radius: 50%;
  width: 2px;
  height: 2px;
  box-shadow: 0 0 5px rgba(0, 191, 255, 0.6);
}

.statusBar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  z-index: 10;
}

.statusRight {
  display: flex;
  gap: 10px;
}

.timeDate {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
}

.timeDate h1 {
  font-size: 6rem;
  font-weight: 300;
  margin: 0;
  line-height: 1;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.timeDate p {
  font-size: 1.8rem;
  font-weight: 200;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.loginCard {
  position: relative;
  background-color: rgba(15, 23, 42, 0.9); /* Darker, more opaque */
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 191, 255, 0.2);
  z-index: 10; /* Ensure it's on top */
  margin-top: 20vh; /* Adjust vertical position */
  max-width: 400px;
  width: 90%;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid #00bfff;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loginCard h2 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.passwordForm {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.inputGroup {
  display: flex;
  width: 100%;
  max-width: 280px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 191, 255, 0.3);
}

.passwordInput {
  flex-grow: 1;
  padding: 12px 15px;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1rem;
  min-width: 0; /* Allows input to shrink */
}

.passwordInput::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.passwordInput:focus {
  box-shadow: inset 0 0 5px rgba(0, 191, 255, 0.5);
}

.submitButton {
  background-color: #007bff;
  border: none;
  padding: 12px 15px;
  cursor: pointer;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.submitButton:hover {
  background-color: #0056b3;
}

.hintText {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .timeDate h1 {
    font-size: 4rem;
  }

  .timeDate p {
    font-size: 1.2rem;
  }

  .loginCard {
    padding: 30px;
    margin-top: 15vh;
  }

  .avatar {
    width: 80px;
    height: 80px;
  }

  .loginCard h2 {
    font-size: 1.5rem;
  }

  .passwordInput {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .submitButton {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .statusBar {
    padding: 8px 15px;
    font-size: 0.8rem;
  }

  .timeDate {
    top: 15%;
  }

  .timeDate h1 {
    font-size: 3rem;
  }

  .timeDate p {
    font-size: 1rem;
  }

  .loginCard {
    padding: 20px;
    margin-top: 10vh;
  }

  .avatar {
    width: 70px;
    height: 70px;
  }

  .loginCard h2 {
    font-size: 1.3rem;
  }

  .passwordInput {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .submitButton {
    padding: 8px 10px;
  }
}
