html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.bg-image {
   background: linear-gradient(to bottom, #2245e9, #001159);
  /* background: url('assets/images/PC_View_Compress.jpg') no-repeat center center; */
  background-size: cover;
  background-repeat: no-repeat;
  height: 100dvh;
  width: 100%;
}

/* Hide by default for desktop */
.mobile-logo,
.mobile-footer {
  display: none;
}

/* .overlay {
  height: 100%;
  width: 100%;
  padding: 5%;
  box-sizing: border-box;
} */

.overlay {
  
  background-color: rgba(0, 0, 0, 0.5);
  height: 100%;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 5%;
  box-sizing: border-box;
}

/* ✅ Mobile-specific styles: max-width 767px */
@media (max-width: 767px) {
  .bg-image {
    background: none !important;
    background-color: #ffffff;
    
  }

  .overlay {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
    /* background: none !important; */
    background: linear-gradient(to bottom, #2245e9, #001159);
  }

  .login-box {
    width: 100%;
    max-width: 400px;
    z-index: 2;
  }

  .mobile-logo,
  .mobile-footer {
    display: block;
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .mobile-logo {
    aspect-ratio: 4 / 3;
    background-image: url('assets/images/bg-mobile-top.jpg');
    margin-bottom: 20px;
  }

  .mobile-footer {
    aspect-ratio: 4 / 2;
    background-image: url('assets/images/bg-mobile-footer.jpg');
    margin-top: 10px;
  }

  /* Hide fallback <img> inside divs if still used */
  .mobile-logo img,
  .mobile-footer img {
    display: none;
  }
}

/* ✅ Login box styling */
.login-box {
  background: rgba(255, 255, 255, 0.8);
  padding: 25px;
  border-radius: 10px;
  width: 100%;
  max-width: 500px;
  /* min-width: 400px; */
  /* min-height: 40%; */
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* ✅ Password visibility */
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 40px;
}
.password-field span {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
}

/* ✅ Forgot password message */
#forgot-message {
  display: none;
  margin-top: 8px;
  color: #023f14ff;
  animation: fadeIn 0.3s ease;
  font-size: 12px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ✅ Custom checkbox */
.custom-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}
.custom-checkbox input {
  display: none;
}
.custom-checkbox .checkmark {
  width: 18px;
  height: 18px;
  background-color: #fff;
  border: 2px solid #007bff;
  border-radius: 4px;
  position: relative;
}
.custom-checkbox input:checked + .checkmark {
  background-color: #007bff;
  border-color: #007bff;
}
.custom-checkbox .checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.custom-checkbox input:checked + .checkmark::after {
  display: block;
}

.desktop-footer {
  position: absolute;
  bottom: 1in;
  left: 5%;
  right: 5%;
  width: auto;
}
