.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

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

.page-login__hero-section {
  padding-top: 120px; /* Adjust for fixed header */
  padding-bottom: 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color, #0A2463), #1A3A73);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--secondary-color, #FFD700);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-login__btn-primary {
  background: var(--secondary-color, #FFD700);
  color: #0A2463;
}

.page-login__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-login__btn-secondary {
  background: transparent;
  color: var(--secondary-color, #FFD700);
  border: 2px solid var(--secondary-color, #FFD700);
}

.page-login__btn-secondary:hover {
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #0A2463);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-login__form-section {
  padding: 80px 0;
  background-color: #f9f9f9; /* Light background for form */
  color: #333333; /* Dark text for light background */
}

.page-login__form-wrapper {
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid #e0e0e0;
}

.page-login__form-title {
  font-size: 2em;
  color: var(--primary-color, #0A2463);
  text-align: center;
  margin-bottom: 30px;
}

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

.page-login__form-group {
  display: flex;
  flex-direction: column;
}

.page-login__form-label {
  font-size: 1em;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555555;
}

.page-login__form-input {
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input:focus {
  border-color: var(--primary-color, #0A2463);
  box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.2);
  outline: none;
}

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

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

.page-login__checkbox {
  margin-right: 8px;
}

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

.page-login__forgot-password {
  color: var(--primary-color, #0A2463);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: var(--secondary-color, #FFD700);
  text-decoration: underline;
}

.page-login__submit-button {
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  background: var(--primary-color, #0A2463);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-login__submit-button:hover {
  background: #071e4d;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 1em;
  color: #555555;
}

.page-login__register-link {
  color: var(--primary-color, #0A2463);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: var(--secondary-color, #FFD700);
  text-decoration: underline;
}

.page-login__benefits-section {
  padding: 80px 0;
  background-color: var(--primary-color, #0A2463);
  color: #ffffff;
  text-align: center;
}

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 50px;
  color: var(--secondary-color, #FFD700);
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

.page-login__benefit-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for contrast */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-login__benefit-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-login__card-title {
  font-size: 1.5em;
  color: var(--secondary-color, #FFD700);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__card-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__security-section {
  padding: 80px 0;
  background-color: #f9f9f9; /* Light background */
  color: #333333; /* Dark text */
}

.page-login__security-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-login__security-content p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-login__security-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 25px;
  font-size: 1em;
}

.page-login__security-list li {
  margin-bottom: 10px;
  color: #555555;
}

.page-login__faq-section {
  padding: 80px 0;
  background-color: #1A3A73; /* Darker variant of primary color */
  color: #ffffff;
}

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

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

/* 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;
  color: #f0f0f0;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể 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: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
}

/* Vấn đề kiểu dáng */
.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--primary-color, #0A2463);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-login__faq-question:hover {
  background: #071e4d;
  border-color: rgba(255, 255, 255, 0.3);
}

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

/* Vấn đề tiêu đề kiểu dáng */
.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp */
  color: var(--secondary-color, #FFD700);
}

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

.page-login__faq-item.active .page-login__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

.page-login__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--primary-color, #0A2463);
  color: #ffffff;
}

.page-login__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: 100px !important; /* Mobile adjust for fixed header */
    padding-bottom: 60px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__form-section {
    padding: 60px 0;
  }
  .page-login__form-wrapper {
    padding: 30px 20px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-login__form-title {
    font-size: 1.8em;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__submit-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-bottom-section {
    padding: 60px 15px;
  }
  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-login__benefit-card {
    padding: 25px;
  }
  .page-login__benefit-image {
    max-width: 200px;
  }
  .page-login__card-title {
    font-size: 1.3em;
  }

  .page-login__security-content {
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-login__security-content p, .page-login__security-list li {
    font-size: 0.95em;
  }

  /* Mobile FAQ styles */
  .page-login__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-login__faq-question h3 {
    font-size: 1em;
    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-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__form-title {
    font-size: 1.5em;
  }
  .page-login__cta-button {
    padding: 10px 20px !important;
    font-size: 0.9em !important;
  }
}

/* Base image responsive styles */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile forced image responsive styles */
@media (max-width: 768px) {
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form-wrapper,
  .page-login__benefits-grid,
  .page-login__security-content,
  .page-login__faq-list,
  .page-login__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-login__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
  }
}

/* Base button responsive styles */
.page-login__cta-button,
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__submit-button {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Button containers base responsive styles */
.page-login__cta-buttons {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile forced button responsive styles */
@media (max-width: 768px) {
  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__submit-button {
    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__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking on mobile */
  }
}