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

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

/* Hero Section */
.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #f5f5f5;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

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

.page-login__hero-content {
  padding: 30px 15px 50px;
  max-width: 800px;
}

.page-login__main-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-login__subtitle {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

.page-login__login-form-wrapper {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  margin: 0 auto;
}

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

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

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

.page-login__form-input:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
}

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

.page-login__btn-login {
  display: inline-block;
  padding: 12px 25px;
  background-color: #C30808; /* Login button color */
  color: #FFFFFF; /* High contrast text for login button */
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex-grow: 1;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-login__forgot-password-link:hover {
  color: #005a2e;
}

.page-login__register-cta {
  text-align: center;
  margin-top: 25px;
  border-top: 1px solid #eee;
  padding-top: 25px;
}

.page-login__register-cta p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 15px;
}

.page-login__btn-register {
  display: inline-block;
  padding: 12px 25px;
  background-color: #017439;
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Section Titles and Descriptions */
.page-login__section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  color: #017439;
}

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

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

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

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

.page-login__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__benefit-title {
  font-size: 22px;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-login__benefit-text {
  font-size: 16px;
  color: #666666;
}

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

.page-login__how-to-login .page-login__section-title,
.page-login__how-to-login .page-login__section-description {
  color: #ffffff;
}

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

.page-login__step-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #ffffff;
  color: #017439;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-login__step-title {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-login__step-text {
  font-size: 16px;
  color: #f0f0f0;
}

.page-login__process-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-login__feature-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-login__feature-text {
  font-size: 16px;
  color: #666666;
}

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

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

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

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

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}
details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}
details.page-login__faq-item summary.page-login__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #ffffff;
}
.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

/* CTA Section */
.page-login__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #f9f9f9;
}

.page-login__btn-cta {
  display: inline-block;
  padding: 15px 35px;
  background-color: #C30808; /* Register button color */
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 30px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-cta:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-login__cta-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-login__about-section .page-login__section-title,
.page-login__about-section .page-login__section-description {
  color: #ffffff;
}

.page-login__about-section p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: justify;
}

.page-login__about-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1000px;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Global Image and Button Responsive Styles */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-login a[class*="btn"],
.page-login a[class*="button"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__form-actions,
.page-login__button-group,
.page-login__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Homepage Specific CSS Blocks (as per instructions, must be included) --- */
/* This page is a login page, so these styles will not apply directly to its HTML content */
@media (max-width: 1023px) {
  .page-login__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-login__hero-brand,
  .page-login__hero-jackpot {
    display: none !important;
  }
  .page-login__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-login__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-login__game-trial-topbar,
  .page-login__game-trial-bottombar {
    display: none !important;
  }
  .page-login__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-login__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-login__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-login__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-login__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-login__hero-brand,
  .page-login__hero-jackpot,
  .page-login__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-login__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-login__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-login__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-login__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-login__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* Mobile Responsive (max-width: 768px) */
@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: 5px;
  }
  .page-login__main-title {
    font-size: 24px;
  }
  .page-login__subtitle {
    font-size: 16px;
  }
  .page-login__login-form-wrapper {
    padding: 20px;
    margin: 0 15px;
  }
  .page-login__form-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-login,
  .page-login__btn-register {
    font-size: 16px;
    padding: 10px 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__forgot-password-link {
    font-size: 13px;
  }

  .page-login__section-title {
    font-size: 22px;
    padding: 0 15px;
  }
  .page-login__section-description {
    font-size: 15px;
    padding: 0 15px;
  }

  .page-login__benefits-grid,
  .page-login__steps-grid,
  .page-login__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__benefit-card,
  .page-login__step-card,
  .page-login__feature-item {
    padding: 20px;
  }
  .page-login__benefit-title,
  .page-login__step-title,
  .page-login__feature-title {
    font-size: 20px;
  }
  .page-login__benefit-text,
  .page-login__step-text,
  .page-login__feature-text,
  .page-login__about-section p {
    font-size: 15px;
  }

  details.page-login__faq-item summary.page-login__faq-question { padding: 15px; }
  .page-login__faq-qtext { font-size: 15px; }
  details.page-login__faq-item .page-login__faq-answer { padding: 0 15px 15px; }

  .page-login__btn-cta {
    font-size: 18px;
    padding: 12px 25px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 20px auto 0;
  }

  /* General image and container responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons and button containers */
  .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;
  }
  .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;
  }
  .page-login__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* Placeholder for home page promo strip (if it were present) */
  .page-login__promo-strip-track {
    grid-template-columns: repeat(4,1fr);
    overflow-x:hidden;
  }
  /* Placeholder for home page hot games (if it were present) */
  .page-login__hot-games-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

/* Fixed Header Spacing (if shared.css doesn't handle body padding-top) */
/* If shared.css handles `body { padding-top: var(--header-offset); }`, this should NOT be used */
/* .page-login { padding-top: var(--header-offset, 122px); } */

/* Homepage specific styles (if any, as per instructions) */
.page-login__game-trial-overlay{z-index:5;pointer-events:auto;}.page-login__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}.page-login__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}.page-login__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}.page-login__reward-modal{position:fixed;inset:0;z-index:10000;}