.page-login {
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #FFFFFF);
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  color: #ffffff;
}

.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.6);
  z-index: 2;
}

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

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

.page-login__form-container {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: #333333;
  max-width: 450px;
  margin: 0 auto;
}

.page-login__form-title {
  font-size: 1.8em;
  margin-bottom: 25px;
  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__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__login-button {
  width: 100%;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  background-color: #EA7C07; /* Custom color for login */
  color: #ffffff;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: block;
  text-align: center;
  margin-top: 20px;
}

.page-login__login-button:hover {
  background-color: #d16b05;
}

.page-login__form-links {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 0.95em;
}

.page-login__forgot-password,
.page-login__register-link {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover,
.page-login__register-link:hover {
  color: #1a7fb8;
  text-decoration: underline;
}

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

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

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

.page-login__dark-bg .page-login__section-description,
.page-login__dark-bg .page-login__section-title {
  color: #ffffff;
}

.page-login__dark-bg .page-login__paragraph {
  color: #f0f0f0;
}

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

.page-login__dark-bg .page-login__sub-title {
  color: #ffffff;
}

.page-login__paragraph {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333333;
}

.page-login__card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  height: 100%;
  box-sizing: border-box;
}

.page-login__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-login__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-login__btn-primary:hover {
  background-color: #1a7fb8;
  border-color: #1a7fb8;
}

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

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

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

.page-login__benefit-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-login__benefit-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #555555;
}

/* App Download Section */
.page-login__app-download-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff;
}

.page-login__app-download-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.page-login__app-content {
  flex: 1;
}

.page-login__app-content .page-login__section-title,
.page-login__app-content .page-login__section-description {
  text-align: left;
  color: #ffffff;
}

.page-login__app-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-login__app-features li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-login__feature-icon {
  width: 48px;
  height: 48px;
  margin-right: 15px;
  object-fit: contain;
  min-width: 48px; /* Ensure icon is not too small */
  min-height: 48px;
}

.page-login__app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-login__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

.page-login__download-button {
  background-color: #EA7C07; /* Custom color for download button */
  border-color: #EA7C07;
  margin-top: 30px;
}

.page-login__download-button:hover {
  background-color: #d16b05;
  border-color: #d16b05;
}

/* Game Showcase Section */
.page-login__game-showcase-section {
  padding: 60px 0;
}

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

.page-login__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

.page-login__game-title a {
  color: inherit;
  text-decoration: none;
}

.page-login__game-title a:hover {
  text-decoration: underline;
}

.page-login__game-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #555555;
  margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-login__responsible-gaming-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-login__responsible-gaming-content {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-login__responsible-gaming-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-login__responsible-gaming-text {
  flex: 1;
}

.page-login__responsible-gaming-text a {
  color: #ffffff;
  text-decoration: underline;
}

.page-login__responsible-gaming-text a:hover {
  color: #f0f0f0;
}

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

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

.page-login__faq-item {
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
}

.page-login__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #26A9E0;
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
  list-style: none;
  user-select: none;
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-login__faq-item[open] summary {
  background-color: #eaf7fc;
  border-bottom: 1px solid #cceeff;
}

.page-login__faq-qtext {
  flex-grow: 1;
  color: #333333;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

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

.page-login__faq-answer p {
  margin-bottom: 0;
}

.page-login__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* CTA Bottom Section */
.page-login__cta-bottom-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }

  .page-login__hero-description {
    font-size: 1.1em;
  }

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

  .page-login__app-download-container,
  .page-login__responsible-gaming-content {
    flex-direction: column;
    text-align: center;
  }

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

  .page-login__app-features {
    text-align: left;
    display: inline-block;
  }

  .page-login__responsible-gaming-image {
    max-width: 80%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 60vh;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-login__hero-description {
    font-size: 1em;
  }

  .page-login__form-container {
    padding: 30px 20px;
  }

  .page-login__form-title {
    font-size: 1.5em;
  }

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

  .page-login__section-description {
    font-size: 0.95em;
  }

  .page-login__benefits-grid,
  .page-login__game-grid {
    grid-template-columns: 1fr;
  }

  .page-login__app-download-container,
  .page-login__responsible-gaming-content {
    gap: 30px;
  }

  .page-login__app-image,
  .page-login__responsible-gaming-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__app-image-wrapper,
  .page-login__responsible-gaming-image {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-login__feature-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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__app-download-section .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__responsible-gaming-section .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

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

/* Ensure all content area images are at least 200x200px */
.page-login__hero-image,
.page-login__benefit-icon,
.page-login__app-image,
.page-login__game-image,
.page-login__responsible-gaming-image {
  min-width: 200px;
  min-height: 200px;
}

/* Specific override for small icons which are explicitly allowed only if they are for 'icon' type, but general rule is NO small icons */
/* The feature_icon in app download section is small, but the requirement specifically says '禁止所有小图标', and '任何宽度或高度小于200像素的图片' */
/* This is a conflict. I will make the icon bigger as per the general rule. */
.page-login__feature-icon {
  width: 200px; /* Adjusted to meet minimum size requirement */
  height: 200px; /* Adjusted to meet minimum size requirement */
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images */
.page-login img {
  filter: none;
}