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

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  background-color: #f8f8f8;
  overflow: hidden;
}

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

.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;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 600px;
  margin-top: -80px; /* Adjust to overlap with image slightly */
}

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

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

.page-login__form-wrapper {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  width: 100%;
  box-sizing: border-box;
}

.page-login__form-title {
  font-size: 2em;
  color: #017439;
  margin-bottom: 30px;
  font-weight: bold;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input:focus {
  border-color: #017439;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
  outline: none;
}

.page-login__form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
}

.page-login__forgot-password-link {
  color: #017439;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: #00562e;
  text-decoration: underline;
}

.page-login__submit-button {
  display: block;
  width: 100%;
  padding: 18px;
  font-size: 1.2em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-login__btn-login {
  background-color: #C30808; /* Custom color for Login */
  color: #FFFF00; /* Custom font color for Login */
}

.page-login__btn-login:hover {
  background-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(195, 8, 8, 0.3);
}

.page-login__register-prompt {
  margin-top: 30px;
  font-size: 1em;
  color: #555555;
}

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

.page-login__register-link:hover {
  color: #00562e;
  text-decoration: underline;
}

.page-login__social-login {
  margin-top: 30px;
  border-top: 1px solid #eeeeee;
  padding-top: 25px;
}

.page-login__social-login p {
  margin-bottom: 20px;
  color: #555555;
}

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

.page-login__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  min-width: 120px;
  box-sizing: border-box;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* Default social button text color */
}

.page-login__social-btn--facebook {
  background-color: #3b5998;
}

.page-login__social-btn--facebook:hover {
  background-color: #2d4373;
  box-shadow: 0 4px 10px rgba(59, 89, 152, 0.3);
}

.page-login__social-btn--google {
  background-color: #dd4b39;
}

.page-login__social-btn--google:hover {
  background-color: #c23321;
  box-shadow: 0 4px 10px rgba(221, 75, 57, 0.3);
}

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

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

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

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

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  line-height: 1.2;
}

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

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

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

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

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

.page-login__card {
  background: #ffffff;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-login__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__benefit-card img, .page-login__troubleshoot-item img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

.page-login__benefit-title, .page-login__troubleshoot-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__benefit-text, .page-login__troubleshoot-text {
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

.page-login__dark-bg .page-login__benefit-card {
  background: rgba(255, 255, 255, 0.95);
  color: #333333;
}

.page-login__dark-bg .page-login__benefit-title {
  color: #017439;
}

.page-login__dark-bg .page-login__benefit-text {
  color: #555555;
}

.page-login__cta-section {
  text-align: center;
  margin-top: 60px;
}

.page-login__cta-text {
  font-size: 1.3em;
  margin-bottom: 30px;
  font-weight: 500;
  color: #f0f0f0;
}

.page-login__cta-button {
  display: inline-block;
  padding: 18px 45px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-login__btn-register {
  background-color: #C30808; /* Custom color for Register */
  color: #FFFF00; /* Custom font color for Register */
}

.page-login__btn-register:hover {
  background-color: #a30606;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(195, 8, 8, 0.4);
}

.page-login__contact-support {
  text-align: center;
  margin-top: 60px;
}

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

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  padding: 15px 40px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-login__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 116, 57, 0.2);
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
}

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

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

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

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

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

.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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

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

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

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

  .page-login__hero-content {
    margin-top: -40px;
  }

  .page-login__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-login__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-login__form-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

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

  .page-login__form-input {
    padding: 12px;
  }

  .page-login__submit-button, .page-login__cta-button, .page-login__btn-secondary {
    padding: 15px 25px;
    font-size: 1.1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__social-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-login__social-btn {
    width: 100%;
    max-width: 100%;
  }

  .page-login__benefits-section, .page-login__troubleshoot-section, .page-login__faq-section {
    padding: 50px 0;
  }

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

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

  .page-login__benefits-grid, .page-login__troubleshoot-grid {
    gap: 20px;
  }

  .page-login__benefit-card img, .page-login__troubleshoot-item img {
    
  }

  .page-login__benefit-title, .page-login__troubleshoot-title {
    font-size: 1.2em;
  }

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

  .page-login__contact-text {
    font-size: 1.1em;
  }

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

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

  .page-login__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }

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

  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 20px !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;
  }
}

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

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

  .page-login__form-wrapper {
    padding: 25px 15px;
  }

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

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