/* style/login.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Page Styling */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.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: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #000000; /* Black text for contrast */
  border: 2px solid #FFD700;
}

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

.page-login__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-login__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.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;
  box-sizing: border-box;
}

.page-login__main-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-login__login-card {
  background: rgba(0, 0, 0, 0.85); /* Slightly transparent dark background */
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  margin: 40px auto 0;
  border: 1px solid #8B0000; /* Dark red border */
}

.page-login__card-title {
  font-size: 2em;
  color: #FFD700; /* Gold */
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #8B0000; /* Dark red border */
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #cccccc;
}

.page-login__form-input:focus {
  outline: none;
  border-color: #FFD700; /* Gold focus */
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.page-login__login-form .page-login__btn-primary,
.page-login__login-form .page-login__btn-secondary {
  width: 100%;
}

.page-login__forgot-password {
  display: block;
  margin-top: 20px;
  color: #FFD700; /* Gold */
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

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

/* Benefits Section */
.page-login__benefits-section {
  background-color: #0d0d0d; /* Darker background for this section */
  padding: 80px 0;
  color: #ffffff;
}

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.08); /* Light transparent background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(139, 0, 0, 0.5); /* Semi-transparent dark red border */
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-login__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  display: block; /* Ensure block display for proper sizing */
  margin-left: auto;
  margin-right: auto;
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: #FFD700; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Troubleshooting/FAQ Section */
.page-login__troubleshooting-section {
  background-color: #1a1a1a; /* Dark gray background */
  padding: 80px 0;
  color: #ffffff;
}

.page-login__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.05); /* Very light transparent background */
  border: 1px solid rgba(139, 0, 0, 0.4); /* Dark red border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(139, 0, 0, 0.3); /* Dark red subtle background */
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(139, 0, 0, 0.5);
}

.page-login__faq-title {
  font-size: 1.2em;
  color: #FFD700; /* Gold */
  margin: 0;
  font-weight: bold;
}

.page-login__faq-toggle {
  font-size: 1.8em;
  color: #FFD700; /* Gold */
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Rotate to form an 'X' or '-' */
}

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

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

.page-login__faq-answer p {
  margin: 0;
  font-size: 1em;
}

.page-login__cta-support {
  text-align: center;
  margin-top: 50px;
}

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

/* App Download Section */
.page-login__app-download-section {
  background-color: #8B0000; /* Dark red background */
  padding: 80px 0;
  color: #ffffff;
}

.page-login__app-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.page-login__app-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-login__app-text .page-login__section-title,
.page-login__app-text .page-login__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-login__app-image-wrapper {
  flex-shrink: 0;
  width: 100%;
  max-width: 400px; /* Limit image width */
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.page-login__app-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: contain;
}

/* Responsible Gaming Section */
.page-login__responsible-gaming-section {
  background-color: #1a1a1a; /* Dark gray background */
  padding: 80px 0;
  color: #ffffff;
}

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

.page-login__point-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(139, 0, 0, 0.5);
}

.page-login__point-title {
  font-size: 1.5em;
  color: #FFD700; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__point-text {
  color: #e0e0e0;
  font-size: 1em;
}

/* Final CTA Section */
.page-login__final-cta-section {
  background-color: #0d0d0d; /* Darker background */
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
}

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

  /* Fixed header offset for mobile */
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    height: auto;
    min-height: 70vh;
  }

  .page-login__main-title {
    font-size: 2.2em;
  }

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

  .page-login__login-card {
    padding: 30px 20px;
  }

  .page-login__card-title {
    font-size: 1.8em;
  }

  .page-login__form-input {
    padding: 10px 12px;
  }

  .page-login__form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .page-login__btn-primary,
  .page-login__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-login__cta-buttons,
  .page-login__form-actions {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    flex-direction: column; /* Stack buttons vertically */
  }

  .page-login__container {
    padding: 20px 15px; /* Adjust container padding for mobile */
  }

  .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__responsible-gaming-points {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-login__benefit-item,
  .page-login__point-item {
    padding: 25px;
  }

  .page-login__benefit-icon {
    max-width: 120px;
  }

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

  .page-login__faq-title {
    font-size: 1.1em;
  }

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

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

  .page-login__app-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__app-text {
    text-align: center;
  }

  .page-login__app-text .page-login__section-title,
  .page-login__app-text .page-login__section-description {
    text-align: center;
  }

  .page-login__app-image-wrapper {
    max-width: 300px;
  }
  
  /* Images responsive rule */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers for images, videos, buttons */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__app-image-wrapper,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .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;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__card-title {
    font-size: 1.5em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__login-card {
    padding: 25px 15px;
  }
}