/* style/login.css */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Body background from shared.css */
}

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

.page-login__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-login__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #f8f8f8;
}

.page-login__hero-section .page-login__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-login__hero-content {
  flex: 1;
  min-width: 300px;
}

.page-login__hero-title {
  font-size: 3em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-login__login-form {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 400px;
}

.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 #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-login__register-prompt {
  text-align: center;
  margin-top: 20px;
  color: #555555;
}

.page-login__register-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-login__register-link:hover {
  text-decoration: underline;
}

.page-login__hero-image-wrapper {
  flex: 1;
  min-width: 400px;
  text-align: center;
}

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 20px;
  background-color: #26A9E0;
  color: #ffffff; /* Dark background配浅色文字 */
}

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

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__benefit-icon {
  width: 100%; /* Ensure large image, not icon */
  height: auto;
  max-width: 250px; /* Example max-width, ensure > 200px */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-login__benefit-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__benefit-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Games Section */
.page-login__games-section {
  padding: 80px 20px;
  background-color: #ffffff;
}

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

.page-login__game-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__game-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-login__game-title {
  font-size: 1.4em;
  padding: 15px 20px 5px;
  color: #26A9E0;
}

.page-login__game-description {
  font-size: 0.95em;
  padding: 0 20px 20px;
  color: #555555;
}

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

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

.page-login__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #ffffff;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: #f0f0f0;
}

.page-login__faq-title {
  font-size: 1.1em;
  margin: 0;
  color: #333333;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #fdfdfd;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 20px;
  background-color: #26A9E0;
  text-align: center;
  color: #ffffff; /* Dark background配浅色文字 */
}

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

.page-login__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  box-sizing: border-box;
}

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

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

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

.page-login__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a7ea5;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 2.5em;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section .page-login__container {
    flex-direction: column;
    text-align: center;
  }
  .page-login__hero-content {
    order: 2;
  }
  .page-login__hero-image-wrapper {
    order: 1;
    min-width: unset;
    margin-bottom: 30px;
  }
  .page-login__login-form {
    max-width: 100%;
  }
  .page-login__hero-title {
    font-size: 2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__benefits-grid, .page-login__games-grid {
    grid-template-columns: 1fr;
  }
  .page-login__benefits-section, .page-login__games-section, .page-login__faq-section, .page-login__cta-section {
    padding: 50px 15px;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary, .page-login__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  /* Mobile image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__games-section,
  .page-login__faq-section,
  .page-login__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__login-form {
    padding: 20px;
  }
  .page-login__faq-question {
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px 20px;
  }
}