
#pageBackground {
  position: fixed;
  inset: 0;
  background-image: url('/images/bg.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover; /* fills viewport nicely */
  z-index: 0;
}

    body {
  font-family: Arial, sans-serif;
  background: #451E07;
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;      /* horizontal center */
  align-items: center;          /* vertical center */
}

.login-box {
  width: 380px;
  padding: 30px;
  background: #E4FABE;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  text-align: center;
  position: relative;
  transform: translateY(-10%); /* move slightly up for visual balance */
}


    h2 {
      margin-top: 0;
      margin-bottom: 20px;
      font-weight: 600;
    }

    label {
      display: block;
      margin-top: 15px;
      text-align: left;
      font-size: 14px;
    }

    label.required::after {
      content: " *";
      color: red;
    }

    input[type=text],
    input[type=password] {
      width: 100%;
      padding: 10px;
      margin-top: 6px;
      border: 2px solid #000;
      border-radius: 6px;
      font-size: 16px;
      box-sizing: border-box;
    }

    .password-wrap {
      position: relative;
    }

    .eye-icon {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      font-size: 16px;
      color: #555;
    }

    .error {
      margin-top: 12px;
      color: red;
      font-size: 14px;
      text-align: center;
    }

    button {
      margin-top: 20px;
      width: 100%;
      padding: 12px;
      border: none;
      background: #4CAF50;  /* Green login button */
      color: white;
      font-size: 16px;
      border-radius: 6px;
      cursor: pointer;
    }

    button:disabled {
      background: #a5d6a7;
      cursor: not-allowed;
    }

    /* Loading overlay */
    .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(255,255,255,0.8);
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 10px;
      display: none; /* hidden by default */
      z-index: 10;
    }

    .spinner {
      border: 5px solid #f3f3f3;
      border-top: 5px solid #4CAF50;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      animation: spin 1s linear infinite;
      margin-right: 10px;
    }

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

    .overlay-text {
      font-weight: 600;
      font-size: 16px;
      color: #333;
    }

    .btn-enabled {
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
}

.btn-disabled {
  background-color: #A5D6A7;
  color: #eee;
  cursor: not-allowed;
}

.custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* hidden */
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
  z-index: 999999;
  backdrop-filter: blur(2px);
}

.custom-alert-box {
  background: #E4FABE;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  max-width: 320px;
  min-width: 260px;
  text-align: center;
  animation: fadeIn 0.2s ease-out;
}

.custom-alert-message {
  margin-bottom: 16px;
  font-size: 16px;
}

.custom-alert-button {
  padding: 8px 25px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

.custom-alert-button:hover {
  background: #4CAF50;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}