.page-login {
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Explicitly set body background as default white */
}

/* Hero Section */
.page-login__hero-section {
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  background-color: #f5f5f5; /* Light background for hero section */
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-login__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 8px;
}
.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 40px auto 0 auto;
  padding: 0 15px;
}
.page-login__hero-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #017439; /* Brand color for H1 */
  margin-bottom: 20px;
  max-width: 100%;
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 font size with clamp */
}
.page-login__hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 30px;
}

/* Login Form */
.page-login__form-container {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  margin: 30px auto;
  border: 1px solid #e0e0e0;
}
.page-login__form-title {
  font-size: 1.8rem;
  color: #017439;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
}
.page-login__form-group {
  margin-bottom: 20px;
}
.page-login__form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333333;
}
.page-login__form-group input[type="text"],
.page-login__form-group input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}
.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.9rem;
}
.page-login__remember-me input {
  margin-right: 8px;
}
.page-login__forgot-password {
  color: #017439;
  text-decoration: none;
}
.page-login__forgot-password:hover {
  text-decoration: underline;
}

/* Buttons */
.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 14px 25px;
  background-color: #C30808; /* Login Button Color */
  color: #FFFF00; /* Login Font Color */
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-login__btn-primary:hover {
  background-color: #a00606;
}
.page-login__register-cta {
  text-align: center;
  margin-top: 25px;
  font-size: 1rem;
  color: #555555;
}
.page-login__register-link {
  color: #017439;
  text-decoration: none;
  font-weight: 600;
}
.page-login__register-link:hover {
  text-decoration: underline;
}

/* General Section Styling */
.page-login__section {
  padding: 80px 0;
  background-color: #ffffff;
}
.page-login__section--alt-bg {
  background-color: #f9f9f9;
}
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.page-login__heading {
  font-size: 2.5rem;
  color: #017439;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}
.page-login__sub-heading {
  font-size: 1.8rem;
  color: #333333;
  margin-bottom: 25px;
  font-weight: 600;
}
.page-login__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 20px;
}
.page-login__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.page-login__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #555555;
  line-height: 1.6;
}
.page-login__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #017439;
  font-weight: bold;
}
.page-login__image-content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}
.page-login__image-content-wrapper.page-login__image-content-wrapper--reverse {
  flex-direction: row-reverse;
}
.page-login__content-area {
  flex: 1;
  color: #333333;
}
.page-login__content-image {
  flex: 1;
  max-width: 50%;
  border-radius: 8px;
  height: auto;
  display: block;
  object-fit: cover;
}
.page-login__list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}
.page-login__list-item-box {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

/* FAQ Section */
.page-login__faq-list {
  max-width: 900px;
  margin: 0 auto;
}
.page-login__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}
.page-login__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  outline: none;
  list-style: none; /* Hide default marker */
}
.page-login__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}
.page-login__faq-item summary:hover {
  background-color: #f0f0f0;
}
.page-login__faq-qtext {
  flex-grow: 1;
}
.page-login__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}
.page-login__faq-item[open] .page-login__faq-toggle {
  content: '−'; /* Change to minus when open, handled by JS if not details */
}
.page-login__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  border-top: 1px solid #f0f0f0;
}

/* Call to Action Section */
.page-login__cta-section {
  text-align: center;
  padding: 60px 0;
  background-color: #017439; /* Brand color background */
  color: #ffffff;
}
.page-login__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}
.page-login__cta-heading {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffffff;
}
.page-login__cta-description {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
}
.page-login__cta-button-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}
.page-login__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background-color: #C30808; /* Register/Login Button Color */
  color: #FFFF00; /* Register/Login Font Color */
  border: none;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}
.page-login__cta-button:hover {
  background-color: #a00606;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-login__hero-section {
    padding-bottom: 40px;
  }
  .page-login__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-login__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-login__form-container {
    padding: 25px;
    margin: 20px auto;
  }
  .page-login__form-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  .page-login__form-group input {
    padding: 10px 12px;
  }
  .page-login__btn-primary {
    font-size: 1rem;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__section {
    padding: 40px 0;
  }
  .page-login__heading {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  .page-login__sub-heading {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  .page-login__text-block,
  .page-login__list-item,
  .page-login__faq-item summary,
  .page-login__faq-answer {
    font-size: 0.95rem;
  }
  .page-login__image-content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .page-login__image-content-wrapper.page-login__image-content-wrapper--reverse {
    flex-direction: column; /* On mobile, always stack */
  }
  .page-login__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-login__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login img { /* Generic image rule for mobile */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-login__list-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__cta-heading {
    font-size: 1.8rem;
  }
  .page-login__cta-description {
    font-size: 1rem;
  }
  .page-login__cta-button-wrapper {
    flex-direction: column; /* Stack buttons on mobile */
    gap: 15px;
    padding: 0 15px !important; /* Add padding to wrapper */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__cta-button {
    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;
  }
  .page-login__dark-section {
    padding: 40px 15px;
  }
  .page-login__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-login__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9rem;
  }
}

/* Contrast fix if needed */
.page-login__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}
.page-login__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}