/* General styles for page-register scope */
.page-register {
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main */
  background: #F4F7FB; /* Background */
  line-height: 1.6;
}

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

.page-register__section-title {
  font-size: 32px;
  color: #000000; /* Custom Color_1776249996415 */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-register__main-title {
  font-size: clamp(28px, 4vw, 48px); /* H1 clamp for responsiveness */
  color: #000000; /* Custom Color_1776249996415 */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-register__main-description {
  font-size: 18px;
  color: #1F2D3D;
  margin-bottom: 30px;
  max-width: 700px;
  line-height: 1.5;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Important for mobile */
  box-sizing: border-box; /* Important for mobile */
  white-space: normal; /* Important for mobile */
  word-wrap: break-word; /* Important for mobile */
}

.page-register__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #ffffff;
  border: none;
}

.page-register__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-register__btn-secondary {
  background: #FFFFFF; /* Card BG */
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF;
}

.page-register__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

/* Images responsive base */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Section */
.page-register__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #F4F7FB;
}

.page-register__hero-content-wrapper {
  display: flex;
  flex-direction: column; /* Default column for mobile-first, will be row on desktop */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  gap: 30px;
}

.page-register__hero-image-container {
  width: 100%;
  max-width: 800px; /* Adjust as needed */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.page-register__hero-text-container {
  text-align: center;
  max-width: 800px;
}

/* Form Section */
.page-register__form-section {
  padding: 60px 0;
  background-color: #ffffff; /* Card BG */
}

.page-register__form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.page-register__form-image-container {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.page-register__registration-form {
  background: #F4F7FB; /* Background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 500px;
}

.page-register__form-group {
  margin-bottom: 20px;
}

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  font-size: 15px;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 6px;
  font-size: 16px;
  color: #1F2D3D;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: #6FA3FF; /* Auxiliary color */
}

.page-register__verification-input-group {
  display: flex;
  gap: 10px;
}

.page-register__verification-code-input {
  flex: 1;
}

.page-register__get-code-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 6px;
}

.page-register__form-terms {
  display: flex;
  align-items: center;
  margin-top: 25px;
  margin-bottom: 30px;
  font-size: 14px;
}

.page-register__form-terms input[type="checkbox"] {
  margin-right: 10px;
  min-width: 16px;
  min-height: 16px;
}

.page-register__form-terms a {
  color: #2F6BFF; /* Main color */
  text-decoration: underline;
}

.page-register__submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 18px;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: #1F2D3D;
}

.page-register__login-prompt a {
  color: #2F6BFF; /* Main color */
  font-weight: 600;
  text-decoration: none;
}
.page-register__login-prompt a:hover {
  text-decoration: underline;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

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

.page-register__benefit-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  color: #1F2D3D;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
}

.page-register__benefit-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin: 0 auto 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__benefit-title {
  font-size: 20px;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 10px;
  font-weight: 700;
}

.page-register__benefit-description {
  font-size: 15px;
  color: #1F2D3D;
}

