/* style/login.css */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #f8f8f8;
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
  overflow: hidden;
  box-sizing: border-box;
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-login__hero-content-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 450px; /* Limit width of the login card container */
  padding-top: 50px; /* Space from top of hero section */
}

.page-login__login-card {
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent white background */
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.page-login__main-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-login__description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 30px;
}

.page-login__login-form {
  text-align: left;
  margin-bottom: 20px;
}

.page-login__form-group {
  margin-bottom: 20px;
}

.page-login__form-label {
  display: block;
  font-size: 14px;
  color: #333333;
  margin-bottom: 8px;
  font-weight: 600;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  background-color: #fefefe;
  color: #333333;
}

.page-login__form-input::placeholder {
  color: #aaaaaa;
}

.page-login__form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 25px;
}

.page-login__forgot-password-link {
  font-size: 14px;
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: #005f2c;
}

.page-login__submit-button {
  width: 100%;
  padding: 14px 20px;
  background-color: #C30808; /* Custom Login Button Color */
  color: #FFFF00; /* Custom Login Button Font Color */
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-login__submit-button:hover {
  background-color: #a30606;
}

.page-login__register-text {
  margin-top: 25px;
  font-size: 15px;
  color: #555555;
}

.page-login__register-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #005f2c;
}

.page-login__features-section {
  background-color: #017439; /* Dark background */
  color: #ffffff; /* Light text for dark background */
  padding: 80px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.page-login__section-title {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: bold;
  margin-bottom: 40px;
  line-height: 1.3;
  color: inherit; /* Inherits from section, ensuring white text */
}

.page-login__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-login__feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-login__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-login__feature-heading {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__feature-text {
  font-size: 15px;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-login__promo-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #f8f8f8;
  box-sizing: border-box;
}

.page-login__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__promo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-login__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-login__promo-content {
  padding: 25px;
}

.page-login__promo-heading {
  font-size: 20px;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

.page-login__promo-text {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-login__promo-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__promo-button:hover {
  background-color: #005f2c;
}

.page-login__cta-buttons {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-login__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__btn-primary:hover {
  background-color: #005f2c;
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section {
    min-height: 600px;
    padding: 10px 15px 40px;
  }

  .page-login__hero-content-wrapper {
    padding-top: 20px;
  }

  .page-login__login-card {
    padding: 30px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__main-title {
    font-size: 26px;
  }

  .page-login__description {
    font-size: 15px;
  }

  .page-login__submit-button {
    padding: 12px 15px;
    font-size: 16px;
  }

  .page-login__features-section,
  .page-login__promo-section {
    padding: 50px 15px;
  }

  .page-login__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .page-login__features-grid,
  .page-login__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__feature-item,
  .page-login__promo-card {
    padding: 20px;
  }

  .page-login__feature-heading {
    font-size: 20px;
  }

  .page-login__promo-heading {
    font-size: 18px;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
  }

  .page-login__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Image responsive adaptations */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__container,
  .page-login__hero-section,
  .page-login__features-section,
  .page-login__promo-section,
  .page-login__promo-card,
  .page-login__feature-item,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-login__hero-content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

}

/* Color contrast fixes for specific elements if needed */
.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__feature-heading {
  color: #ffffff;
}

.page-login__dark-bg .page-login__feature-text {
  color: #f0f0f0;
}