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

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

.page-login__hero-section {
  padding-top: 10px; /* As per fixed header spacing rule */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #F5F7FA;
  padding-bottom: 40px;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

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

.page-login__hero-content {
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: -80px; /* Overlap with image slightly for visual effect */
  position: relative;
  z-index: 1;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #E53935;
}

.page-login__description {
  font-size: 1.1rem;
  color: #555555;
  margin-bottom: 30px;
}

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

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

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

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

.page-login__form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-login__cta-button {
  flex: 1;
  min-width: 180px;
  padding: 14px 25px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-login__btn-primary:hover {
  opacity: 0.9;
}

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

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

.page-login__forgot-password {
  display: block;
  margin-top: 15px;
  color: #E53935;
  text-decoration: none;
  font-size: 0.95rem;
}

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

.page-login__section-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
}

.page-login__text-block {
  font-size: 1.05rem;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__text-block,
.page-login__dark-bg .page-login__card-title,
.page-login__dark-bg .page-login__card-description,
.page-login__dark-bg .page-login__security-item {
  color: #ffffff;
}

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

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

.page-login__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-login__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-login__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 15px;
}

.page-login__card-description {
  font-size: 1rem;
  color: #555555;
  line-height: 1.5;
  flex-grow: 1;
}

.page-login__troubleshooting-section {
  margin-top: 50px;
  text-align: center;
  padding: 30px;
}

.page-login__troubleshooting-section .page-login__btn-secondary {
  margin-top: 20px;
}

.page-login__security-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
}

.page-login__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 5px solid #FF5A4F;
  border-radius: 5px;
  font-size: 1.1rem;
}

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

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

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

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

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

.page-login__faq-toggle {
  font-size: 1.5rem;
  color: #E53935;
  margin-left: 15px;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: '-';
}

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

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

.page-login__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* --- General mobile rules for images and containers --- */
@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-login__hero-section {
    padding-top: 10px; /* Consistent with fixed header rule */
    padding-bottom: 20px;
  }

  .page-login__hero-content {
    margin-top: -40px; /* Adjust overlap for mobile */
    padding: 30px 20px;
  }

  .page-login__main-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 15px;
  }

  .page-login__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* 长文金框区 (Required structure, even if not in HTML) */
  .page-login__home-content {
    height: auto !important;
    overflow-y: visible !important;
    padding: 15px;
  }
  .page-login__home-content h2 {
    font-size: 24px;
  }

  /* 游戏轮播 (Required structure, even if not in HTML) */
  .page-login__slider-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px; /* Prevent scrollbar from overlapping content */
  }
  .page-login__slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .page-login__game-slide {
    flex: 0 0 160px !important;
    max-width: 160px !important;
  }

  /* 合作品牌六宫格 (Required structure, even if not in HTML) */
  .page-login__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px;
  }
  .page-login__banner-item img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* 博客卡片区 (Required structure, even if not in HTML) */
  .page-login__blog-masonry {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
  .page-login__blog-card-link {
    flex-direction: column;
  }
  .page-login__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .page-login__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
  }

  /* Section titles and text blocks */
  .page-login__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .page-login__text-block {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* Card layout */
  .page-login__benefits-grid,
  .page-login__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__card-image {
    height: 180px;
  }

  .page-login__card-title {
    font-size: 1.3rem;
  }

  .page-login__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  /* Buttons and button containers */
  .page-login__form-actions,
  .page-login__button-group {
    flex-direction: column !important;
    gap: 10px;
  }

  .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;
    flex-direction: column !important;
  }
}

/* Required CSS for homepage specific modules (even if not on this page HTML) */
/* The prompt explicitly asks for these to be present in the CSS output for completeness */
.page-login__home-content { /* long text gold frame area */
  border: 1px solid #FBB00D;
  border-radius: 10px;
  height: 650px;
  overflow-y: auto;
  padding: 40px;
  margin: 40px auto;
  max-width: 1200px;
  background-color: #ffffff;
}

.page-login__row-games, .page-login__row-sport, .page-login__row-coop { /* game/sport/coop sections */
  background-color: #1A202C;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
}

