/* style/login.css */

/* --- General Page Styles --- */
.page-login {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #000; /* Ensure content area also respects dark background */
}

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

.page-login__section-title {
  font-size: 36px;
  color: #FFD700; /* Golden title */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* --- 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); /* Fixed header spacing */
  overflow: hidden; /* Ensure no overflow from image */
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(139, 0, 0, 0.1)); /* Subtle gradient overlay */
}

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

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Make background image subtle */
}

.page-login__hero-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: cover; /* Cover the container */
  border-radius: 8px; /* Soften edges */
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.page-login__main-title {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.page-login__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-form-wrapper {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for form */
  padding: 30px;
  border-radius: 10px;
  max-width: 450px;
  margin: 30px auto 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-login__form-group {
  text-align: left;
}

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 6px;
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #ccc;
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: #FFD700; /* Golden checkbox */
}

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

.page-login__forgot-password-link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-login__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(90deg, #FFD700, #FFA500); /* Golden gradient */
  color: #000000; /* Black text for golden button */
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.page-login__btn-primary:hover {
  background: linear-gradient(90deg, #FFA500, #FFD700);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.page-login__register-prompt {
  margin-top: 25px;
  font-size: 16px;
  color: #f0f0f0;
}

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

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

/* --- Content Sections --- */
.page-login__content-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

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

.page-login__feature-item,
.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-login__feature-item:hover,
.page-login__benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 215, 0, 0.3);
}

.page-login__feature-item img,
.page-login__benefit-card img {
  width: 100%;
  max-width: 200px; /* Constrain feature item images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px;
}

.page-login__benefit-card img {
  max-width: 100%;
  height: 200px; /* Fixed height for benefit cards */
  object-fit: cover;
}

.page-login__feature-title,
.page-login__benefit-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-login__feature-item p,
.page-login__benefit-card p {
  font-size: 16px;
  color: #e0e0e0;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-login__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

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

.page-login__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-left: 5px solid #8B0000; /* Dark red accent */
  transition: background-color 0.3s ease;
}

.page-login__step-card:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

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

.page-login__step-card p {
  font-size: 16px;
  color: #e0e0e0;
}

/* --- FAQ Section --- */
.page-login__faq-section {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

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

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

/* 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, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 Sử dụng !important và đủ lớn max-height để đảm bảo mở rộng */
.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: #2a2a2a; /* Darker background for answer */
  border-radius: 0 0 8px 8px;
  color: #e0e0e0;
}

/* Vấn đề kiểu dáng */
.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #0d0d0d; /* Dark background for question */
  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: #1a1a1a;
  border-color: rgba(255, 215, 0, 0.3);
}

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

/* Kiểu dáng tiêu đề câu hỏi */
.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp */
  color: #FFD700;
}

/* Biểu tượng chuyển đổi */
.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Xoay cho dấu trừ */
}

/* --- Quick Links Section --- */
.page-login__quick-links {
  background-color: #0d0d0d;
}

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

.page-login__quick-link-card {
  display: block;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-login__quick-link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
  border-color: #FFD700;
}

.page-login__quick-link-card img {
  width: 100%;
   /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px;
}

.page-login__quick-link-card h3 {
  font-size: 20px;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-login__quick-link-card p {
  font-size: 15px;
  color: #e0e0e0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 42px;
  }
  .page-login__section-title {
    font-size: 32px;
  }
  .page-login__hero-content {
    padding: 30px;
  }
  .page-login__container {
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
    padding-bottom: 40px;
  }
  .page-login__hero-content {
    padding: 25px;
    border-radius: 8px;
  }
  .page-login__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-login__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-login__login-form-wrapper {
    padding: 20px;
    max-width: 100%;
  }
  .page-login__form-input {
    padding: 10px 12px;
    font-size: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important; /* Buttons full width on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-login__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-login__feature-item img,
  .page-login__benefit-card img,
  .page-login__quick-link-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min- /* Adjust min-height for smaller screens if needed */
  }
  .page-login__feature-item,
  .page-login__benefit-card,
  .page-login__step-card,
  .page-login__quick-link-card {
    padding: 20px;
    border-radius: 8px;
  }
  .page-login__feature-title,
  .page-login__benefit-title,
  .page-login__step-title,
  .page-login__quick-link-card h3 {
    font-size: 18px;
  }
  .page-login__feature-item p,
  .page-login__benefit-card p,
  .page-login__step-card p,
  .page-login__quick-link-card p {
    font-size: 15px;
  }

  /* Mobile FAQ adjustments */
  .page-login__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-login__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-login__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-login__faq-answer {
    padding: 0 15px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all content containers have proper padding and max-width */
  .page-login__container,
  .page-login__content-section,
  .page-login__features-grid,
  .page-login__benefits-grid,
  .page-login__troubleshooting-steps,
  .page-login__faq-list,
  .page-login__links-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 28px;
  }
  .page-login__section-title {
    font-size: 24px;
  }
  .page-login__hero-content {
    padding: 20px;
  }
  .page-login__login-form-wrapper {
    padding: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 15px;
  }
  .page-login__form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .page-login__forgot-password-link {
    margin-top: 5px;
  }
}