/* style/login.css */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: var(--header-offset, 120px);
}

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

.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  background: linear-gradient(135deg, #0047AB, #001f4d);
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
}

.page-login__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-login__login-overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 71, 171, 0.85); /* Dark blue with transparency */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
}

.page-login__main-title {
  font-size: 36px;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__intro-text {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.5;
}

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

.page-login__label {
  display: block;
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 8px;
  font-weight: bold;
}

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #FFD700; /* Gold border */
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
}

.page-login__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

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

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

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

.page-login__checkbox-label {
  font-size: 14px;
  color: #f0f0f0;
}

.page-login__forgot-password {
  font-size: 14px;
  color: #FFD700; /* Gold link */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-login__login-button {
  width: 100%;
  padding: 15px;
  background: #FFD700; /* Gold button */
  color: #0047AB; /* Dark blue text */
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__login-button:hover {
  background: #e6c200;
}

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

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

.page-login__register-link:hover {
  color: #fff;
}

.page-login__section-title {
  font-size: 32px;
  color: #FFD700; /* Gold title */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-login__section-description {
  font-size: 16px;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-login__why-login-section {
  background: #001f4d; /* Darker blue */
  padding: 80px 0;
  color: #f0f0f0;
}

.page-login__dark-bg {
  background: #001f4d;
  color: #ffffff;
}

.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: rgba(0, 71, 171, 0.7); /* Main color with transparency */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-login__benefit-card:hover {
  transform: translateY(-8px);
  background: rgba(0, 71, 171, 0.9);
}

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

.page-login__benefit-title {
  font-size: 22px;
  color: #FFD700; /* Gold title */
  margin-bottom: 15px;
}

.page-login__benefit-text {
  font-size: 15px;
  color: #e0e0e0;
  line-height: 1.6;
}

.page-login__security-section {
  background: #0a0a0a;
  padding: 80px 0;
  color: #f0f0f0;
}

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

.page-login__security-item {
  background: rgba(255, 255, 255, 0.08); /* Light transparent background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 71, 171, 0.5);
}

.page-login__security-icon {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-login__security-subtitle {
  font-size: 20px;
  color: #FFD700; /* Gold subtitle */
  margin-bottom: 10px;
}

.page-login__security-text {
  font-size: 15px;
  color: #e0e0e0;
  line-height: 1.6;
}

.page-login__troubleshooting-section {
  background: #f0f0f0;
  padding: 80px 0;
  color: #333333; /* Dark text for light background */
}

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

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

.page-login__troubleshooting-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-login__troubleshooting-subtitle {
  font-size: 20px;
  color: #0047AB; /* Dark blue subtitle */
  margin-bottom: 10px;
}

.page-login__troubleshooting-text {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
}

.page-login__faq-section {
  padding: 80px 0;
  color: #f0f0f0;
}

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

/* FAQ容器样式 */
.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(0, 71, 171, 0.7); /* Main color with transparency */
}

/* 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(0, 71, 171, 0.9); /* Slightly darker when active */
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #0047AB;
  border: 1px solid #FFD700; /* Gold border */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-login__faq-question:hover {
  background: #003a8d;
  border-color: #ffd700;
}

.page-login__faq-question:active {
  background: #002e70;
}

/* 问题标题样式 */
.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; /* Gold text */
}

/* 切换图标 */
.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: #fff;
  transform: rotate(45deg);
}

.page-login__cta-section {
  background: #0a0a0a;
  padding: 80px 0;
  text-align: center;
  color: #f0f0f0;
}

.page-login__cta-title {
  font-size: 32px;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-login__cta-description {
  font-size: 18px;
  color: #e0e0e0;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: #FFD700;
  color: #0047AB;
  border: 2px solid #FFD700;
}

.page-login__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  color: #002e70;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 32px;
  }
  .page-login__intro-text {
    font-size: 16px;
  }
  .page-login__login-overlay {
    padding: 30px;
  }
  .page-login__section-title {
    font-size: 28px;
  }
  .page-login__section-description {
    font-size: 15px;
  }
  .page-login__benefit-title, .page-login__security-subtitle, .page-login__troubleshooting-subtitle {
    font-size: 20px;
  }
  .page-login__benefit-text, .page-login__security-text, .page-login__troubleshooting-text {
    font-size: 14px;
  }
  .page-login__faq-question h3 {
    font-size: 17px;
  }
  .page-login__faq-toggle {
    font-size: 26px;
    width: 30px;
    height: 30px;
  }
  .page-login__cta-title {
    font-size: 28px;
  }
  .page-login__cta-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__hero-section {
    min-height: 600px;
    padding: 0;
  }
  .page-login__login-overlay {
    padding: 25px;
    border-radius: 0;
    max-width: 100%;
  }
  .page-login__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-login__intro-text {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .page-login__label {
    font-size: 15px;
  }
  .page-login__input {
    padding: 10px 12px;
    font-size: 15px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }
  .page-login__remember-me {
    margin-bottom: 10px;
  }
  .page-login__forgot-password {
    align-self: flex-end;
  }
  .page-login__login-button {
    padding: 12px;
    font-size: 16px;
    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: 15px;
  }
  .page-login__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }
  .page-login__section-description {
    font-size: 14px;
    margin-bottom: 30px;
  }
  .page-login__why-login-section, .page-login__security-section, .page-login__troubleshooting-section, .page-login__faq-section, .page-login__cta-section {
    padding: 50px 0;
  }
  .page-login__benefits-grid, .page-login__security-features, .page-login__troubleshooting-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__benefit-image, .page-login__security-icon {
    height: 180px;
  }
  .page-login__benefit-title, .page-login__security-subtitle, .page-login__troubleshooting-subtitle {
    font-size: 18px;
  }
  .page-login__benefit-text, .page-login__security-text, .page-login__troubleshooting-text {
    font-size: 14px;
  }
  .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__cta-title {
    font-size: 26px;
  }
  .page-login__cta-description {
    font-size: 15px;
  }
  .page-login__cta-button {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Ensure all images are responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure containers with images are responsive */
  .page-login__hero-section,
  .page-login__hero-container,
  .page-login__hero-image,
  .page-login__why-login-section,
  .page-login__security-section,
  .page-login__troubleshooting-section,
  .page-login__faq-section,
  .page-login__cta-section,
  .page-login__benefit-card,
  .page-login__security-item,
  .page-login__troubleshooting-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}