input {
  background: rgba(255, 255, 255, .5);
  border: 0;
  width: 100%;
  border-radius: 6px;
  padding: 10px;
  margin: 5px 0;
  font-size: 16px;
  outline: 0;
}

.login__mainContainer {
  background: url(../img/login_bg.avif) no-repeat center center;
  background-size: cover;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.login__header {
  max-height: 100px;
  height: 100px;
  /* Fixed height */
  color: #FFF;
}

.login__header div.header__sub {
  width: 90%;
  margin: 0 auto;
  display: flex;
  color: #FFF;
  align-items: center;
  justify-content: flex-end;
  padding: 25px 0;
  gap: 10px;
}

.login__body {
  flex: 1;
  /* Dynamically adjusts to fill remaining height */
  overflow-y: auto;
  /* Allows scrolling if content exceeds height */
}

.login__subbody {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login__body .login__subbody .login__content {
  width: auto;
  max-width: 90%;
  margin: 0 auto;
  display: grid;
  justify-content: center;
  align-items: center;
}

.login__body .login__subbody .login__content .logo {
  width: 95%;
  max-width: 400px;
  max-height: 150px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login__body .login__subbody .login__content .logo img {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
}

.login__form {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Fixed width for login form inputs and button - prevents following logo width */
.login__form input#txtEmailID,
.login__form input#txtPassword,
.login__form input#txtClientID,
.login__form button#btnCheckLogin {
  width: 398px !important;
  max-width: 100%;
}

/* Center align error messages */
.login__form .field-validation-error,
.login__form .cssErrorMessage {
  width: 398px;
  max-width: 100%;
  text-align: center;
}

.login__form p {
  text-align: right;
  padding-top: 10px;
  font-size: 15px;
  width: 398px;
  max-width: 100%;
}

.signin {
  padding: 12px 0;
  margin-top: 5px;
  font-size: 18px;
}

.login__footer {
  max-height: 50px;
  height: 50px;
  /* Fixed height */
  text-align: center;
  color: var(--white);
  margin-top: 100px;
  /* Pushes footer down to reduce visibility and show more top content */
}

a {
  color: var(--white);
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

/* ========================================
 * RESPONSIVE STYLES - Mobile Optimization
 * ======================================== */

/* Mobile devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .login__body .login__subbody .login__content {
    width: 95%;
    max-width: 400px;
    height: auto;
    padding: 20px 10px;
  }

  .login__body .login__subbody .login__content .logo {
    width: 100%;
    max-width: 300px;
    padding: 0 5px;
  }

  .login__form input#txtEmailID,
  .login__form input#txtPassword,
  .login__form input#txtClientID,
  .login__form button#btnCheckLogin {
    width: 100% !important;
    max-width: 398px;
  }

  .login__form p {
    width: 100%;
    max-width: 398px;
  }

  .login__form .field-validation-error,
  .login__form .cssErrorMessage {
    width: 100%;
    max-width: 398px;
  }
}

/* Small tablets (portrait, 600px to 768px) */
@media only screen and (min-width: 600px) and (max-width: 768px) {
  .login__body .login__subbody .login__content {
    width: 90%;
    max-width: 450px;
  }

  .login__body .login__subbody .login__content .logo {
    max-width: 350px;
  }
}