.page-login__games-title, .page-login__sport-title, .page-login__coop-title { /* titles */
  color: #fff;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.page-login__slider-wrapper { /* game slider wrapper */
  overflow: hidden;
  margin-top: 30px;
}

.page-login__slider-track { /* game slider track */
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  padding-bottom: 10px;
}

.page-login__game-slide { /* individual game slide */
  flex: 0 0 200px;
  max-width: 200px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.page-login__game-slide:hover {
  transform: translateY(-5px);
}

.page-login__game-slide img {
  width: 100%;
   /* Example fixed height */
  object-fit: cover;
}

.page-login__game-slide-title {
  color: #ffffff;
  font-size: 1.1rem;
  padding: 10px;
  text-align: center;
  background-color: rgba(0,0,0,0.5);
}

.page-login__banners-top-wrapper { /* partners/gameshow grid */
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 40px auto;
  align-items: center;
  justify-items: center;
}

.page-login__banner-item img { /* individual banner image */
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.page-login__blog-masonry { /* blog masonry layout */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 40px;
}

.page-login__blog-card-link { /* blog card link container */
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.page-login__blog-card { /* blog card itself */
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
  height: 100%;
}

.page-login__blog-card:hover {
  transform: translateY(-5px);
}

.page-login__blog-card img {
  width: 100%;
  height: 200px; /* Fixed height for blog images */
  object-fit: cover;
}

.page-login__blog-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-login__blog-card-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 10px;
}

.page-login__blog-card-date {
  font-size: 0.9rem;
  color: #888888;
  margin-bottom: 15px;
}

.page-login__blog-card-description {
  font-size: 1rem;
  color: #555555;
  line-height: 1.5;
  flex-grow: 1;
}

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

.page-login__btn-outline:hover {
  background-color: #E53935;
  color: #ffffff;
}

.page-login__blog-slider-track { /* blog slider track */
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  padding-bottom: 10px;
}

.page-login__blog-slide { /* individual blog slide */
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
}

@media (max-width: 1024px) {
  .page-login__hero-content {
    margin-top: -60px;
    padding: 30px;
  }
  .page-login__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }
  .page-login__section-title {
    font-size: 2rem;
  }
  .page-login__benefits-grid, .page-login__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-login__home-content {
    height: 550px;
    padding: 30px;
  }
  .page-login__games-title, .page-login__sport-title, .page-login__coop-title {
    font-size: 2rem;
  }
  .page-login__slider-track {
    gap: 12px;
  }
  .page-login__game-slide {
    flex: 0 0 180px;
    max-width: 180px;
  }
  .page-login__banners-top-wrapper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-login__blog-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-login__blog-slide {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* HERO 主图区域 */
  .page-login__hero-section {
    padding-top: 10px;
    padding-bottom: 20px;
  }
  .page-login__hero-content {
    margin-top: -40px;
    padding: 30px 20px;
  }
  .page-login__main-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 15px;
  }
  .page-login__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  /* 長文金框區 */
  .page-login__home-content {
    height: auto !important;
    overflow-y: visible !important;
    padding: 15px;
    margin: 20px auto;
  }
  .page-login__home-content h2 {
    font-size: 22px;
  }
  /* 遊戲輪播 */
  .page-login__slider-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  .page-login__slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .page-login__game-slide {
    flex: 0 0 160px !important;
    max-width: 160px !important;
  }
  /* 合作夥伴六宮格 */
  .page-login__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px;
    margin: 20px auto;
  }
  .page-login__banner-item img {
    max-width: 100% !important;
    height: auto !important;
  }
  /* 部落格卡片區 */
  .page-login__blog-masonry {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
  .page-login__blog-card-link {
    flex-direction: column;
  }
  .page-login__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .page-login__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
  }
  /* Section titles and text blocks */
  .page-login__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  .page-login__text-block {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  /* Card layout */
  .page-login__benefits-grid,
  .page-login__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__card-image {
    height: 180px;
  }
  .page-login__card-title {
    font-size: 1.3rem;
  }
  .page-login__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 0 20px 15px;
  }
  /* Buttons and button containers */
  .page-login__form-actions,
  .page-login__button-group {
    flex-direction: column !important;
    gap: 10px;
  }
  .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;
    flex-direction: column !important;
  }
}