/* General styles for .page-login */
.page-login {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  background-color: #ffffff; /* Explicitly set for clarity, though body handles it */
  line-height: 1.6;
}

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

.page-login__container--flex {
  display: flex;
  align-items: center;
  gap: 30px;
}

.page-login__container--flex-reverse {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 30px;
}

.page-login__image-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure image wrapper has a minimum size */
}

.page-login__content-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure content wrapper has a minimum size */
}

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

.page-login__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-login__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-login__text-block {
  margin-bottom: 15px;
  font-size: 1.1em;
}

/* Hero Section */
.page-login__hero-section {
  padding-top: 10px; /* Small fixed padding, not var(--header-offset) */
  background: linear-gradient(135deg, #017439, #005f2e);
  color: #ffffff;
  padding-bottom: 50px;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Match width attribute for CLS */
  margin: 0 auto 30px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-login__hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.page-login__main-title {
  font-weight: bold;
  line-height: 1.1;
  color: #FFFF00; /* Custom color for login font */
  margin-bottom: 20px;
  font-size: clamp(2.2em, 4vw, 3.5em); /* Using clamp for H1 as per instructions */
}

.page-login__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Login Form */
.page-login__login-form-container {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 450px;
  margin: 0 auto;
  color: #333333;
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  background-color: #f9f9f9;
}

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  flex-wrap: wrap;
  gap: 10px;
}

.page-login__btn-login {
  background-color: #C30808; /* Custom login color */
  color: #FFFF00; /* Custom login font color */
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  flex-grow: 1;
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

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

.page-login__forgot-password-link {
  color: #017439;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

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

.page-login__register-prompt {
  margin-top: 20px;
  font-size: 0.95em;
  text-align: center;
}

.page-login__register-link {
  color: #C30808; /* Use register color */
  text-decoration: none;
  font-weight: bold;
}

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  background-color: #f8f8f8; /* Light background for contrast */
}

.page-login__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-login__benefits-item {
  background-color: #ffffff;
  border-left: 5px solid #017439;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 1.05em;
}

/* Security Info Section */
.page-login__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

.page-login__dark-section .page-login__section-title {
  color: #FFFF00; /* Light yellow for titles on dark background */
}

.page-login__dark-section .page-login__text-block {
  color: #f0f0f0;
}

.page-login__security-list,
.page-login__game-types-list,
.page-login__responsible-gaming-list,
.page-login__register-benefits {
  list-style: disc;
  margin-left: 20px;
  margin-top: 20px;
}

.page-login__security-item,
.page-login__game-type-item,
.page-login__responsible-gaming-item,
.page-login__register-benefit-item {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-login__security-item a {
  color: #FFFF00;
  text-decoration: underline;
}

/* How to Login Section */
.page-login__how-to-login-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-login__login-steps {
  list-style: decimal;
  margin-left: 20px;
  margin-top: 20px;
  font-size: 1.1em;
}

.page-login__step-item {
  margin-bottom: 10px;
}

.page-login__step-item a {
  color: #017439;
  text-decoration: none;
}

.page-login__step-item a:hover {
  text-decoration: underline;
}

.page-login__troubleshooting-list {
  list-style: disc;
  margin-left: 20px;
  margin-top: 15px;
}

.page-login__troubleshooting-item {
  margin-bottom: 8px;
}

/* Explore Games Section (uses dark-section styles) */
.page-login__explore-games-section .page-login__game-type-item a {
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
}

.page-login__explore-games-section .page-login__game-type-item a:hover {
  text-decoration: underline;
}

/* Support Section */
.page-login__support-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-login__recovery-steps {
  list-style: decimal;
  margin-left: 20px;
  margin-top: 15px;
}

.page-login__contact-options {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.page-login__contact-item {
  background-color: #ffffff;
  border-left: 4px solid #017439;
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

/* Register CTA Section (uses dark-section styles) */
.page-login__btn-register {
  background-color: #C30808; /* Custom register color */
  color: #FFFF00; /* Custom register font color */
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-top: 25px;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-login__btn-register:hover {
  background-color: #a30606;
}

/* Responsible Gaming Section */
.page-login__responsible-gaming-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-login__responsible-gaming-section a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-login__responsible-gaming-section a:hover {
  text-decoration: underline;
}

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

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

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

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.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); /* Change + to X or rotate for open state */
}

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

/* Universal image responsiveness */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-login__container {
    padding: 20px;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__sub-title {
    font-size: 1.6em;
  }
  .page-login__hero-content {
    padding: 0 20px;
  }
  .page-login__form-input {
    width: calc(100% - 20px);
  }
  .page-login__container--flex,
  .page-login__container--flex-reverse {
    flex-direction: column;
    gap: 20px;
  }
  .page-login__image-wrapper,
  .page-login__content-wrapper {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-login__hero-section {
    padding-top: 10px !important; /* Small fixed padding, not var(--header-offset) */
    padding-bottom: 30px;
  }
  .page-login__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-login__main-title {
    font-size: 2.5em; /* Specific mobile H1 size, still using clamp concept */
    margin-bottom: 15px;
  }
  .page-login__description {
    font-size: 1.05em;
    margin-bottom: 20px;
  }

  /* Login Form */
  .page-login__login-form-container {
    padding: 20px;
  }
  .page-login__form-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-login,
  .page-login__btn-secondary,
  .page-login__btn-register,
  .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__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px;
    padding-right: 0px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }

  /* Long text sections are not present in this login page structure. */
  /* Game carousel, partner grid, blog cards are not present in this login page structure. */

  /* 通用图片与容器 */
  .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,
  .page-login__image-wrapper,
  .page-login__content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Specific section paddings */
  .page-login__benefits-section,
  .page-login__security-info,
  .page-login__how-to-login-section,
  .page-login__explore-games-section,
  .page-login__support-section,
  .page-login__register-cta-section,
  .page-login__responsible-gaming-section,
  .page-login__faq-section {
    padding: 30px 0;
  }
  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-login__sub-title {
    font-size: 1.4em;
    margin-top: 20px;
  }
  .page-login__text-block,
  .page-login__benefits-item,
  .page-login__security-item,
  .page-login__game-type-item,
  .page-login__step-item,
  .page-login__troubleshooting-item,
  .page-login__contact-item,
  .page-login__responsible-gaming-item,
  .page-login__register-benefit-item,
  .page-login__faq-item summary,
  .page-login__faq-answer {
    font-size: 1em;
  }
}