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

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

.page-login__hero-section {
  text-align: center;
  padding-top: 10px; /* Small top padding, relies on body padding-top for header offset */
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text contrast */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text block */
  border-radius: 8px;
}

.page-login__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Register and Login font color */
}

.page-login__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-login__section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Primary color for titles */
}

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

.page-login__form-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

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

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

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

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

.page-login__forgot-password {
  color: #017439;
  text-decoration: none;
  font-size: 14px;
}

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

.page-login__btn-submit {
  width: 100%;
  padding: 15px;
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Register and Login font color */
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-submit:hover {
  background-color: #a30606;
}

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

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

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

.page-login__features-section {
  padding: 60px 0;
  text-align: center;
}

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

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

.page-login__feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-login__feature-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  max-width: 100px; /* Ensure icons are not too large */
  min-width: 200px; /* Enforce minimum size for all images */
  min-height: 200px;
  object-fit: contain;
}

.page-login__feature-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFF00; /* Register and Login font color */
}

.page-login__feature-description {
  font-size: 16px;
  color: #f0f0f0;
}

.page-login__games-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-login__game-card {
  display: block;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce minimum size for all images */
  min-height: 200px;
}

.page-login__game-title {
  font-size: 20px;
  font-weight: 600;
  padding: 15px 20px 5px;
  color: #017439;
}

.page-login__game-description {
  font-size: 15px;
  padding: 0 20px 20px;
  color: #555555;
}

.page-login__promotions-section {
  padding: 60px 0;
  text-align: center;
}

.page-login__cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-login__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #017439; /* Primary button color */
  color: #ffffff; /* Button text color */
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-login__faq-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-login__faq-list {
  margin-top: 40px;
}

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;
}

.page-login__cta-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-login__btn-primary--register {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register and Login font color */
}

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

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

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-login__container {
    padding: 20px 30px;
  }
  .page-login__hero-content {
    padding: 30px 20px;
  }
  .page-login__hero-description {
    font-size: 17px;
  }
  .page-login__login-box {
    padding: 30px;
  }
  .page-login__features-grid, .page-login__games-grid {
    gap: 20px;
  }
  .page-login__feature-icon {
    width: 80px;
    height: auto;
  }
  .page-login__game-image {
    height: 180px;
  }
}

@media (max-width: 849px) {
  .page-login__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    filter: none; /* Remove darkening filter if image is contained */
  }
  .page-login__hero-content {
    background: none; /* Remove background from text block if image is contained */
    padding: 20px;
  }
  .page-login__hero-section {
    padding-top: 10px; /* Ensure small top padding */
  }
  .page-login__main-title {
    color: #017439; /* Change title color for better contrast on potentially lighter background */
  }
  .page-login__hero-description {
    color: #333333; /* Change description color for better contrast */
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-login__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 30px;
  }
  .page-login__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: unset !important;
    filter: none; /* Ensure no filter if image is contained */
  }
  .page-login__hero-content {
    padding: 20px 15px;
    background: none; /* Remove background from text block */
  }
  .page-login__main-title {
    font-size: clamp(24px, 7vw, 36px);
    color: #017439; /* Adjust color for better contrast on mobile */
  }
  .page-login__hero-description {
    font-size: 16px;
    color: #333333; /* Adjust color for better contrast on mobile */
  }

  /* 装饰主标题 + 长文 SEO 区 (General sections for mobile) */
  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__section-title {
    font-size: clamp(20px, 6vw, 28px);
    margin-bottom: 30px;
  }
  .page-login__login-box {
    padding: 25px;
  }

  /* 通用图片与容器 */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-login__feature-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
    max-width: 200px !important; /* Keep original max-width for icons if needed, but ensure min size */
    margin-left: auto;
    margin-right: auto;
  }
  .page-login__game-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 按钮与按钮容器 */
  .page-login__btn-submit,
  .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-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  /* FAQ */
  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; }
}