.page-register__view-promos-btn {
  margin-top: 20px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Security Section */
.page-register__security-section {
  padding: 60px 0;
  text-align: center;
  background: #2F6BFF; /* Main color */
  color: #ffffff; /* Forced white text for dark background */
}

.page-register__security-section .page-register__section-title {
  color: #ffffff;
}

.page-register__security-description {
  font-size: 17px;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.page-register__security-guide-btn {
  background: #ffffff;
  color: #2F6BFF;
  border: none;
}

.page-register__security-guide-btn:hover {
  background: #f0f0f0;
  color: #2F6BFF;
}

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

.page-register__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #F4F7FB; /* Background */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #000000; /* Custom Color_1776249996415 */
}
details.page-register__faq-item summary.page-register__faq-question::-webkit-details-marker {
  display: none;
}
details.page-register__faq-item summary.page-register__faq-question:hover {
  background: #e9eff8; /* Lighter shade of background */
}
.page-register__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-register__faq-toggle {
  font-size: 26px;
  font-weight: bold;
  color: #2F6BFF; /* Main color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-register__faq-item .page-register__faq-answer {
  padding: 0 25px 20px;
  background: #FFFFFF; /* Card BG */
  border-radius: 0 0 8px 8px;
  color: #1F2D3D;
  font-size: 15px;
}
.page-register__faq-answer p {
  margin-bottom: 0;
}

.page-register__support-btn {
  margin-top: 40px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__cta-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #1F2D3D;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Important for mobile */
  max-width: 100%; /* Important for mobile */
  box-sizing: border-box; /* Important for mobile */
}

/* --- Mobile / Tablet Responsive (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-register__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-register__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-register__main-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* Images Mobile */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__hero-image-container,
  .page-register__form-image-container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  /* Buttons Mobile */
  .page-register__btn-primary,
  .page-register__btn-secondary {
    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-register__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hero Section Mobile */
  .page-register__hero-section {
    padding-bottom: 40px;
  }
  .page-register__hero-content-wrapper {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }

  /* Form Section Mobile */
  .page-register__form-section {
    padding: 40px 0;
  }
  .page-register__form-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-register__registration-form {
    padding: 25px;
  }
  .page-register__get-code-btn {
    padding: 10px 15px;
    font-size: 13px;
  }
  .page-register__form-terms {
    font-size: 13px;
  }
  .page-register__login-prompt {
    font-size: 15px;
  }

  /* Benefits Section Mobile */
  .page-register__benefits-section {
    padding: 40px 0;
  }
  .page-register__benefits-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-register__benefit-card {
    padding: 25px;
  }
  .page-register__benefit-title {
    font-size: 18px;
  }
  .page-register__benefit-description {
    font-size: 14px;
  }

  /* Security Section Mobile */
  .page-register__security-section {
    padding: 40px 0;
  }
  .page-register__security-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* FAQ Section Mobile */
  .page-register__faq-section {
    padding: 40px 0;
  }
  details.page-register__faq-item summary.page-register__faq-question {
    padding: 15px 20px;
  }
  .page-register__faq-qtext {
    font-size: 15px;
  }
  .page-register__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-register__faq-item .page-register__faq-answer {
    padding: 0 20px 15px;
    font-size: 14px;
  }

  /* CTA Section Mobile */
  .page-register__cta-section {
    padding: 40px 0;
  }
  .page-register__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
}

/* --- Desktop Responsive (min-width: 1024px) --- */
@media (min-width: 1024px) {
  .page-register__hero-content-wrapper {
    flex-direction: row;
    text-align: left;
  }
  .page-register__hero-image-container {
    order: 2; /* Image on right */
  }
  .page-register__hero-text-container {
    order: 1; /* Text on left */
    text-align: left;
    max-width: 50%;
  }
  .page-register__main-title {
    margin-left: 0;
    margin-right: 0;
  }
  .page-register__main-description {
    margin-left: 0;
    margin-right: 0;
  }
  .page-register__cta-buttons {
    justify-content: flex-start;
  }

  .page-register__form-wrapper {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }
  .page-register__form-image-container {
    flex: 1;
    max-width: 45%;
  }
  .page-register__registration-form {
    flex: 1;
    max-width: 50%;
  }
}

/* --- HOMEPAGE SPECIFIC STYLES (REQUIRED BOILERPLATE, NOT FOR THIS PAGE'S ACTUAL LAYOUT) --- */
/* These media queries are REQUIRED by the prompt for the CSS output,
   even though they are for a homepage game trial layout which is not present on this register page. */
@media (max-width: 1023px) {
  .page-register__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-register__hero-brand,
  .page-register__hero-jackpot {
    display: none !important;
  }
  .page-register__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-register__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-register__game-trial-topbar,
  .page-register__game-trial-bottombar {
    display: none !important;
  }
  .page-register__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-register__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-register__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-register__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-register__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-register__hero-brand,
  .page-register__hero-jackpot,
  .page-register__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-register__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-register__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-register__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-register__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-register__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* --- Mobile @media (max-width: 768px) REQUIRED BOILERPLATE for homepage modules --- */
/* These rules are for homepage modules, but the prompt requires them to be present. */
/* This register page does not use these modules, so they are placeholders. */
@media (max-width: 768px) {
  /* 1. 首屏试玩: Already covered by 1023px block above */

  /* 2. 优惠 __promo-strip: Placeholder for homepage module */
  .page-register__promo-strip-track {
    grid-template-columns: repeat(4, 1fr); /* Example, assuming 4 cards fit */
    overflow-x: hidden;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-register__promo-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 14px;
  }
  .page-register__promo-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  .page-register__promo-card .page-register__btn-primary {
    width: 100%;
  }

  /* 3. 热门 __hot-games: Placeholder for homepage module */
  .page-register__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-register__hot-games-item {
    text-align: center;
  }
  .page-register__hot-games-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .page-register__hot-games-name,
  .page-register__hot-games-rtp,
  .page-register__hot-games-desc {
    display: none;
  }

  /* 4. 品牌 __brand-intro: Placeholder for homepage module */
  .page-register__brand-intro-section {
    padding: 30px 15px;
    text-align: center;
  }
  .page-register__brand-intro-content {
    font-size: 15px;
  }

  /* 5. 中奖条 __winner-ticker: Placeholder for homepage module */
  .page-register__winner-ticker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 8px 15px;
    z-index: 999;
    box-sizing: border-box;
  }
  body.page-register { /* Ensure body has bottom padding for ticker */
    padding-bottom: 40px;
  }
}

/* Placeholder for shared components' reward modal close button */
.page-register__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #c62828; /* Example color */
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
}
.page-register__reward-modal.hidden {
  display: none !important;
}
.page-register--reward-open {
  overflow: hidden; /* Prevent scrolling when modal is open */
}