.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
}

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

.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height to prevent excessive stretching */
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-login__hero-content-wrapper {
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
  background-color: var(--card-bg); /* Use specific background color for content */
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
}

.page-login__main-title {
  color: var(--text-main);
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__description {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main);
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background-color: var(--card-bg);
  color: var(--text-main);
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: var(--text-secondary);
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.page-login__checkbox-group {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
}

.page-login__checkbox-label {
  color: var(--text-secondary);
}

.page-login__forgot-password-link {
  color: var(--text-secondary);
  text-decoration: none;
}

.page-login__forgot-password-link:hover {
  color: var(--glow);
  text-decoration: underline;
}

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  font-size: 18px;
  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: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-login__register-prompt {
  color: var(--text-secondary);
  margin-top: 20px;
}

.page-login__register-link {
  color: var(--glow);
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__section-title {
  color: var(--text-main);
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}

.page-login__section-description {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Why Choose Section */
.page-login__why-choose-section {
  padding: 80px 0;
  background-color: var(--card-bg); /* Darker background for contrast */
}

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

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

.page-login__feature-title {
  color: var(--glow);
  font-size: 22px;
  margin-bottom: 15px;
}

.page-login__feature-text {
  color: var(--text-secondary);
}

/* Guide Section */
.page-login__guide-section {
  padding: 80px 0;
}

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

.page-login__guide-steps {
  flex: 1;
  min-width: 300px;
}

.page-login__ordered-list {
  list-style-type: none;
  padding: 0;
}

.page-login__list-item {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--deep-green);
}

.page-login__list-title {
  color: var(--text-main);
  font-size: 20px;
  margin-bottom: 10px;
}

.page-login__list-text {
  color: var(--text-secondary);
}

.page-login__guide-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-login__guide-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

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

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

.page-login__security-title {
  color: var(--text-main);
  font-size: 22px;
  margin-bottom: 15px;
}

.page-login__security-text {
  color: var(--text-secondary);
}

.page-login__security-image-wrapper {
  text-align: center;
  padding-top: 40px;
}

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

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 80px 0;
}

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

.page-login__troubleshooting-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--gold);
}

.page-login__troubleshooting-title {
  color: var(--text-main);
  font-size: 20px;
  margin-bottom: 15px;
}

.page-login__troubleshooting-text {
  color: var(--text-secondary);
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

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

.page-login__faq-item {
  background-color: var(--background);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--divider);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: var(--text-main);
  font-weight: bold;
  font-size: 18px;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--divider);
  list-style: none; /* For details/summary native styling */
}

.page-login__faq-question::-webkit-details-marker {
  display: none;
}

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom: 1px solid var(--deep-green);
}

.page-login__faq-qtext {
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow);
}

.page-login__faq-answer {
  padding: 20px;
  color: var(--text-secondary);
  background-color: var(--background);
}

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

/* Final CTA Section */
.page-login__final-cta-section {
  padding: 80px 0;
}

.page-login__final-cta-section .page-login__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: center;
}

.page-login__cta-content {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-login__cta-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-login__cta-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-login__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 30px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-login__hero-content-wrapper {
    margin-top: -50px;
  }
}

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

  .page-login__hero-section {
    padding-bottom: 40px;
  }

  .page-login__hero-content-wrapper {
    padding: 30px 15px;
    margin-top: -80px; /* Adjust overlap for smaller screens */
  }

  .page-login__main-title {
    font-size: 28px;
  }

  .page-login__section-title {
    font-size: 26px;
  }

  .page-login__section-description {
    margin-bottom: 30px;
  }

  .page-login__why-choose-section,
  .page-login__guide-section,
  .page-login__security-section,
  .page-login__troubleshooting-section,
  .page-login__faq-section,
  .page-login__final-cta-section {
    padding: 60px 0;
  }

  .page-login__guide-content,
  .page-login__final-cta-section .page-login__container {
    flex-direction: column;
  }

  .page-login__guide-image-wrapper,
  .page-login__cta-image-wrapper {
    order: -1; /* Image above text on mobile */
    margin-bottom: 30px;
  }

  .page-login__hero-image,
  .page-login__guide-image,
  .page-login__security-image,
  .page-login__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__hero-image-wrapper,
  .page-login__guide-image-wrapper,
  .page-login__security-image-wrapper,
  .page-login__cta-image-wrapper,
  .page-login__form,
  .page-login__submit-button,
  .page-login__btn-primary,
  .page-login__features-grid,
  .page-login__security-grid,
  .page-login__troubleshooting-grid,
  .page-login__faq-list,
  .page-login__faq-item,
  .page-login__faq-question,
  .page-login__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

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

  .page-login__submit-button,
  .page-login__btn-primary {
    padding: 12px 15px;
    font-size: 16px;
  }

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

  .page-login__checkbox-group {
    width: 100%;
  }

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

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

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

/* Ensure content area images are not smaller than 200px */
.page-login__guide-image,
.page-login__security-image,
.page-login__cta-image {
  min-width: 200px;
  min-height: 200px;
}