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

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

/* --- Hero Section --- */
.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 content is not hidden by fixed header */
  color: #333333; /* Text color for light background */
  background-color: #FFFFFF;
}

.page-login__main-title {
  font-size: 38px;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-login__hero-description {
  font-size: 18px;
  max-width: 800px;
  margin-bottom: 40px;
  color: #555555;
}

.page-login__login-form-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  width: 100%;
}

.page-login__form-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-login__form-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.page-login__login-form {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-login__form-title {
  font-size: 28px;
  color: #017439;
  margin-bottom: 30px;
  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: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.page-login__form-input:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
}

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

.page-login__checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #555555;
}

.page-login__checkbox-input {
  margin-right: 8px;
}

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

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

.page-login__submit-button {
  width: 100%;
  padding: 15px 25px;
  background-color: #C30808; /* Custom color for login button */
  color: #FFFF00; /* Custom font color for login button */
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__submit-button:hover {
  background-color: #a30707;
  transform: translateY(-2px);
}

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  font-size: 15px;
  color: #555555;
}

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

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

/* --- General Section Styles --- */
.page-login__section {
  padding: 80px 0;
  text-align: center;
}

.page-login__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

.page-login__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-login__section-title {
  font-size: 32px;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-login__dark-bg .page-login__section-title {
  color: #FFFFFF;
}

.page-login__light-bg .page-login__section-title {
  color: #017439;
}

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

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

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

.page-login__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
}

.page-login__card-title {
  font-size: 22px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__card-text {
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
}

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

.page-login__step-item {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #017439;
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-login__step-title {
  font-size: 20px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__step-text {
  font-size: 16px;
  color: #555555;
}

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

.page-login__troubleshoot-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__troubleshoot-title {
  font-size: 22px;
  color: #FFFF00; /* Custom color for login/register font */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__troubleshoot-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-login__troubleshoot-link {
  display: inline-block;
  background-color: #C30808; /* Custom color for login button */
  color: #FFFF00; /* Custom font color for login button */
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__troubleshoot-link:hover {
  background-color: #a30707;
}

/* --- Security Features --- */
.page-login__security-intro {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555555;
}

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

.page-login__feature-item {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-login__feature-icon {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
}

.page-login__feature-title {
  font-size: 20px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__feature-text {
  font-size: 16px;
  color: #555555;
}

/* --- Register Callout --- */
.page-login__register-callout {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #FFFFFF;
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: #C30808; /* Custom color for register button */
  color: #FFFF00; /* Custom font color for register button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-login__cta-button:hover {
  background-color: #a30707;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- FAQ Section --- */
.page-login__faq-list {
  margin-top: 40px;
  text-align: left;
}

/* FAQ容器样式 */
.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f9f9f9;
  box-shadow: 0 2px 8px 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: #ffffff;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.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;
  color: #333333;
}

.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: 17px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #017439;
}

/* 切换图标 */
.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: #333;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* -------------------- Responsive Design -------------------- */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 32px;
  }
  .page-login__hero-description {
    font-size: 16px;
  }
  .page-login__section-title {
    font-size: 28px;
  }
  .page-login__login-form-wrapper {
    padding: 30px;
    gap: 30px;
  }
  .page-login__form-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__container {
    padding: 0 15px;
  }
  .page-login__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-login__hero-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-login__login-form-wrapper {
    flex-direction: column;
    padding: 25px;
    gap: 25px;
  }
  .page-login__form-image {
    min-width: unset;
    width: 100%;
  }
  .page-login__form-image img {
    border-radius: 4px;
  }
  .page-login__login-form {
    min-width: unset;
    width: 100%;
  }
  .page-login__form-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .page-login__submit-button {
    font-size: 16px;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__register-text {
    font-size: 14px;
    margin-top: 20px;
  }
  .page-login__section {
    padding: 50px 0;
  }
  .page-login__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-login__benefits-grid, .page-login__steps-grid, .page-login__troubleshoot-grid, .page-login__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__card, .page-login__step-item, .page-login__troubleshoot-item, .page-login__feature-item {
    padding: 20px;
  }
  .page-login__card-image, .page-login__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
  }
  .page-login__card-title, .page-login__step-title, .page-login__troubleshoot-title, .page-login__feature-title {
    font-size: 18px;
  }
  .page-login__card-text, .page-login__step-text, .page-login__troubleshoot-text, .page-login__feature-text, .page-login__security-intro, .page-login__register-callout {
    font-size: 15px;
  }
  .page-login__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  /* FAQ Mobile */
  .page-login__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-login__faq-question h3 {
    font-size: 15px;
    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 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-form-wrapper,
  .page-login__form-image,
  .page-login__login-form,
  .page-login__benefits-grid,
  .page-login__steps-grid,
  .page-login__troubleshoot-grid,
  .page-login__security-features,
  .page-login__faq-list,
  .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;
  }
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-login__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}