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

.page-login__container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-login__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #f8f8f8;
  text-align: center;
}

.page-login__hero-image-wrap {
  margin-bottom: 30px;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__main-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-login__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-form-wrapper {
  background: #ffffff;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid #eee;
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
  border-color: #017439;
  outline: none;
}

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

.page-login__forgot-password {
  color: #017439;
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #005f2e;
  text-decoration: underline;
}

.page-login__btn {
  display: inline-block;
  padding: 14px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-login {
  background-color: #C30808; /* Custom login color */
  color: #ffffff; /* Ensure high contrast */
  border: 2px solid #C30808;
  margin-top: 15px;
}

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

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

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

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

.page-login__section-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3;
  color: #017439;
}

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

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

.page-login__dark-section .page-login__section-description {
  color: #e0e0e0;
}

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

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

.page-login__benefit-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.page-login__card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-login__benefit-card p {
  font-size: 0.95em;
  color: #e0e0e0;
}

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

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

.page-login__step-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.page-login__step-number {
  font-size: 1.8em;
  font-weight: 800;
  color: #017439;
  margin-bottom: 15px;
}

.page-login__step-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-login__step-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-login__troubleshooting {
  background: #fff3e0; /* Light orange background */
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #ffe0b2;
  max-width: 900px;
  margin: 0 auto;
}

.page-login__troubleshooting-title {
  font-size: 1.5em;
  color: #e65100; /* Darker orange */
  margin-bottom: 15px;
  text-align: center;
}

.page-login__troubleshooting ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-login__troubleshooting li {
  margin-bottom: 10px;
  color: #333333;
  font-size: 0.95em;
}

.page-login__troubleshooting li strong {
  color: #e65100;
}

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

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

.page-login__game-card {
  display: block;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-login__game-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-login__game-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-login__game-card p {
  font-size: 0.9em;
  color: #e0e0e0;
}

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

.page-login__btn-primary {
  background-color: #C30808; /* Custom register color */
  color: #ffffff;
  border: 2px solid #C30808;
}

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

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

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

.page-login__promotions-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-login__promo-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.page-login__promo-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-login__promo-card p {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

.page-login__btn-promo {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 1em;
  font-weight: 600;
}

.page-login__btn-promo:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

.page-login__trust-section {
  padding: 60px 0;
  background-color: #017439;
}

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

.page-login__trust-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__trust-icon {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-login__item-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-login__trust-item p {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-login__learn-more {
  color: #FFFF00; /* Custom font color for register/login */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-login__learn-more:hover {
  color: #fff;
  text-decoration: underline;
}

.page-login__cta-final {
  padding: 60px 0;
  background-color: #ffffff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

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

  /* 顶区标题 + 双 CTA */
  .page-login__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }

  .page-login__main-title {
    font-size: 2em;
    margin-bottom: 10px;
  }

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

  .page-login__login-form-wrapper {
    padding: 25px;
  }

  .page-login__btn-login, .page-login__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 {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 单栏长文容器 */
  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-login__benefits-grid,
  .page-login__steps-grid,
  .page-login__games-grid,
  .page-login__promo-cards,
  .page-login__trust-points {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  /* 通用图片与 figure */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-login__hero-image,
  .page-login__step-image,
  .page-login__game-image,
  .page-login__promo-image,
  .page-login__benefit-icon,
  .page-login__trust-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* 按钮与按钮容器 (already handled above, but ensure explicit override) */
  .page-login__btn,
  .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;
  }

  /* 注册教程与 FAQ 区块 (Troubleshooting section for this page) */
  .page-login__troubleshooting {
    padding: 20px;
  }

  .page-login__troubleshooting-title {
    font-size: 1.3em;
  }

  .page-login__troubleshooting li {
    font-size: 0.9em;
  }

  .page-login__card-title, .page-login__game-title, .page-login__item-title {
    font-size: 1.1em;
  }

  .page-login__benefit-card p, .page-login__game-card p, .page-login__promo-card p, .page-login__trust-item p {
    font-size: 0.9em;
  }
}