/* Prevent page overflow */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  /* Disable horizontal scroll */
  overflow-y: hidden;
  /* Disable vertical scroll (if you don't want it at all) */
}

/* Ensure body content fits in view */
body {
  min-height: 100vh;
  /* Ensure the body always covers the viewport height */
}


/* Login Page Styles */
.login-page {
  background-color: white;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  min-height: 100vh;
  padding: 2rem;
}

.login-container {
  max-width: 400px;
  margin: 0 auto;
  padding-top: 4rem;
  text-align: center;
}

.login-logo {
  max-width: 180px;
  margin-bottom: 2rem;
}

.login-box {
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.login-box h2 {
  font-weight: bold;
  color: black;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 2rem;
}

.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  /* padding-left: 0.7rem; */
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.login-box button {
  width: 100%;
  padding: 0.7rem;
  background-color: #a8c752;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
}

.login-box button:hover {
  background-color: #8dad21;
}

.login-links {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #aaa;
}

.login-links a {
  color: #aaa;
  text-decoration: none;
}

.login-links .contact-link {
  color: #a8c752;
  font-weight: bold;
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

.watermark {
  position: fixed;
  /* Fixed positioning relative to the viewport */
  bottom: 0;
  right: 0;
  width: 50%;
  /* Make it take up the full width of the viewport */
  object-fit: cover;
  /* Ensure the image scales while maintaining its aspect ratio */
  opacity: 0.9;
  /* Keep it subtle */
  pointer-events: none;
  /* Allow interaction with content above */
  z-index: -1;
  /* Send it to the back layer */
}



/* Logo animation */
.login-logo {
  animation: fadeIn 1s ease-in-out forwards;
  opacity: 0;
}

/* Soft transitions */
input,
button {
  transition: all 0.3s ease;
}


/* Keyframes */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Error feedback */
input.error {
  border-color: red;
}

#custom-alert {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.alert-box {
  background: white;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 300px;
}

.hidden {
  display: none;
}

.alert-box button {
  margin-top: 15px;
  padding: 6px 14px;
  border: none;
  cursor: pointer;
}


.greenbutton {
  background-color: #a8c752;
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  height: 40px;
  margin-top: auto;
}

.greenbutton_centered {
  background-color: #a8c752;
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  height: 40px;
  /* margin-top: auto; */
  /* Add these lines: */
  display: block;
  margin: 20px auto;
  /* auto horizontally centers it */
}