.page-login {
  color: #ffffff; /* Dark body background #121212, so light text */
  background-color: #121212;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-login__section-title {
  font-size: 2.8em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-login__hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Adjust for header, assuming shared.css doesn't add body padding */
  box-sizing: border-box;
}

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

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-login__hero-title {
  font-size: 3.8em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-login__login-form-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 0 auto;
  color: #333333;
  text-align: left;
}

.page-login__form-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 30px;
  text-align: center;
}

.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 #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__btn-primary, .page-login__btn-secondary, .page-login a[class*="button"], .page-login a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background-color: #EA7C07; /* Custom color for login */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

.page-login__btn-secondary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

.page-login__forgot-password {
  color: #26A9E0;
  text-decoration: none;
  font-size: 0.95em;
  text-align: center;
}

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

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

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

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

.page-login__benefits-section, .page-login__troubleshooting-section, .page-login__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-login__benefit-card, .page-login__trouble-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-card:hover, .page-login__trouble-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-login__benefit-title, .page-login__trouble-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__benefit-text, .page-login__trouble-text {
  font-size: 1em;
  color: #e0e0e0;
}

.page-login__text-link {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-login__login-guide-section, .page-login__game-showcase-section, .page-login__cta-final-section {
  padding: 80px 0;
  background-color: #121212;
}

.page-login__dark-bg {
  background-color: #121212;
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-login__guide-layout {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-login__guide-steps {
  flex: 1;
}

.page-login__ordered-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-login__ordered-list li {
  margin-bottom: 30px;
  position: relative;
  padding-left: 60px;
}

.page-login__ordered-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #26A9E0;
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-login__step-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-login__guide-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-login__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__highlight-text {
  color: #EA7C07;
  font-weight: bold;
}

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

.page-login__game-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-login__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-login__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-login__game-title {
  font-size: 1.4em;
  color: #FFFFFF;
  padding: 20px;
  text-align: center;
  background-color: rgba(38, 169, 224, 0.8);
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-login__game-cta {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.08);
  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;
  background-color: rgba(38, 169, 224, 0.2);
  color: #FFFFFF;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.3);
}

.page-login__faq-question h3 {
  margin: 0;
  color: #FFFFFF;
  font-size: 1em;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 20px 25px;
}

.page-login__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: #1a1a1a;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 3em;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__login-form-container {
    max-width: 400px;
  }
  .page-login__section-title {
    font-size: 2.2em;
  }
  .page-login__guide-layout {
    flex-direction: column;
    gap: 30px;
  }
  .page-login__guide-steps, .page-login__guide-image-wrapper {
    width: 100%;
  }
  .page-login__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-login__hero-section {
    height: auto;
    min-height: 70vh;
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }
  .page-login__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-login__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__login-form-container {
    max-width: 90% !important;
    padding: 30px 20px;
  }

  /* 产品展示图区域 */
  .page-login__games-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* For 4 items: 2x2 */
    gap: 20px !important;
    overflow-x: hidden !important;
  }
  .page-login__games-grid a:nth-child(5), .page-login__games-grid a:nth-child(6) { /* For remaining 2 items, each on its own row */
    grid-column: span 2 !important;
  }

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

  /* 按钮与按钮容器 */
  .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__form-actions,
  .page-login__game-cta,
  .page-login__cta-final-section .page-login__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 其他内容模块 */
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-login__benefits-section, .page-login__troubleshooting-section, .page-login__faq-section, .page-login__login-guide-section, .page-login__game-showcase-section, .page-login__cta-final-section {
    padding: 40px 0;
  }
  .page-login__benefits-grid, .page-login__troubleshooting-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .page-login__guide-layout {
    gap: 20px;
  }
  .page-login__ordered-list li {
    padding-left: 50px;
    margin-bottom: 20px;
  }
  .page-login__ordered-list li::before {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
  }
  .page-login__step-title {
    font-size: 1.4em;
  }
  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-login__faq-question h3 {
    font-size: 0.95em;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px 20px 15px 20px;
  }
}