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

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

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

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  height: 700px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 0; /* Assumed shared.css handles body padding for header offset */
}

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

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-login__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

.page-login__main-heading {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #26A9E0;
  font-weight: bold;
}

.page-login__intro-text {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent white background for form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 0 auto;
  text-align: left;
  color: #333333; /* Dark text for light form background */
}

.page-login__form-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: #26A9E0;
  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__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;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.page-login__button {
  display: block;
  width: 100%;
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.page-login__button--primary {
  background-color: #EA7C07; /* Custom color for login button */
  color: #ffffff;
}

.page-login__button--primary:hover {
  background-color: #d16b05;
}

.page-login__link {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__link:hover {
  color: #1a7bb5;
  text-decoration: underline;
}

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.1); /* Light transparent card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

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

.page-login__benefit-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Security Section */
.page-login__security-section {
  padding: 60px 0;
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-login__security-image {
  flex: 1;
  min-width: 400px;
  border-radius: 10px;
  object-fit: cover;
}

.page-login__security-list {
  flex: 1;
  min-width: 300px;
  list-style: none;
  padding: 0;
  color: #ffffff;
}

.page-login__security-list-item {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-left: 5px solid #26A9E0;
  border-radius: 5px;
  font-size: 1.1em;
}

/* Game Showcase Section */
.page-login__game-showcase-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-login__game-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

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

.page-login__game-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-login__game-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-login__game-text {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-login__button--secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  display: inline-block;
  margin-top: auto; /* Push button to bottom */
  margin-bottom: 20px;
  width: auto;
  max-width: fit-content;
}

.page-login__button--secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Guide Section */
.page-login__guide-section {
  padding: 60px 0;
}

.page-login__guide-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap-reverse;
}

.page-login__guide-steps {
  flex: 1;
  min-width: 400px;
}

.page-login__guide-step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-login__guide-step-number {
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-right: 20px;
  flex-shrink: 0;
}

.page-login__guide-step-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 5px;
}

.page-login__guide-step-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__guide-image {
  flex: 1;
  min-width: 400px;
  border-radius: 10px;
  object-fit: cover;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-login__troubleshooting-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-login__troubleshooting-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

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

.page-login__troubleshooting-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-login__troubleshooting-contact {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #f0f0f0;
}

/* Responsible Gambling Section */
.page-login__responsible-gambling-section {
  padding: 60px 0;
}

.page-login__responsible-gambling-content {
  text-align: center;
}

.page-login__responsible-gambling-text {
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  color: #f0f0f0;
}

/* Why Choose Section */
.page-login__why-choose-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-login__why-choose-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  color: #ffffff;
}

.page-login__why-choose-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  border-left: 5px solid #26A9E0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  font-size: 1.1em;
}

.page-login__why-choose-item strong {
  color: #26A9E0;
}

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

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

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

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

.page-login__faq-question-title {
  margin: 0;
  font-size: 1.2em;
  color: #26A9E0;
}

.page-login__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-login__faq-answer p {
  margin-top: 15px;
  margin-bottom: 15px;
  line-height: 1.5;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-section {
    height: 600px;
  }

  .page-login__main-heading {
    font-size: 3em;
  }

  .page-login__intro-text {
    font-size: 1.2em;
  }

  .page-login__section-title {
    font-size: 2em;
  }

  .page-login__benefits-grid,
  .page-login__games-grid,
  .page-login__troubleshooting-list,
  .page-login__why-choose-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-login__security-content,
  .page-login__guide-content {
    flex-direction: column;
  }

  .page-login__security-image,
  .page-login__guide-image {
    min-width: unset;
    width: 100%;
    max-width: 600px;
  }

  .page-login__security-list,
  .page-login__guide-steps {
    min-width: unset;
    width: 100%;
  }
}

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

  .page-login__container {
    padding: 20px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-login__hero-section {
    height: auto;
    min-height: 500px;
    padding: 60px 0 30px 0; /* Adjust padding for mobile, header offset handled by shared.css */
  }

  .page-login__main-heading {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-login__login-form-wrapper {
    padding: 25px;
    max-width: 100%;
    width: 100%;
  }

  .page-login__form-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

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

  .page-login__input {
    padding: 10px;
  }

  .page-login__button--primary {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__form-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .page-login__register-prompt {
    font-size: 0.9em;
    margin-top: 20px;
  }

  /* LOGO 轮播区域 (Not present in this page, but must be included if it were) */
  /* .page-login__logo-carousel-section { ... } */
  /* .page-login__logo-carousel { ... } */
  /* .page-login__logo-item { width: 80px !important; height: 80px !important; max-width: 80px !important; box-sizing: border-box; } */

  /* 游戏展示区域 */
  .page-login__game-showcase-section {
    padding: 40px 0;
  }

  .page-login__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__game-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__game-title {
    font-size: 1.2em;
  }

  .page-login__game-text {
    font-size: 0.9em;
  }

  .page-login__button--secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 15px;
  }

  /* 通用图片与容器 */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-login__security-image,
  .page-login__guide-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* 按钮与按钮容器 */
  .page-login__button,
  .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: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* 其他内容模块 (e.g., benefits, security, guide, troubleshooting, why choose, faq) */
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__guide-section,
  .page-login__troubleshooting-section,
  .page-login__responsible-gambling-section,
  .page-login__why-choose-section,
  .page-login__faq-section {
    padding: 40px 0;
  }

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

  .page-login__benefits-grid,
  .page-login__troubleshooting-list,
  .page-login__why-choose-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__benefit-item,
  .page-login__security-list-item,
  .page-login__troubleshooting-item,
  .page-login__why-choose-item,
  .page-login__faq-item {
    padding: 20px;
  }

  .page-login__benefit-title,
  .page-login__troubleshooting-title,
  .page-login__guide-step-title,
  .page-login__faq-question-title {
    font-size: 1.1em;
  }

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

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

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