.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: var(--secondary-color); /* Assuming --secondary-color is light */
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f8f8f8;
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width on desktop */
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-login__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #017439;
  margin-bottom: 20px;
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
}

.page-login__intro-text {
  font-size: 18px;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-login__form-wrapper {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  color: #333333;
}

.page-login__form-input:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 14px;
}

.page-login__checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #555555;
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #017439;
}

.page-login__forgot-password {
  color: #017439;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #C30808;
}

.page-login__submit-button {
  width: 100%;
  padding: 15px 20px;
  background: #C30808; /* Custom login color */
  color: #FFFF00; /* Custom login font color */
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-login__submit-button:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  font-size: 16px;
  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: #C30808;
}

.page-login__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-login__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}

.page-login__section-description {
  font-size: 17px;
  color: #555555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-login__features-section {
  background-color: #f0fdf5;
  padding: 60px 0;
}

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

.page-login__feature-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-login__feature-card img {
  width: 100%;
  height: auto;
  max-width: 400px;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

.page-login__feature-text {
  font-size: 16px;
  color: #666666;
}

.page-login__faq-section {
  padding: 60px 0;
  background-color: #ffffff;
}

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}
details.page-login__faq-item summary.page-login__faq-question:hover {
  background: #f5f5f5;
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-login__faq-toggle {
  font-size: 26px;
  font-weight: bold;
  color: #017439;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-login__faq-item .page-login__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-top: 1px solid #eeeeee;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

.page-login__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-login__dark-section {
  background: #017439;
  color: #ffffff;
  padding: 50px;
  border-radius: 12px;
}

.page-login__section-title--light {
  color: #ffffff;
}

.page-login__section-description--light {
  color: #f0f0f0;
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808;
  color: #FFFF00;
  text-decoration: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid transparent;
}

.page-login__cta-button:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-login__cta-button--inverted {
  background: #ffffff;
  color: #017439;
  border: 2px solid #ffffff;
}

.page-login__cta-button--inverted:hover {
  background: #f0f0f0;
  color: #017439;
  border-color: #f0f0f0;
}

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

  .page-login__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__main-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-login__intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-login__form-wrapper {
    padding: 25px;
    border-radius: 8px;
  }

  .page-login__form-input {
    font-size: 15px;
    padding: 10px;
  }

  .page-login__submit-button {
    font-size: 16px;
    padding: 12px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__register-prompt {
    font-size: 15px;
  }

  .page-login__content-area {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__section-title {
    font-size: clamp(20px, 5vw, 30px);
    margin-bottom: 15px;
  }

  .page-login__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

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

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

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

  .page-login__feature-text {
    font-size: 15px;
  }

  details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px 20px;
  }

  .page-login__faq-qtext {
    font-size: 16px;
  }

  .page-login__faq-toggle {
    font-size: 24px;
    width: 25px;
  }

  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 20px 15px;
  }

  .page-login__dark-section {
    padding: 30px;
  }

  .page-login__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__section, .page-login__card, .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}