/* -------------------------------------------------------------------------- */
/*                              Base Styles                                   */
/* -------------------------------------------------------------------------- */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light background */
  background: #FFFFFF; /* Default body background is white */
}

.page-login__section-padding {
  padding: 60px 0;
}

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

.page-login__section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

.page-login__section-intro {
  font-size: clamp(16px, 2vw, 18px);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.5;
  color: #555555;
}

.page-login__section-intro--light {
  color: #f0f0f0;
}

.page-login__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-login__btn-primary {
  background: #EA7C07;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(234, 124, 7, 0.3);
}

.page-login__btn-primary:hover {
  background: #d46f06;
  box-shadow: 0 6px 20px rgba(234, 124, 7, 0.4);
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background: #26A9E0;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(38, 169, 224, 0.3);
}

.page-login__btn-secondary:hover {
  background: #1e87b7;
  box-shadow: 0 6px 20px rgba(38, 169, 224, 0.4);
  transform: translateY(-2px);
}

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

.page-login__cta-buttons--center {
  margin-top: 40px;
}

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

.page-login__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

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

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin-top: 80px; /* Adjust based on actual header height and padding */
}

.page-login__main-title {
  color: #ffffff;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
  color: #f0f0f0;
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* -------------------------------------------------------------------------- */
/*                              Form Section                                  */
/* -------------------------------------------------------------------------- */
.page-login__form-section {
  background: #f8f8f8;
}

.page-login__login-form {
  max-width: 500px;
  margin: 40px auto 0;
  padding: 40px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 16px;
  color: #333333;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

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

.page-login__form-input:focus {
  border-color: #26A9E0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: #26A9E0;
}

.page-login__checkbox-label {
  color: #555555;
}

.page-login__forgot-password-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 500;
}

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

.page-login__btn-submit {
  width: 100%;
  background: #EA7C07;
  color: #ffffff;
  font-size: 18px;
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(234, 124, 7, 0.3);
}

.page-login__btn-submit:hover {
  background: #d46f06;
  box-shadow: 0 6px 20px rgba(234, 124, 7, 0.4);
  transform: translateY(-2px);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: #555555;
}

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

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

/* -------------------------------------------------------------------------- */
/*                             Benefits Section                               */
/* -------------------------------------------------------------------------- */
.page-login__dark-section {
  background: #26A9E0;
  color: #ffffff;
}

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

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

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
}

.page-login__benefit-icon {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__benefit-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-login__benefit-description {
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/*                                FAQ Section                                 */
/* -------------------------------------------------------------------------- */
details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-login__faq-toggle {
  font-size: 26px;
  font-weight: bold;
  color: #26A9E0;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-login__faq-item .page-login__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
  font-size: 16px;
}

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

/* -------------------------------------------------------------------------- */
/*                           Long-form SEO Content                            */
/* -------------------------------------------------------------------------- */
.page-login__long-form-content {
  background: #ffffff;
}

.page-login__article-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-login__content-subtitle {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-login__article-body p {
  margin-bottom: 1em;
  font-size: 16px;
  line-height: 1.7;
  color: #444444;
}

.page-login__ordered-list, .page-login__unordered-list {
  margin-bottom: 1em;
  padding-left: 25px;
  font-size: 16px;
  line-height: 1.7;
  color: #444444;
}

.page-login__ordered-list li, .page-login__unordered-list li {
  margin-bottom: 0.5em;
}

.page-login__article-figure {
  margin: 30px auto;
  max-width: 100%;
  display: block;
  text-align: center;
}

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

.page-login__article-figcaption {
  font-size: 14px;
  color: #777777;
  margin-top: 10px;
  text-align: center;
}

/* -------------------------------------------------------------------------- */
/*                               Responsive Styles                            */
/* -------------------------------------------------------------------------- */

/* General image responsiveness */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .page-login__hero-content {
    margin-top: 60px;
    padding: 15px;
  }

  .page-login__main-title {
    font-size: clamp(28px, 4.5vw, 42px);
  }

  .page-login__hero-description {
    font-size: clamp(16px, 2vw, 20px);
  }

  .page-login__section-padding {
    padding: 50px 0;
  }

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

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

  .page-login__benefit-icon {
    width: 180px;
  }

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

  .page-login__faq-qtext {
    font-size: 17px;
  }

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

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

  .page-login__article-body p,
  .page-login__ordered-list, .page-login__unordered-list {
    font-size: 15px;
  }
}

@media (max-width: 849px) {
  /* HERO 主图区域: object-fit:contain */
  .page-login__hero-image {
    object-fit: contain !important; /* Prevents cropping on smaller screens */
    aspect-ratio: unset !important; /* Allows image to scale without fixed ratio */
    position: relative; /* Ensure it respects flow when object-fit is contain */
    height: auto !important;
  }
  .page-login__hero-image-wrapper {
    position: relative;
    height: auto;
    padding-bottom: 0;
  }
  .page-login__hero-content {
    margin-top: 20px; /* Reduced margin for smaller screens */
    background-color: rgba(0, 0, 0, 0.7); /* Slightly darker overlay for better text contrast */
    padding: 20px 15px;
  }
  .page-login__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    padding-bottom: 40px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-login__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }
  .page-login__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }
  .page-login__hero-description {
    font-size: clamp(15px, 3vw, 18px);
    margin-bottom: 25px;
  }
  .page-login__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  /* General image and container responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-login__container,
  .page-login__section,
  .page-login__card,
  .page-login__article-body {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Form Section */
  .page-login__form-section .page-login__login-form {
    padding: 25px;
    margin: 30px auto 0;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Benefits Section */
  .page-login__benefits-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
  .page-login__benefit-card {
    padding: 25px;
  }
  .page-login__benefit-icon {
    width: 200px; /* Keep minimum size for content images */
    height: auto;
  }

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

  /* Long-form SEO Content */
  .page-login__content-subtitle {
    font-size: clamp(20px, 5vw, 26px);
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-login__article-body p,
  .page-login__ordered-list,
  .page-login__unordered-list {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Button responsiveness */
  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    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__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-login__cta-buttons {
    flex-direction: column !important;
  }
}