/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

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

.page-login__hero-section {
  padding-top: 10px; /* Minimal top padding, assuming shared.css handles body padding-top */
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure hero section has a decent height */
}

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

.page-login__hero-content {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability */
  padding: 30px;
  border-radius: 10px;
  max-width: 800px;
  margin: 20px auto;
}

.page-login__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFF00; /* Login font color */
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

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

.page-login__login-form-wrapper {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  margin: 0 auto;
}

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

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

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

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}

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

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

.page-login__remember-me {
  display: flex;
  align-items: center;
  gap: 5px;
}

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

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

.page-login__btn-submit {
  background: #C30808; /* Login button color */
  color: #FFFF00; /* Login font color */
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

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

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

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

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

/* General Section Styles */
.page-login__section-title {
  font-size: 2.2em;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
}

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

.page-login__light-bg {
  background: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-login__dark-bg {
  background: #017439;
  color: #ffffff;
  padding: 60px 0;
}

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

.page-login__benefit-card {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

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

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

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

/* Guide Section */
.page-login__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  color: #ffffff;
}

.page-login__step-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-login__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FFFF00;
  color: #017439;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
}

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

.page-login__step-text {
  font-size: 1em;
}

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

/* Troubleshooting Section */
.page-login__trouble-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-login__trouble-item {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-login__trouble-heading {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #017439;
}

.page-login__trouble-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
}

.page-login__btn-contact-support {
  display: inline-block;
  background: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

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

/* Security Section */
.page-login__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  color: #ffffff;
}

.page-login__feature-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

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

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

.page-login__feature-text {
  font-size: 1em;
}

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

.page-login__game-category {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-login__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-login__category-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-login__btn-explore {
  display: inline-block;
  background: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
  transition: background-color 0.3s ease;
}

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

.page-login__cta-section {
  background: #f0f0f0;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-login__cta-heading {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

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

/* App Section */
.page-login__app-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
  color: #ffffff;
}

.page-login__app-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-login__app-info {
  flex: 1;
  max-width: 500px;
  text-align: left;
}

.page-login__app-heading {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFFF00;
}

.page-login__app-features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-login__app-features-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23FFFF00" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 18px;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-login__btn-download {
  display: inline-block;
  background: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-login__btn-download:hover {
  background-color: #a00606;
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-item {
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  list-style: none; /* Hide default marker */
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
}

/* CTA Bottom Section */
.page-login__cta-bottom-section {
  text-align: center;
  padding: 80px 0;
}

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

.page-login__cta-bottom-section .page-login__section-description {
  color: #ffffff;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: #C30808; /* Register button color */
  color: #FFFF00; /* Register font color */
  border: 2px solid #C30808;
}

.page-login__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-login__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #ffffff;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__container {
    padding: 15px;
  }
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__games-overview,
  .page-login__benefits-grid,
  .page-login__guide-steps,
  .page-login__trouble-list,
  .page-login__security-features {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-login__app-content {
    flex-direction: column;
  }
  .page-login__app-info {
    text-align: center;
    max-width: 100%;
  }
  .page-login__app-features-list li {
    background-position: center left;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: 10px !important; /* Fixed header spacing */
    min-height: 400px;
  }
  .page-login__hero-content {
    padding: 20px;
  }
  .page-login__main-title {
    font-size: 2em; /* Ensure H1 font size is not too large */
  }
  .page-login__intro-text {
    font-size: 1em;
  }
  .page-login__login-form-wrapper {
    padding: 20px;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__section-description {
    font-size: 0.95em;
  }

  /* General content area padding and image/button rules */
  .page-login__container,
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__troubleshooting-section,
  .page-login__security-section,
  .page-login__explore-section,
  .page-login__app-section,
  .page-login__faq-section,
  .page-login__cta-bottom-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* General image rules */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* General button rules */
  .page-login__btn-submit,
  .page-login__btn-contact-support,
  .page-login__btn-explore,
  .page-login__btn-download,
  .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 !important;
    padding-right: 15px !important;
  }

  /* Button containers */
  .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 !important;
    padding-right: 15px !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* Dummy/Generic rules for homepage-specific modules, as required */
  /* HERO 主图区域 (already covered by .page-login__hero-section) */

  /* 长文金框区 (assuming this is .page-login__home-content if present) */
  .page-login__home-content {
    height: auto !important;
    overflow-y: visible !important;
    padding: 20px !important;
  }
  .page-login__home-content h2 {
    font-size: 1.5em !important;
  }

  /* 游戏轮播 (assuming classes like __slider-wrapper, __slider-track) */
  .page-login__slider-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .page-login__slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }
  .page-login__game-slide {
    flex: 0 0 180px !important;
    max-width: 180px !important;
  }

  /* 合作品牌六宫格 (assuming classes like __banners-top-wrapper) */
  .page-login__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important; /* 3 columns on mobile */
    gap: 10px !important;
  }
  .page-login__banner-item img {
    
    
  }

  /* 博客卡片区 (assuming classes like __blog-masonry, __blog-slider-track) */
  .page-login__blog-masonry {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    align-items: stretch !important;
  }
  .page-login__blog-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
  }
  .page-login__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Ensure all content areas are properly padded */
  .page-login__benefits-grid,
  .page-login__guide-steps,
  .page-login__trouble-list,
  .page-login__security-features,
  .page-login__games-overview,
  .page-login__app-content,
  .page-login__faq-list {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-login__app-info {
    text-align: center !important;
  }
  .page-login__app-features-list {
    text-align: left !important;
  }
  .page-login__app-features-list li {
    padding-left: 25px !important;
  }
}