.page-login__hero-section {
  position: relative;
  background-color: #017439; /* Using brand primary color for hero background */
  color: #ffffff; /* Light text for dark background */
  padding: 80px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a decent height */
}

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

.page-login__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Custom font color for main title */
}

.page-login__description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-form-wrapper {
  background-color: #1a1a2e; /* Body background color for form wrapper */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-login__form-group {
  text-align: left;
}

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #017439;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-login__form-input:focus {
  outline: none;
  border-color: #FFFF00;
  box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.3);
}

.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;
  color: #ffffff;
  cursor: pointer;
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #017439;
}

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

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

.page-login__btn-login {
  background-color: #C30808; /* Custom login button color */
  color: #FFFF00; /* Custom login button text color */
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none; /* Ensure it looks like a button */
  display: block;
  width: 100%;
  box-sizing: border-box;
}

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

.page-login__no-account-text {
  font-size: 0.95em;
  color: #ffffff;
  text-align: center;
  margin-top: 15px;
}

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

.page-login__register-link:hover {
  text-decoration: underline;
}

.page-login__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  line-height: 1.3;
}

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

.page-login__why-login {
  background-color: #FFFFFF; /* Light background */
  color: #333333; /* Dark text for light background */
  padding: 80px 0;
}

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

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

.page-login__benefit-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-login__benefit-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-login__benefit-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
}

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

.page-login__guide-section {
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff; /* Light text */
  padding: 80px 0;
}

.page-login__guide-section .page-login__section-title {
  color: #FFFF00;
}

.page-login__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-login__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__step-number {
  font-size: 2.5em;
  font-weight: 700;
  color: #FFFF00;
  margin-bottom: 15px;
  border: 3px solid #FFFF00;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-login__step-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-login__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.page-login__guide-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 50px auto 0;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-login__troubleshoot-section {
  background-color: #FFFFFF; /* Light background */
  color: #333333; /* Dark text */
  padding: 80px 0;
}

.page-login__troubleshoot-section .page-login__section-title {
  color: #017439;
}

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

.page-login__troubleshoot-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-login__troubleshoot-heading {
  font-size: 1.4em;
  font-weight: 700;
  color: #C30808;
  margin-bottom: 15px;
}

.page-login__troubleshoot-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
}

.page-login__troubleshoot-link {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-login__troubleshoot-link:hover {
  background-color: #005f2e;
}

.page-login__troubleshoot-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 50px auto 0;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-login__security-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff; /* Light text */
  padding: 80px 0;
}

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

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

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

.page-login__feature-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-login__feature-text {
  font-size: 1em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.page-login__security-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 50px auto 0;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-login__register-cta {
  background-color: #FFFFFF; /* Light background */
  color: #333333; /* Dark text */
  padding: 80px 0;
  text-align: center;
}

.page-login__register-cta .page-login__section-title {
  color: #017439;
}

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

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

.page-login__register-note {
  margin-top: 20px;
  font-size: 1em;
  color: #555555;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-section {
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff; /* Light text */
  padding: 80px 0;
}

.page-login__faq-section .page-login__section-title {
  color: #FFFF00;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__faq-item:last-child {
  border-bottom: none;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-login__faq-toggle {
  font-size: 1.8em;
  font-weight: 700;
  color: #FFFF00;
  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 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 30px;
}

.page-login__faq-text {
  font-size: 1em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

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

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

.page-login__faq-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 50px auto 0;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@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: 60px 15px;
    min-height: 500px;
  }

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

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

  .page-login__login-form-wrapper {
    padding: 30px;
  }

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

  .page-login__form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

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

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

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

  .page-login__benefits-grid, .page-login__steps-grid, .page-login__troubleshoot-grid, .page-login__security-features {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-login__benefit-item, .page-login__step-item, .page-login__troubleshoot-item, .page-login__security-item {
    padding: 25px;
  }

  .page-login__benefit-image, .page-login__guide-image, .page-login__troubleshoot-image, .page-login__security-image, .page-login__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box !important;
  }

  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  /* Ensure all content sections have padding and max-width */
  .page-login__why-login, .page-login__guide-section, .page-login__troubleshoot-section, .page-login__security-section, .page-login__register-cta, .page-login__faq-section {
    padding: 50px 0;
  }

  .page-login__why-login .page-login__container,
  .page-login__guide-section .page-login__container,
  .page-login__troubleshoot-section .page-login__container,
  .page-login__security-section .page-login__container,
  .page-login__register-cta .page-login__container,
  .page-login__faq-section .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-login__btn-login, .page-login__btn-register {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-login__login-form-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

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

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

  .page-login__login-form-wrapper {
    padding: 20px;
  }

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

  .page-login__forgot-password {
    align-self: flex-start;
  }

  .page-login__btn-login, .page-login__btn-register {
    font-size: 0.95em;
  }

  .page-login__faq-title {
    font-size: 1.1em;
  }

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

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

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

  .page-login__step-number {
    font-size: 2em;
    width: 60px;
    height: 60px;
  }
  
  .page-login__hero-section {
    min-height: 400px;
  }
}