.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Explicitly setting body background to white */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on shared for body padding-top */
  padding-bottom: 60px;
  overflow: hidden;
  color: #ffffff;
  background-color: #017439;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  max-height: 600px; /* Adjust as needed for visual impact */
  object-fit: cover;
  display: block;
  margin-bottom: 40px;
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-login__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__form {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  background-color: #f8f8f8;
  color: #333333;
}

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

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

.page-login__btn-login {
  display: inline-block;
  width: 100%;
  padding: 12px 25px;
  background-color: #C30808; /* Login button custom color */
  color: #FFFF00; /* Login button font custom color */
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-login__forgot-password {
  color: #FFFF00; /* Custom color for text */
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-login__register-prompt {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.page-login__register-prompt p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-login__btn-register {
  display: inline-block;
  width: 100%;
  padding: 10px 20px;
  background-color: #017439; /* Using main brand color for register */
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-register:hover {
  background-color: #005f2e;
  border-color: #f0f0f0;
}

/* General Section Styling */
.page-login__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  color: #017439; /* Default for light background */
}

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

.page-login__section-description {
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #555555; /* Default for light background */
}

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

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-login__dark-bg {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

.page-login__long-description {
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 40px;
  text-align: justify;
  color: #555555;
}

.page-login__dark-bg .page-login__long-description {
  color: #e0e0e0;
}

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

.page-login__benefit-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-login__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

.page-login__benefit-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-login__benefit-text {
  font-size: 1rem;
  color: #666666;
}

/* Guide Section */
.page-login__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-login__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #FFFF00; /* Custom color */
  color: #017439; /* Text color for custom background */
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-login__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__step-text {
  font-size: 1rem;
  color: #e0e0e0;
}

/* Troubleshooting Section */
.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: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__troubleshooting-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-login__troubleshooting-text {
  font-size: 1rem;
  color: #666666;
}

.page-login__cta-text {
  font-size: 1.1rem;
  text-align: center;
  margin-top: 40px;
  color: #555555;
}

.page-login__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-login__promotion-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-login__promotion-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-login__promotion-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFF00; /* Custom color for promotion title */
}

.page-login__promotion-text {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-login__btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background-color: #C30808;
  color: #FFFF00;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* FAQ Section */
details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  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: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
}

.page-login__btn-register-cta {
  display: inline-block;
  padding: 12px 25px;
  background-color: #FFFF00; /* Custom color */
  color: #017439; /* Text color for custom background */
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

  .page-login__hero-image {
    max-height: 500px;
  }

  .page-login__benefits-grid, .page-login__guide-steps, .page-login__troubleshooting-grid, .page-login__promotions-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-login__container {
    padding: 15px;
  }

  /* Hero Section */
  .page-login__hero-section {
    padding-top: 10px; /* Still small top padding */
    padding-bottom: 40px;
  }

  .page-login__hero-image {
    max-height: 350px;
    object-fit: contain; /* Ensure image fits without cropping too much */
    margin-bottom: 30px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-login__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-login__form {
    padding: 20px;
  }

  .page-login__form-input {
    width: calc(100% - 20px);
    padding: 10px;
  }

  .page-login__form-actions {
    gap: 10px;
  }

  .page-login__btn-login, .page-login__btn-register {
    font-size: 1rem;
    padding: 10px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__forgot-password {
    font-size: 0.9rem;
  }

  /* General Section Styling */
  .page-login__light-bg, .page-login__dark-bg {
    padding: 40px 0;
  }

  .page-login__section-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .page-login__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-login__long-description {
    font-size: 0.9rem;
    margin-top: 30px;
    padding: 0 10px;
  }

  /* Benefits Section */
  .page-login__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__benefit-item {
    padding: 20px;
  }

  .page-login__benefit-icon {
    max-width: 120px;
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__benefit-title {
    font-size: 1.2rem;
  }

  /* Guide Section */
  .page-login__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__step-item {
    padding: 20px;
  }

  .page-login__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }

  .page-login__step-title {
    font-size: 1.3rem;
  }

  /* Troubleshooting Section */
  .page-login__troubleshooting-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__troubleshooting-item {
    padding: 20px;
  }

  .page-login__troubleshooting-title {
    font-size: 1.1rem;
  }

  .page-login__cta-text {
    font-size: 1rem;
  }

  .page-login__button-group {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__btn-secondary {
    font-size: 1rem;
    padding: 10px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Promotions Section */
  .page-login__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-login__promotion-image {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__promotion-title {
    font-size: 1.2rem;
  }

  .page-login__btn-primary {
    font-size: 1rem;
    padding: 10px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ Section */
  details.page-login__faq-item summary.page-login__faq-question { padding: 15px; }
  .page-login__faq-qtext { font-size: 15px; }
  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 15px 15px;
  }

  /* CTA Section */
  .page-login__cta-section {
    padding: 50px 0;
  }

  .page-login__btn-register-cta {
    font-size: 1rem;
    padding: 10px 20px;
    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;
  }
}