.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-login__text-center {
  text-align: center;
}

.page-login__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__section-description,
.page-login__dark-bg .page-login__security-title,
.page-login__dark-bg .page-login__security-text,
.page-login__dark-bg .page-login__faq-question h3,
.page-login__dark-bg .page-login__faq-answer p {
  color: #ffffff;
}

.page-login__dark-bg .page-login__link-register-bottom,
.page-login__dark-bg .page-login__link-support,
.page-login__dark-bg .page-login__faq-question,
.page-login__dark-bg .page-login__faq-toggle {
  color: #FFFF00; /* Custom color for links/toggles on dark background */
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
  background-color: #f0f0f0; /* Light background for hero section */
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.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%;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__main-title {
  font-size: 3em;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-login__login-form-wrapper {
  max-width: 400px;
  margin: 0 auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #FFFF00; /* Custom color for login/register font */
}

.page-login__form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.page-login__btn-login {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: #C30808; /* Custom login button background */
  color: #FFFF00; /* Custom login button font */
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

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

.page-login__link-forgot {
  display: block;
  text-align: center;
  color: #017439; /* Primary color for forgot password link */
  text-decoration: none;
  font-size: 0.95em;
}

.page-login__link-forgot:hover {
  text-decoration: underline;
}

.page-login__register-prompt {
  font-size: 1em;
  color: #555555;
  text-align: center;
}

.page-login__link-register {
  color: #C30808; /* Custom register link color */
  font-weight: bold;
  text-decoration: none;
}

.page-login__link-register:hover {
  text-decoration: underline;
}

.page-login__section {
  padding: 80px 0;
  border-bottom: 1px solid #eeeeee;
}

.page-login__section:last-of-type {
  border-bottom: none;
}

.page-login__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-login__benefit-item,
.page-login__security-item,
.page-login__troubleshooting-item,
.page-login__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-login__benefit-icon,
.page-login__security-icon,
.page-login__feature-icon {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 5px;
}

.page-login__benefit-title,
.page-login__security-title,
.page-login__troubleshooting-title,
.page-login__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-login__benefit-text,
.page-login__security-text,
.page-login__troubleshooting-text,
.page-login__feature-text {
  color: #666666;
  font-size: 1em;
}

.page-login__cta-area {
  text-align: center;
  margin-top: 50px;
}

.page-login__cta-text {
  font-size: 1.1em;
  color: #333333;
}

.page-login__link-register-bottom {
  color: #017439; /* Primary color for bottom register link */
  font-weight: bold;
  text-decoration: none;
}

.page-login__link-register-bottom:hover {
  text-decoration: underline;
}

.page-login__contact-cta {
  text-align: center;
  margin-top: 50px;
}

.page-login__link-support {
  color: #017439; /* Primary color for support link */
  font-weight: bold;
  text-decoration: none;
}

.page-login__link-support:hover {
  text-decoration: underline;
}

.page-login__btn-register-large {
  display: inline-block;
  padding: 18px 40px;
  background: #C30808; /* Custom register button background */
  color: #FFFF00; /* Custom register button font */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-register-large:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-login__contact-methods {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-login__btn-contact {
  display: inline-block;
  padding: 15px 30px;
  background: #017439; /* Primary color for contact buttons */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
}

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

.page-login__contact-note {
  margin-top: 30px;
  font-size: 0.95em;
  color: #666666;
}

/* FAQ styles */
.page-login__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority, value large enough */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #333333; /* Default text color for light background */
}

.page-login__dark-bg .page-login__faq-question {
  background: #00602f; /* Darker green for FAQ question on dark background */
  border-color: #005025;
  color: #ffffff;
}

.page-login__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-login__dark-bg .page-login__faq-question:hover {
  background: #005025;
  border-color: #00401d;
}

.page-login__faq-question:active {
  background: #eeeeee;
}

.page-login__dark-bg .page-login__faq-question:active {
  background: #00401d;
}

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
}

.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-login__dark-bg .page-login__faq-toggle {
  color: #FFFF00; /* Custom color for toggle on dark background */
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: #333;
  transform: rotate(45deg);
}

.page-login__dark-bg .page-login__faq-item.active .page-login__faq-toggle {
  color: #FFFF00; /* Custom color for active toggle on dark background */
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-login {
    padding-top: var(--header-offset, 120px) !important;
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__container,
  .page-login__hero-section,
  .page-login__section,
  .page-login__login-form-wrapper,
  .page-login__benefits-grid,
  .page-login__security-grid,
  .page-login__troubleshooting-grid,
  .page-login__about-features,
  .page-login__faq-list,
  .page-login__contact-methods {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__main-title {
    font-size: 2em;
  }

  .page-login__description {
    font-size: 1em;
  }

  .page-login__section-title {
    font-size: 1.8em;
  }

  .page-login__section-description {
    font-size: 0.95em;
  }

  .page-login__btn-login,
  .page-login__btn-register-large,
  .page-login__btn-contact,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    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__form-actions,
  .page-login__contact-methods {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .page-login__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-login__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-login__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-login__faq-answer {
    padding: 0 15px;
  }
  
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px !important;
  }
}