:root {
  --primary-color: #FFD700;
  --secondary-color: #2C3E50;
  --accent-color: #E74C3C; /* Bright red for emphasis */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #2c3e50;
  --border-color: #e0e0e0;
}

.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-login__section-title {
  font-size: 32px;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Banner Section */
.page-login__hero-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--bg-dark);
  overflow: hidden;
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light);
}

.page-login__main-title {
  font-size: 44px;
  margin-bottom: 15px;
  color: var(--primary-color);
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__intro-text {
  font-size: 19px;
  max-width: 900px;
  margin: 0 auto;
  color: #f0f0f0;
}

/* Form Section */
.page-login__form-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}

.page-login__form {
  max-width: 500px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--secondary-color);
  font-size: 16px;
}

.page-login__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 15px;
}

.page-login__checkbox-container {
  display: block;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  user-select: none;
  color: var(--text-dark);
}

.page-login__checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.page-login__checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border-radius: 4px;
}

.page-login__checkbox-container:hover input ~ .page-login__checkmark {
  background-color: #ccc;
}

.page-login__checkbox-container input:checked ~ .page-login__checkmark {
  background-color: var(--primary-color);
}

.page-login__checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.page-login__checkbox-container input:checked ~ .page-login__checkmark:after {
  display: block;
}

.page-login__checkbox-container .page-login__checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.page-login__forgot-password {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-login__forgot-password:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-login__submit-button {
  width: 100%;
  padding: 15px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-login__submit-button a {
  color: var(--text-light);
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.page-login__submit-button:hover {
  background-color: #e0b000; /* Slightly darker gold */
  transform: translateY(-2px);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: var(--text-dark);
}

.page-login__register-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

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

/* Security Section */
.page-login__security-section {
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 80px 0;
}

.page-login__security-section .page-login__section-title {
  color: var(--primary-color);
}

.page-login__security-section .page-login__section-description {
  color: #cccccc;
}

.page-login__security-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

.page-login__feature-item {
  flex: 1 1 calc(33% - 40px);
  max-width: calc(33% - 40px);
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-login__feature-item:hover {
  transform: translateY(-5px);
}

.page-login__feature-item img {
  
  
  margin-bottom: 20px;
  filter: brightness(1.2); /* Slightly brighten for visibility on dark background, but no color change */
}

.page-login__feature-item h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-login__feature-item p {
  font-size: 16px;
  color: #f0f0f0;
}

.page-login__security-footer {
  text-align: center;
  margin-top: 50px;
  font-size: 15px;
  color: #cccccc;
}

.page-login__security-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-login__security-footer a:hover {
  text-decoration: underline;
}

/* Benefits Section */
.page-login__benefits-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}

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

.page-login__category-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-login__category-card h3 {
  font-size: 20px;
  color: var(--secondary-color);
  margin: 20px 20px 10px;
}

.page-login__category-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-login__category-card h3 a:hover {
  color: var(--primary-color);
}

.page-login__category-card p {
  font-size: 15px;
  color: #666666;
  padding: 0 20px 20px;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 80px 0;
}

.page-login__troubleshooting-section .page-login__section-title {
  color: var(--primary-color);
}

.page-login__troubleshooting-section .page-login__section-description {
  color: #cccccc;
}

.page-login__troubleshooting-list {
  max-width: 800px;
  margin: 50px auto 0;
  list-style: none;
  padding: 0;
}

.page-login__list-item {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 16px;
  color: #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-login__list-item strong {
  color: var(--primary-color);
}

.page-login__list-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-login__list-item a:hover {
  text-decoration: underline;
}

/* Responsible Gaming Section */
.page-login__responsible-gaming-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}

.page-login__responsible-gaming-section a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

.page-login__responsible-gaming-section a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}

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

/* FAQ容器样式 */
.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-login__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-login__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--secondary-color);
}

/* 切换图标 */
.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 38px;
  }
  .page-login__intro-text {
    font-size: 18px;
  }
  .page-login__section-title {
    font-size: 28px;
  }
  .page-login__feature-item {
    flex: 1 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__container {
    padding: 30px 15px;
  }
  .page-login__main-title {
    font-size: 30px;
  }
  .page-login__intro-text {
    font-size: 16px;
  }
  .page-login__section-title {
    font-size: 24px;
  }
  .page-login__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-login__hero-banner, .page-login__form-section, .page-login__security-section, .page-login__benefits-section, .page-login__troubleshooting-section, .page-login__responsible-gaming-section, .page-login__faq-section {
    padding: 40px 0;
  }
  .page-login__form {
    padding: 30px 20px;
  }
  .page-login__form-input {
    padding: 12px 15px;
    font-size: 15px;
  }
  .page-login__submit-button {
    padding: 12px 15px;
    font-size: 16px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__feature-item {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 25px;
  }
  .page-login__game-categories {
    grid-template-columns: 1fr;
  }
  .page-login__category-card img {
    
  }
  .page-login__category-card h3 {
    font-size: 18px;
  }
  .page-login__category-card p {
    font-size: 14px;
  }
  .page-login__list-item {
    padding: 15px;
    font-size: 15px;
  }
  .page-login__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-login__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-login__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-login__faq-answer {
    padding: 0 15px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px !important;
  }

  /* Image responsiveness for mobile */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__section, .page-login__card, .page-login__container, .page-login__hero-banner, .page-login__form-section, .page-login__security-section, .page-login__benefits-section, .page-login__troubleshooting-section, .page-login__responsible-gaming-section, .page-login__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__submit-button,
  .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__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}