/* style/login.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-login {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Enforce image above text */
  align-items: center;
  padding-bottom: 60px; /* Space below form */
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #08160F; /* Ensure background for the section */
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height of the image wrapper */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensure image covers the area */
  display: block;
}

.page-login__hero-content-wrapper {
    width: 100%;
    position: relative; /* Relative to hero section */
    z-index: 10;
    margin-top: -100px; /* Pull content up slightly over the image for visual flow, but not overlaying text on image */
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive H1 font size */
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__subtitle {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__form-card {
  background-color: #11271B; /* Card BG */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid #2E7A4E; /* Border */
}

.page-login__form-title {
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8em;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

.page-login__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(167, 217, 184, 0.6); /* Lighter Text Secondary */
}

.page-login__forgot-password {
  display: block;
  text-align: right;
  margin-top: -10px;
  margin-bottom: 25px;
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #F2C14E; /* Gold */
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.page-login__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(42, 209, 111, 0.4);
}

.page-login__register-text {
  text-align: center;
  margin-top: 30px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

.page-login__register-link {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #F2C14E; /* Gold */
}

/* General Sections */
.page-login__section-title {
  font-size: 2.2em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-login__dark-section {
  background-color: #0A4B2C; /* Deep Green */
  padding: 80px 20px;
}

/* Why Choose Us Section */
.page-login__why-choose-us {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-login__feature-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-login__feature-icon {
  width: 100%; /* Ensure large images */
  height: 200px; /* Min height */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-login__feature-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-login__feature-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
}

/* Game Showcase Section */
.page-login__game-showcase {
  padding: 80px 20px;
  background-color: #08160F; /* Background */
}

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

.page-login__game-card {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-login__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-login__game-image {
  width: 100%;
  height: 250px; /* Card image fixed height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-login__game-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-login__game-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 20px;
  background-color: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #57E38D; /* Glow */
  color: #11271B; /* Card BG for contrast */
}

/* Promotions CTA Section */
.page-login__promotions-cta {
  background-color: #0A4B2C; /* Deep Green */
  padding: 60px 20px;
  text-align: center;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 20px;
  background-color: #08160F; /* Background */
}

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

.page-login__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* 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;
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-login__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-login__faq-item[open] > .page-login__faq-question {
  background-color: #0A4B2C; /* Deep Green */
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #57E38D; /* Glow */
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or '-' */
}

.page-login__faq-answer {
  padding: 0 25px 20px 25px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
  line-height: 1.7;
}

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


/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-login__container {
    padding: 0 15px;
  }

  .page-login__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body handles header offset, small top padding */
  }

  .page-login__hero-content-wrapper {
      margin-top: -60px; /* Adjust for smaller screens */
  }

  .page-login__main-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 15px;
  }

  .page-login__subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

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

  .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__features-grid,
  .page-login__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__dark-section,
  .page-login__game-showcase,
  .page-login__faq-section {
    padding: 50px 15px;
  }

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

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

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__hero-content-wrapper,
  .page-login__why-choose-us,
  .page-login__game-showcase,
  .page-login__promotions-cta,
  .page-login__faq-section,
  .page-login__btn-container,
  .page-login__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* For multiple buttons in a row, make them stack */
  .page-login__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .page-login__game-card {
      padding: 20px;
  }
}