/* style/login.css */
/* body đã padding-top: var(--header-offset) */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  padding-top: 10px; /* Nhỏ hơn so với header-offset của body */
  background-color: #F4F7FB; /* Background */
  text-align: center;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  max-width: 100%; /* Đảm bảo hình ảnh không tràn */
}

.page-login__hero-content {
  max-width: 800px;
  z-index: 1;
  padding: 0 20px;
}

.page-login__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Sử dụng clamp cho font-size */
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.1rem;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên di động */
  gap: 15px;
  justify-content: center;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Đảm bảo nút không tràn */
  white-space: normal; /* Cho phép văn bản xuống dòng */
  word-wrap: break-word; /* Đảm bảo từ không tràn */
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  border: none;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.4);
}

.page-login__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Primary Color */
  border: 2px solid #2F6BFF; /* Primary Color */
}

.page-login__btn-secondary:hover {
  background: #2F6BFF; /* Primary Color */
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.2);
}

/* General Section Styling */
.page-login__section {
  padding: 60px 0;
}

.page-login__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
}

.page-login__section-description {
  font-size: 1.1rem;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-login__card {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

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

.page-login__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2F6BFF; /* Primary Color */
  margin-bottom: 15px;
}

.page-login__card-text {
  font-size: 1rem;
  color: #1F2D3D; /* Text Main */
}

.page-login__link {
  color: #2F6BFF; /* Primary Color */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-login__link:hover {
  color: #6FA3FF; /* Secondary Color */
  text-decoration: underline;
}

/* Why Login Section */
.page-login__why-login {
  background-color: #F4F7FB; /* Background */
}

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

.page-login__feature-icon {
  width: 100%; /* Full width of card */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%; /* Đảm bảo hình ảnh không tràn */
}

/* Login Guide Section */
.page-login__login-guide {
  background-color: #2F6BFF; /* Primary Color */
  color: #ffffff;
}

.page-login__login-guide .page-login__section-title,
.page-login__login-guide .page-login__section-description {
  color: #ffffff;
}

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

.page-login__step-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-login__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #ffffff;
  color: #2F6BFF; /* Primary Color */
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-login__step-text {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Troubleshooting Section */
.page-login__troubleshooting {
  background-color: #F4F7FB; /* Background */
}

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

/* Security Info Section */
.page-login__security-info {
  background-color: #ffffff; /* Card BG */
}

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

.page-login__security-item {
  background: #F4F7FB; /* Background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF; /* Border */
}

.page-login__security-icon {
  width: 100%; /* Full width of item */
  height: 150px; /* Fixed height for consistency */
  object-fit: contain; /* Use contain for icons */
  margin-bottom: 20px;
  max-width: 100%; /* Đảm bảo hình ảnh không tràn */
}

.page-login__item-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2F6BFF; /* Primary Color */
  margin-bottom: 10px;
}

.page-login__item-text {
  font-size: 1rem;
  color: #1F2D3D; /* Text Main */
}

.page-login__security-tip {
  font-size: 1rem;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background: #e0eaff; /* Light blue accent */
  border-radius: 8px;
  border: 1px dashed #2F6BFF;
}

/* Benefits VIP Section */
.page-login__benefits-vip {
  background-color: #2F6BFF; /* Primary Color */
  color: #ffffff;
}

.page-login__benefits-vip .page-login__section-title,
.page-login__benefits-vip .page-login__section-description,
.page-login__benefits-vip .page-login__item-title,
.page-login__benefits-vip .page-login__item-text {
  color: #ffffff;
}

.page-login__benefits-vip .page-login__link {
  color: #ffffff;
}

.page-login__benefits-vip .page-login__link:hover {
  color: #A5C4FF; /* Glow */
}

.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.15);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* FAQ Section */
.page-login__faq {
  background-color: #F4F7FB; /* Background */
}

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

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #D6E2FF; /* Border */
  background: #FFFFFF; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  background: #ffffff; /* Card BG */
  transition: background-color 0.3s ease;
}

.page-login__faq-item summary:hover {
  background-color: #F4F7FB; /* Background */
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-login__faq-qtext {
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2F6BFF; /* Primary Color */
  margin-left: 15px;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: "−"; /* Change to minus when open, handled by JS for non-details */
}

.page-login__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #1F2D3D; /* Text Main */
  background: #ffffff; /* Card BG */
}

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

/* Call to Action Bottom */
.page-login__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

/* Dark background sections */
.page-login__dark-section .page-login__section-title,
.page-login__dark-section .page-login__section-description,
.page-login__dark-section .page-login__card-title,
.page-login__dark-section .page-login__card-text,
.page-login__dark-section .page-login__link {
  color: #ffffff;
}

.page-login__dark-section .page-login__link:hover {
  color: #A5C4FF; /* Glow */
}

/* Light background sections */
.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__section-description,
.page-login__light-bg .page-login__card-title,
.page-login__light-bg .page-login__card-text,
.page-login__light-bg .page-login__link {
  color: #1F2D3D; /* Text Main */
}

.page-login__light-bg .page-login__card {
  background-color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-content {
    max-width: 90%;
  }
}

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

  .page-login__container {
    padding: 0 15px;
  }

  .page-login__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* body đã xử lý header-offset */
  }

  .page-login__main-title {
    font-size: 2rem;
  }

  .page-login__hero-description {
    font-size: 1rem;
  }

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

  .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__section {
    padding: 40px 0;
  }

  .page-login__section-title {
    font-size: 1.8rem;
  }

  .page-login__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-login__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-login__card-title {
    font-size: 1.3rem;
  }

  .page-login__feature-icon,
  .page-login__security-icon {
    height: 120px;
  }

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

  .page-login__step-number {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }

  .page-login__item-title {
    font-size: 1.2rem;
  }

  .page-login__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-login__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Force responsive images, videos, and containers */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__hero-image-wrapper,
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-login__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically */
  }
}