.page-login {
  color: #333333; /* Default text color for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-login__section {
  padding: 60px 0;
}

.page-login__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
  background: linear-gradient(135deg, #f0f0f0, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-login__hero-section .page-login__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-login__hero-content {
  flex: 1;
  max-width: 50%;
}

.page-login__hero-image-wrapper {
  flex: 1;
  max-width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__hero-image {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

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

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

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

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-login__form-group {
  display: flex;
  flex-direction: column;
}

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

.page-login__form-input {
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
  border-color: #017439;
  outline: none;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}

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

.page-login__checkbox {
  width: 16px;
  height: 16px;
  accent-color: #017439;
}

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

.page-login__forgot-password-link {
  color: #017439;
  text-decoration: none;
}

.page-login__forgot-password-link:hover,
.page-login__register-link:hover,
.page-login__feature-link:hover,
.page-login__link:hover,
.page-login__item-link:hover,
.page-login__cta-link:hover {
  text-decoration: underline;
}

.page-login__btn-login {
  background-color: #C30808; /* Custom login color */
  color: #FFFF00; /* Custom login font color */
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.page-login__no-account-text {
  text-align: center;
  margin-top: 15px;
  color: #555555;
}

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

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

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

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

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__feature-title,
.page-login__dark-bg .page-login__item-title {
  color: #ffffff;
}

.page-login__dark-bg .page-login__section-description,
.page-login__dark-bg .page-login__feature-text,
.page-login__dark-bg .page-login__item-text,
.page-login__dark-bg .page-login__paragraph {
  color: #f0f0f0;
}

.page-login__dark-bg .page-login__link,
.page-login__dark-bg .page-login__item-link,
.page-login__dark-bg .page-login__cta-link {
  color: #FFFF00; /* Yellow for links on dark green */
}

.page-login__dark-bg .page-login__link:hover,
.page-login__dark-bg .page-login__item-link:hover,
.page-login__dark-bg .page-login__cta-link:hover {
  text-decoration: underline;
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__sub-title,
.page-login__light-bg .page-login__faq-title {
  color: #017439;
}

.page-login__light-bg .page-login__section-description,
.page-login__light-bg .page-login__paragraph {
  color: #555555;
}

.page-login__light-bg .page-login__link,
.page-login__light-bg .page-login__forgot-password-link,
.page-login__light-bg .page-login__register-link {
  color: #017439;
}

.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);
  padding: 30px;
  border-radius: 12px;
  text-align: 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-title {
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-login__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__content-columns {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-login__text-content {
  flex: 1;
}

.page-login__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-login__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-login__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-login__paragraph {
  margin-bottom: 15px;
}

.page-login__highlight-text {
  font-weight: bold;
  color: #017439; /* For light background */
}

.page-login__dark-bg .page-login__highlight-text {
  color: #FFFF00; /* For dark background */
}

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

.page-login__troubleshooting-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}

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

.page-login__item-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-login__item-text {
  font-size: 0.95em;
}

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

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

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

.page-login__faq-item.active .page-login__faq-question {
  border-bottom: none;
}

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

.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);
}

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

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Ensure enough height for content */
  padding: 15px 25px;
}

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

.page-login__btn-register {
  background-color: #C30808; /* Custom register color */
  color: #FFFF00; /* Custom register font color */
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

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

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

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

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  padding: 15px 30px;
  border: 2px solid #017439;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.page-login__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-login__cta-image {
  max-width: 600px;
  margin: 40px auto 0 auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Image responsiveness for all images */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-login__hero-section .page-login__container {
    flex-direction: column;
    text-align: center;
  }

  .page-login__hero-content,
  .page-login__hero-image-wrapper {
    max-width: 100%;
    flex: none;
  }

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

  .page-login__hero-description {
    font-size: 1em;
  }

  .page-login__login-form-wrapper {
    max-width: 100%;
    padding: 20px;
  }

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

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

  .page-login__content-columns {
    flex-direction: column;
  }

  .page-login__sub-title {
    font-size: 1.5em;
  }

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

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

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

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

  .page-login__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not covered */
  }

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

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

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