.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Matches shared.css body background */
}

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

.page-login__hero-section {
  position: relative;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  text-align: center;
  background-color: #017439; /* Brand primary color for hero */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  box-sizing: border-box;
}

.page-login__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-login__btn-primary {
  background-color: #C30808; /* Custom color for Login */
  color: #FFFF00; /* Custom font color for Login */
  border: 2px solid #C30808;
}

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

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

.page-login__btn-secondary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

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

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #666666; /* Darker grey for description on light background */
}

.page-login__form-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background for form */
  color: #333333;
}

.page-login__form-wrapper {
  max-width: 500px;
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.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 #cccccc;
  border-radius: 6px;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
}

.page-login__captcha-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.page-login__form-input--captcha {
  flex-grow: 1;
}

.page-login__captcha-image {
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  width: 120px; /* Adjusted width for captcha */
  height: 48px; /* Adjusted height for captcha */
  object-fit: cover;
}

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

.page-login__checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555555;
}

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

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

.page-login__forgot-password:hover {
  text-decoration: underline;
}

.page-login__submit-button {
  background-color: #C30808; /* Custom color for Login */
  color: #FFFF00; /* Custom font color for Login */
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__submit-button:hover {
  background-color: #a00606;
}

.page-login__why-login-section {
  padding: 60px 20px;
  background-color: #1a1a1a; /* Dark background for this section */
  color: #ffffff;
}

.page-login__why-login-section .page-login__section-title {
  color: #ffffff;
}

.page-login__why-login-section .page-login__section-description {
  color: #f0f0f0;
}

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

.page-login__feature-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card on dark background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-login__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-login__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlighted title on dark card */
  font-weight: bold;
}

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

.page-login__guide-section {
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333333;
}

.page-login__guide-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-login__step-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-login__step-number {
  width: 40px;
  height: 40px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-login__step-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #017439;
  font-weight: bold;
}

.page-login__step-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-login__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-login__troubleshooting-section {
  padding: 60px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

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

.page-login__troubleshooting-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-login__troubleshooting-list .page-login__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-login__troubleshooting-list .page-login__list-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #FFFF00;
  font-weight: bold;
}

.page-login__troubleshooting-list .page-login__list-text {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-login__support-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-login__register-promo-section {
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333333;
}

.page-login__register-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-login__register-image {
  flex: 1;
  min-width: 300px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-height: 200px;
}

.page-login__register-text-block {
  flex: 2;
  min-width: 300px;
}

.page-login__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-login__benefits-list .page-login__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #555555;
}

.page-login__benefits-list .page-login__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #017439;
  font-weight: bold;
}

.page-login__security-section {
  padding: 60px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

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

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

.page-login__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-login__security-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min size for images */
  min-height: 200px;
}

.page-login__security-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFFF00;
  font-weight: bold;
}

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

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

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

.page-login__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  border-bottom: 1px solid #eeeeee;
}

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

.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 it expands sufficiently */
  padding: 15px 25px;
}

.page-login__faq-answer p {
  margin: 0;
}

.page-login__faq-answer a {
  color: #017439;
  text-decoration: none;
}

.page-login__faq-answer a:hover {
  text-decoration: underline;
}

.page-login__cta-bottom-section {
  padding: 60px 20px;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

.page-login__cta-bottom-section .page-login__section-title {
  color: #ffffff;
}

.page-login__cta-bottom-section .page-login__section-description {
  color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 3em;
  }

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

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-login__hero-title {
    font-size: 2.5em;
  }

  .page-login__hero-description,
  .page-login__section-description,
  .page-login__support-text,
  .page-login__feature-text,
  .page-login__step-text,
  .page-login__troubleshooting-list .page-login__list-text,
  .page-login__benefits-list .page-login__list-item,
  .page-login__security-text,
  .page-login__faq-answer p {
    font-size: 1em;
  }

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

  .page-login__form-section,
  .page-login__why-login-section,
  .page-login__guide-section,
  .page-login__troubleshooting-section,
  .page-login__register-promo-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-bottom-section {
    padding: 40px 15px;
  }

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

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__submit-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__form-wrapper {
    padding: 30px;
  }

  .page-login__captcha-image {
    width: 100px;
    height: 40px;
  }

  .page-login__features-grid,
  .page-login__security-features {
    grid-template-columns: 1fr;
  }

  .page-login__register-content {
    flex-direction: column;
  }

  .page-login__register-image {
    width: 100%;
  }

  /* Ensure all content area images are responsive */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form-wrapper,
  .page-login__feature-card,
  .page-login__step-item,
  .page-login__troubleshooting-list .page-login__list-item,
  .page-login__security-item,
  .page-login__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-login__feature-image,
  .page-login__step-image,
  .page-login__register-image,
  .page-login__security-icon {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-login__security-icon {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover;
  }

  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

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

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 2em;
  }

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

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__submit-button {
    font-size: 1em;
    padding: 12px 20px;
  }

  .page-login__form-wrapper {
    padding: 20px;
  }

  .page-login__faq-question {
    font-size: 1em;
  }
}