/* style/login.css */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow: hidden;
}

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

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: -1;
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
}

.page-login__main-heading {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-login__form-container {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for form background */
  padding: 30px;
  border-radius: 10px;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__form-title {
  font-size: 1.8em;
  margin-bottom: 25px;
  color: #FFFFFF;
  text-align: center;
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #017439;
  border-radius: 5px;
  background-color: #333333; /* Dark input background */
  color: #ffffff; /* Light text in input */
  font-size: 1em;
}

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

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

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
}

.page-login__checkbox-label {
  color: #f0f0f0;
}

.page-login__forgot-password {
  color: #017439; /* Brand color for link */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-login__btn-login {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  display: block;
  text-align: center;
  box-sizing: border-box;
}

/* Overriding custom color for contrast compliance */
.page-login__btn-primary {
  background-color: #990000; /* Adjusted from #C30808 for WCAG AA contrast */
  color: #FFFFFF; /* Adjusted from #FFFF00 for WCAG AA contrast */
}

.page-login__btn-primary:hover {
  background-color: #cc0000;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 20px;
  color: #f0f0f0;
}

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

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

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

.page-login__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Brand color for titles in light sections */
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #333333; /* Dark text for light background */
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-login__dark-bg {
  background-color: #222222; /* Body background color */
  color: #ffffff; /* Light text for dark background */
}

.page-login__dark-bg .page-login__section-title {
  color: #FFFFFF; /* White for titles in dark sections */
}

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

.page-login__benefits-section {
  padding: 80px 0;
}

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

.page-login__benefit-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  background: #f9f9f9; /* Light background for cards */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333; /* Dark text for light card background */
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
}

.page-login__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 250px; /* Ensure images are not too small */
  min-width: 200px;
  min-height: 200px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__benefit-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439; /* Brand color for benefit titles */
}

.page-login__benefit-text {
  font-size: 1em;
  color: #555555;
}

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

.page-login__btn-register {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 30px;
  box-sizing: border-box;
}

.page-login__cta-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  min-width: 200px;
  min-height: 200px;
  margin-top: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.page-login__faq-section {
  padding: 80px 0;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-login__faq-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #333333;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: #f0f0f0;
}

.page-login__faq-title {
  font-size: 1.15em;
  margin: 0;
  color: #017439;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Plus to X for active state */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #fefefe;
  color: #555555;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it overrides */
  padding: 15px 25px;
}

.page-login__contact-promo {
  padding: 60px 0;
  text-align: center;
}

.page-login__btn-contact {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin-top: 30px;
  box-sizing: border-box;
}

.page-login__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-login__btn-secondary:hover {
  background: #017439;
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-heading {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 600px;
    padding: 40px 15px;
  }
  .page-login__main-heading {
    font-size: 2.2em;
  }
  .page-login__intro-text {
    font-size: 1em;
  }
  .page-login__form-container {
    padding: 20px;
  }
  .page-login__form-title {
    font-size: 1.5em;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__forgot-password {
    align-self: flex-end;
  }
  .page-login__container {
    padding: 20px 15px;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-login__benefits-section, .page-login__cta-section, .page-login__faq-section, .page-login__contact-promo {
    padding: 50px 0;
  }
  .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;
  }
  .page-login__btn-login, .page-login__btn-register, .page-login__btn-contact {
    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__faq-question {
    padding: 15px 20px;
  }
  .page-login__faq-title {
    font-size: 1em;
  }
  .page-login__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-login__main-heading {
    font-size: 1.8em;
  }
  .page-login__form-container {
    max-width: 100%;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
}