/* style/login.css */

/* Reset & Base Styles */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

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

.page-login__section {
  padding: 80px 0;
  text-align: center;
}

.page-login__dark-section {
  background-color: #0A2463; /* Main brand color */
  color: #ffffff;
}

.page-login__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Accent color for titles */
}

.page-login__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: #e0e0e0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding: 100px 0;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  /* 🚨 顶部间距以公用片段约定为准，使用 var(--header-offset)，避免被固定页头盖住 */
  padding-top: var(--header-offset, 120px);
  margin-top: 0; /* 不使用margin-top，使用padding-top确保间距 */
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-login__hero-section .page-login__container {
  position: relative;
  z-index: 2;
}

.page-login__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Accent color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-login__form-wrapper {
  background: rgba(10, 36, 99, 0.85); /* Slightly transparent main color */
  padding: 40px;
  border-radius: 10px;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #FFD700;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #FFD700;
  border-radius: 5px;
  background: #0A2463;
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
}

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

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

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

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

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

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

.page-login__forgot-password:hover {
  color: #ffffff;
}

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  background: #FFD700; /* Accent color for primary button */
  color: #0A2463; /* Dark text for light button */
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  display: block;
  box-sizing: border-box;
}

.page-login__submit-button:hover {
  background: #e6c200;
  color: #0A2463;
}

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

/* Why Login Section */
.page-login__why-login-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

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

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

.page-login__feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-login__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* Quick Access Section */
.page-login__quick-access-section {
  background-color: #0A2463;
  color: #ffffff;
}

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

.page-login__link-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.2);
  text-decoration: none;
  color: #ffffff;
  display: block;
  position: relative;
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-login__link-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-login__link-card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-login__link-card-text {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-login__link-card-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 24px;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-login__link-card:hover .page-login__link-card-arrow {
  transform: translateX(5px);
}

/* FAQ Section */
.page-login__faq-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-login__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* FAQ容器样式 */
.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

/* 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 15px;
  opacity: 0;
  color: #e0e0e0;
}

/* 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 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for expanded answer */
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-login__faq-item.active .page-login__faq-question {
  background: rgba(255, 255, 255, 0.05);
  border-bottom-color: transparent;
}

.page-login__faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.page-login__faq-question:active {
  background: rgba(255, 255, 255, 0.1);
}

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

/* 切换图标 */
.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; /* 防止图标阻止点击事件 */
  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); /* Rotate for 'x' effect */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 40px;
  }
  .page-login__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-login__main-title {
    font-size: 32px;
  }
  .page-login__intro-text {
    font-size: 16px;
  }
  .page-login__form-wrapper {
    padding: 30px;
  }
  .page-login__submit-button {
    font-size: 16px;
    padding: 12px;
  }
  .page-login__section {
    padding: 50px 0;
  }
  .page-login__section-title {
    font-size: 28px;
  }
  .page-login__section-description {
    font-size: 16px;
  }
  .page-login__features-grid, .page-login__link-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__feature-title {
    font-size: 20px;
  }
  .page-login__link-card-title {
    font-size: 20px;
  }
  .page-login__faq-question {
    padding: 15px;
  }
  .page-login__faq-question h3 {
    font-size: 16px;
  }
  .page-login__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px !important;
  }
  
  /* 🚨 Mobile image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* 🚨 Mobile button responsiveness */
  .page-login__submit-button,
  .page-login__link-card {
    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__form-wrapper,
  .page-login__link-cards-grid,
  .page-login__features-grid,
  .page-login__faq-list {
    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;
  }
}

/* 🚨 CSS for img width/height attributes, ensure no filter */
.page-login__feature-icon {
  width: 200px; /* Display width */
   /* Display height */
  object-fit: contain;
  filter: none; /* Ensure no filter is applied */
}

.page-login__hero-section {
  background-image: url('[GALLERY:login_main:login,hi8823.com đăng nhập,secure,welcome]'); /* Use background-image for hero as it is a visual style */
  background-size: cover;
  background-position: center;
  filter: none; /* Ensure no filter is applied */
}