/* style/login.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */
.page-login {
  background-color: #08160F; /* Nền chung cho trang, theo custom color "Background" */
  color: #F2FFF6; /* Màu chữ chính, theo custom color "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;
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Đảm bảo chiều cao tối thiểu */
  overflow: hidden;
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  text-align: center;
  color: #F2FFF6; /* Màu chữ chính trên nền hero */
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text readability */
  border-radius: 10px;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #A7D9B8; /* Secondary text color */
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box; /* Ensure padding is included in width */
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
  color: #F2FFF6; /* Text Main */
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(17, 168, 78, 0.4);
}

.page-login__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Button color for secondary */
  border: 2px solid #2AD16F; /* Deep Green border */
}

.page-login__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(42, 209, 111, 0.2);
}

.page-login__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Gold color for section titles */
}

.page-login__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #A7D9B8; /* Secondary text color */
  text-align: center;
}

/* Login Guide Section */
.page-login__login-guide-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-login__step-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #F2FFF6;
}

.page-login__step-title {
  color: #F2C14E; /* Gold */
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-login__step-list,
.page-login__troubleshoot-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-login__step-list li,
.page-login__troubleshoot-list li {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
}

.page-login__step-highlight,
.page-login__troubleshoot-highlight {
  color: #2AD16F; /* Button primary color for highlights */
}

.page-login__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

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

.page-login__benefit-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-login__benefit-title {
  font-size: 1.4rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__benefit-description {
  font-size: 0.95rem;
  color: #A7D9B8; /* Secondary text color */
}

/* Register Section */
.page-login__register-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-login__register-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-login__register-text {
  flex: 1;
  min-width: 300px;
}

.page-login__register-subtitle {
  font-size: 1.5rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__btn-register {
  margin-top: 20px;
}

.page-login__register-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px; /* Limit image width */
  display: block;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-login__faq-list {
  margin-top: 40px;
}

.page-login__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #1E3A2A; /* Divider color for question background */
  border-bottom: 1px solid #2E7A4E; /* Border */
}

.page-login__faq-question:hover {
  background-color: #2E7A4E; /* Border color on hover */
}

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom: 1px solid transparent; /* Remove border when open */
}

.page-login__faq-qtext {
  flex-grow: 1;
  color: #F2C14E; /* Gold for question text */
}

.page-login__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F; /* Button primary color */
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
  line-height: 1.7;
}

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

/* Conclusion Section */
.page-login__conclusion-section {
  padding: 60px 0;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
}

.page-login__cta-buttons--bottom {
  margin-top: 40px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-login__hero-content {
    padding: 30px;
  }
  .page-login__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-login__description {
    font-size: 1rem;
  }
  .page-login__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 450px;
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }

  .page-login__hero-content {
    padding: 20px;
    margin: 0 15px;
  }

  .page-login__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-login__description {
    font-size: 0.95rem;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .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__login-guide-section,
  .page-login__benefits-section,
  .page-login__register-section,
  .page-login__faq-section,
  .page-login__conclusion-section {
    padding: 40px 0;
  }

  .page-login__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-login__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-login__steps-wrapper {
    grid-template-columns: 1fr;
  }

  .page-login__register-content {
    flex-direction: column;
  }

  .page-login__register-image {
    order: -1; /* Image above text on mobile */
    margin-bottom: 20px;
  }

  /* Image/Video responsive rules for mobile */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .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;
    overflow: hidden !important;
  }

  .page-login__video-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 1rem;
    padding: 12px 20px;
  }
  .page-login__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
}

/* Ensure no filter on images */
.page-login img {
  filter: none;
}