/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans", sans-serif;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Main Container */
.container {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* Left Side - Image */
.left-side {
  width: 50%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
}

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

/* Right Side - Form */
.right-side {
  width: 50%;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, #004080, #0072c6);
}

h4 {
  font-size: 24px;
  font-weight: bold;
}

p {
  color: #fff;
  margin-top: 10px;
}

/* Input Field Container */
.input-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: auto;
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  padding-right: 40px;
}

#loadingGif {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
}

#checkMark {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: green;
  font-size: 18px;
}

button {
  background: linear-gradient(90deg, #003087, #00aaff);
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  margin-top: 15px;
  display: block;
  width: 100%;
  max-width: 300px;
}

button.hidden {
  display: none;
}

#userInfo {
  color: white;
  font-weight: bold;
  margin-top: 10px;
}

.error-text {
  color: red;
  margin-top: 5px;
}

.hidden {
  display: none;
}

/* Back Button */
.back {
  margin-top: 20px;
  color: red;
  cursor: pointer;
  font-size: 16px;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
  /* Stack the image and form vertically */
  .container {
    flex-direction: column;
  }

  /* Make left side image take full width on small screens */
  .left-side {
    width: 98%;
    position: static; /* Remove fixed positioning */
    height: 400px; /* Adjust height for mobile */
  }

  /* Adjust right side form */
  .right-side {
    width: 100%;
    margin-left: 0;
    padding: 20px;
    height: auto; /* Ensure it adjusts to content */
  }

  h4 {
    font-size: 20px; /* Reduce font size for smaller screens */
  }

  p {
    font-size: 14px;
  }
}

.user-icon {
  position: absolute;
  right: 35px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 18px;
  pointer-events: none;
}
input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  padding-right: 70px; /* make room for user icon + loading gif */
}

button:disabled {
  background-color: gray !important;
  cursor: not-allowed;
  opacity: 0.7;
}

#loadingOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(imgs/blue-bg-img.jpg) center center no-repeat;
  background-size: cover;
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.loading-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
}

.loading-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  z-index: 2;
  position: absolute;
  top: 20px;
  left: 20px;
  animation: pulseZoom 2s ease-in-out infinite;
}

.loader-circle {
  width: 120px;
  height: 120px;
  border: 6px solid #ccc;
  border-top: 6px solid #003087;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 0;
  left: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulseZoom {
  0%,
  100% {
    transform: scale(0.5);
  }
  50% {
    transform: scale(1);
  }
}
