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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  background-color: #E53935; /* Brand primary color for hero background */
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-login__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  width: 90%;
  z-index: 10;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay for text */
  border-radius: 8px;
}

.page-login__main-title {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-login__hero-description {
  font-size: 1.2em;
  line-height: 1.5;
  color: #f0f0f0;
}

/* General Container for content */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Card styling for sections with background #FFFFFF */
.page-login__card {
  background-color: #ffffff; /* Card BG color */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 30px;
}

/* Section Titles and Descriptions */
.page-login__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #E53935; /* Main brand color for titles */
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Login Form Section */
.page-login__form-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

.page-login__login-form {
  max-width: 500px;
  margin: 0 auto 30px auto;
  padding: 30px;
  border: 1px solid #E0E0E0; /* Border color */
  border-radius: 8px;
  background-color: #ffffff;
}

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

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

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

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

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 15px;
  margin-top: 25px;
}

.page-login__forgot-password-link {
  color: #E53935; /* Main brand color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: #FF5A4F; /* Accent brand color */
}

/* Buttons */
.page-login__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: #ffffff;
  color: #E53935; /* Main brand color */
  text-decoration: none;
  border: 2px solid #E53935;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-secondary:hover {
  background-color: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-login__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  background-color: #555555; /* A neutral color for download button */
  color: #ffffff;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-tertiary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-login__register-cta {
  text-align: center;
  margin-top: 30px;
}

.page-login__register-text {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #333333;
}

.page-login__register-subtext {
  font-size: 0.95em;
  color: #666666;
  margin-top: 15px;
}

/* Why Choose Us Section */
.page-login__why-choose-us {
  padding: 60px 0;
  background-color: #1A202C; /* Dark background for contrast */
  color: #ffffff;
}

.page-login__why-choose-us .page-login__section-title {
  color: #ffffff;
}

.page-login__why-choose-us .page-login__section-description {
  color: #f0f0f0;
}

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

.page-login__feature-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly visible card on dark bg */
  padding: 25px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%; /* Make icons round */
  background-color: rgba(255, 255, 255, 0.15);
  padding: 10px;
}

.page-login__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FF5A4F; /* Accent color for feature titles */
}

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

/* Security Info Section */
.page-login__security-info {
  padding: 60px 0;
  background-color: #F5F7FA;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-login__security-item {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
}

.page-login__security-list-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #E53935;
}

.page-login__security-item p {
  color: #333333;
  margin-bottom: 0;
}

.page-login__security-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 1em;
  color: #555555;
}

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

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

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
  background-color: #1A202C; /* Dark background */
  color: #ffffff;
}

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

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

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Card BG on dark section */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-login__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-login__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

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

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #FF5A4F;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

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

.page-login__faq-answer p {
  margin-bottom: 10px;
  color: #e0e0e0;
}

/* CTA Section */
.page-login__cta-section {
  padding: 60px 0;
  background-color: #E53935; /* Primary brand color */
  color: #ffffff;
  text-align: center;
}

.page-login__cta-section .page-login__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-login__cta-section .page-login__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on mobile */
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

/* General image responsive styles */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block; /* Prevent extra space below images */
}

/* Placeholder for homepage specific CSS rules (minimal, non-conflicting) */
.page-login__home-content {
  border: 1px solid #E0E0E0; /* Placeholder style from example */
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px; /* Generic spacing */
  height: auto; /* Override example fixed height */
  overflow-y: visible; /* Override example overflow */
}
.page-login__row-games,
.page-login__row-sport,
.page-login__row-coop {
  background-color: transparent; /* Ensure no unintended background */
  padding: 20px;
  max-width: 1330px; /* Max width from example */
  margin: 0 auto;
}
.page-login__games-title,
.page-login__sport-title,
.page-login__coop-title {
  color: #333333; /* Default text color */
  text-align: center;
  margin-bottom: 20px;
}
.page-login__slider-wrapper {
  overflow: hidden;
  margin-bottom: 30px;
}
.page-login__slider-track {
  display: flex; /* Required for slider track */
  flex-wrap: nowrap;
  gap: 16px;
}
.page-login__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
}
.page-login__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)); /* Required 6 columns for desktop */
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 30px auto;
}
.page-login__banner-item img {
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.page-login__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* Required 3 columns for desktop */
  gap: 20px;
  align-items: stretch;
  margin-bottom: 30px;
}
.page-login__blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.page-login__btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #E53935;
  color: #E53935;
  text-decoration: none;
  border-radius: 5px;
  margin-top: auto;
}
.page-login__blog-slider-track {
  display: flex; /* Required for blog slider track */
  flex-wrap: nowrap;
  gap: 20px;
}
.page-login__blog-slide {
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__container {
    padding: 30px 15px;
  }
  .page-login__card {
    padding: 25px;
  }
  .page-login__login-form {
    padding: 25px;
  }
  .page-login__feature-item {
    padding: 20px;
  }
  .page-login__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-login__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-login__cta-buttons {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-login__hero-section {
    padding-top: 10px; /* Consistent small top padding */
  }
  .page-login__hero-content {
    width: 95%;
    padding: 15px;
  }
  .page-login__main-title {
    font-size: 1.8em; /* Adjusted font size for mobile */
    margin-bottom: 10px;
  }
  .page-login__hero-description {
    font-size: 0.95em;
  }

  /* 通用容器和文本 */
  .page-login__container {
    padding: 20px 15px;
  }
  .page-login__section-title {
    font-size: 1.8em; /* Adjusted font size for mobile */
    margin-bottom: 15px;
  }
  .page-login__section-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-login p,
  .page-login li {
    font-size: 15px;
    line-height: 1.6;
  }
  .page-login__card {
    padding: 20px;
  }

  /* 登录表单 */
  .page-login__login-form {
    padding: 20px;
  }
  .page-login__form-actions {
    flex-direction: column; /* Stack buttons vertically */
    align-items: stretch;
    gap: 10px;
  }
  .page-login__forgot-password-link {
    text-align: center;
  }

  /* 按钮与按钮容器 */
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__btn-tertiary,
  .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;
    flex-direction: column; /* Stack CTA buttons vertically */
  }

  /* 通用图片与容器 */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Why Choose Us Grid */
  .page-login__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Security List */
  .page-login__security-item {
    padding: 15px;
  }
  .page-login__security-list-title {
    font-size: 1.15em;
  }

  /* FAQ List */
  .page-login__faq-list {
    margin-top: 20px;
  }
  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-login__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Homepage specific media queries, minimally defined to avoid conflicts */
  .page-login__home-content {
    height: auto;
    overflow-y: visible;
  }
  .page-login__blog-masonry {
    grid-template-columns: 1fr;
  }
  .page-login__game-slide {
    flex: 0 0 160px;
    max-width: 160px;
  }
  .page-login__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-login__blog-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
}