.page-login {
  font-family: Arial, sans-serif;
  color: #333333; /* Default dark text for light body background */
  background-color: #f8f8f8;
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  overflow: hidden;
  background: linear-gradient(135deg, #FFD700, #8B0000);
}

.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: 2;
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-login__hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-login__main-heading {
  font-size: 3.5em;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.2;
  font-weight: bold;
}

.page-login__tagline {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-login__form-section {
  padding: 80px 20px;
  background-color: #ffffff;
  text-align: center;
}

.page-login__form-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #eee;
}

.page-login__form-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  color: #8B0000;
  font-weight: bold;
}

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

.page-login__form-label {
  display: block;
  font-size: 1em;
  margin-bottom: 8px;
  color: #555;
  font-weight: 600;
}

.page-login__form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #FFD700;
}

.page-login__checkbox-label {
  color: #666;
}

.page-login__forgot-password {
  color: #8B0000;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.page-login__submit-button {
  width: 100%;
  padding: 16px;
  background: #FFD700;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__submit-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-login__register-prompt {
  margin-top: 30px;
  font-size: 1em;
  color: #666;
}

.page-login__register-link {
  color: #8B0000;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-login__benefits-section {
  padding: 80px 20px;
  background-color: #f0f0f0;
  text-align: center;
}

.page-login__benefits-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-login__benefits-title {
  font-size: 2.5em;
  margin-bottom: 50px;
  color: #333333;
  font-weight: bold;
}

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

.page-login__benefit-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  text-align: center;
}

.page-login__benefit-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-login__benefit-heading {
  font-size: 1.5em;
  color: #8B0000;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-login__benefit-text {
  font-size: 1em;
  color: #555;
  line-height: 1.6;
}

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

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

.page-login__faq-main-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: #333333;
  font-weight: bold;
}

/* FAQ容器样式 */
.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 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 20px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px !important;
  opacity: 1;
  background: #fdfdfd;
  border-top: 1px solid #eee;
  border-radius: 0 0 8px 8px;
  color: #555;
  line-height: 1.6;
}

/* 问题样式 */
.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  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-item.active .page-login__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

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

/* 切换图标 */
.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #8B0000;
  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;
  border-radius: 50%;
  border: 1px solid #8B0000;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__main-heading {
    font-size: 3em;
  }
  .page-login__tagline {
    font-size: 1.2em;
  }
  .page-login__form-container {
    padding: 30px;
  }
  .page-login__benefits-title,
  .page-login__faq-main-title {
    font-size: 2.2em;
  }
}

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

  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-image img {
    border-radius: 8px;
  }

  .page-login__main-heading {
    font-size: 2.2em;
    margin-bottom: 10px;
  }

  .page-login__tagline {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-login__form-section {
    padding: 40px 15px;
  }

  .page-login__form-container {
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .page-login__form-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-login__form-input {
    padding: 12px;
    font-size: 0.95em;
  }

  .page-login__submit-button {
    padding: 14px;
    font-size: 1.1em;
    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__register-prompt {
    margin-top: 20px;
    font-size: 0.95em;
  }

  .page-login__benefits-section {
    padding: 40px 15px;
  }

  .page-login__benefits-title,
  .page-login__faq-main-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-login__benefit-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-login__benefit-item img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__faq-section {
    padding: 40px 15px;
  }

  .page-login__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-login__faq-question h3 {
    font-size: 1em;
    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;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}