/* style/login.css */
/* 
  Màu sắc chính: #002060 (Deep Ocean Blue)
  Màu sắc phụ: #FFD700 (Gold)
  Màu chữ mặc định cho nền sáng: #333333
  Màu chữ mặc định cho nền tối: #ffffff
*/

/* --- Global Page Styles (Scoped to .page-login) --- */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Mặc định cho nền sáng */
  background-color: #f8f9fa; /* Nền nhẹ nhàng cho toàn trang */
}

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

.page-login__section-title {
  font-size: 32px;
  color: #002060; /* Màu chủ đạo */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* --- Hero Section --- */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Thêm padding dưới */
  padding-left: 20px;
  padding-right: 20px;
  padding-top: var(--header-offset, 120px); /* Đảm bảo không bị header cố định che */
  background-color: #002060; /* Nền hero */
}

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

.page-login__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #ffffff; /* Chữ trắng trên nền xanh đậm */
}

.page-login__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700; /* Màu vàng phụ trợ nổi bật */
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

/* --- Form Section --- */
.page-login__form-section {
  padding: 60px 0;
  background-color: #f8f9fa; /* Nền sáng */
}

.page-login__login-card {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid #e0e0e0;
}

.page-login__card-title {
  font-size: 28px;
  color: #002060;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__card-intro {
  font-size: 16px;
  color: #555555;
  text-align: center;
  margin-bottom: 30px;
}

.page-login__form-group {
  margin-bottom: 25px;
}

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

.page-login__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 16px;
  color: #333333;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input:focus {
  border-color: #002060;
  box-shadow: 0 0 0 3px rgba(0, 32, 96, 0.2);
  outline: none;
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: #002060;
}

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

.page-login__forgot-password {
  color: #002060;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.page-login__btn-submit {
  width: 100%;
  padding: 15px 25px;
  background-color: #002060;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-sizing: border-box; /* Đảm bảo padding không làm tăng chiều rộng */
  white-space: normal; /* Cho phép chữ xuống dòng */
  word-wrap: break-word; /* Đảm bảo chữ xuống dòng */
}

.page-login__btn-submit:hover {
  background-color: #FFD700;
  color: #002060;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-login__link-text {
  color: #002060;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__link-text:hover {
  color: #FFD700;
  text-decoration: underline;
}

/* --- Why Choose Section --- */
.page-login__why-choose-section {
  padding: 80px 0;
  background-color: #ffffff; /* Nền sáng */
}

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

.page-login__feature-item {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border-top: 5px solid #002060;
}

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

.page-login__feature-item p {
  font-size: 16px;
  color: #666666;
}

/* --- Security Section --- */
.page-login__security-section {
  padding: 80px 0;
  background-color: #002060; /* Nền tối */
  color: #ffffff; /* Chữ trắng */
}

.page-login__security-section .page-login__section-title,
.page-login__security-section .page-login__section-description {
  color: #FFD700; /* Tiêu đề và mô tả màu vàng nổi bật */
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
  flex-wrap: wrap; /* Cho phép xuống dòng trên mobile */
}

.page-login__security-image {
  flex: 1;
  min-width: 300px;
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-login__security-text {
  flex: 2;
  min-width: 300px;
}

.page-login__security-text h3 {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__security-text p {
  font-size: 17px;
  color: #f0f0f0;
  margin-bottom: 15px;
}

/* --- Register CTA Section --- */
.page-login__register-cta-section {
  padding: 80px 0;
  background-color: #f0f2f5; /* Nền sáng nhẹ */
  text-align: center;
}

.page-login__register-cta-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.page-login__register-benefits {
  font-size: 18px;
  color: #555555;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* --- FAQ Section --- */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #002060; /* Nền tối */
  color: #ffffff;
}

.page-login__faq-section .page-login__section-title,
.page-login__faq-section .page-login__section-description {
  color: #FFD700;
}

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

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #0a306c; /* Nền item FAQ tối hơn một chút */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #002b70; /* Nền câu hỏi */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Màu vàng cho dấu +/- */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  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); /* Dấu trừ thành dấu X khi mở */
}

.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 25px;
  opacity: 0;
  background-color: #0a306c;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-login__faq-answer p {
  font-size: 16px;
  color: #e0e0e0;
  margin: 0;
}

/* --- App Download Section --- */
.page-login__app-download-section {
  padding: 80px 0;
  background-color: #ffffff; /* Nền sáng */
  text-align: center;
}

.page-login__app-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-login__app-image {
  flex: 1;
  min-width: 300px;
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.page-login__app-features {
  flex: 2;
  min-width: 300px;
  text-align: left;
}

.page-login__app-features h3 {
  font-size: 24px;
  color: #002060;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__app-features ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-login__app-features li {
  font-size: 17px;
  color: #333333;
  margin-bottom: 12px;
  position: relative;
  padding-left: 30px;
}

.page-login__app-features li::before {
  content: '✔';
  color: #FFD700;
  font-size: 20px;
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.6;
}

.page-login__feature-highlight {
  color: #002060;
}

/* --- General Button Styles --- */
.page-login__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background-color: #002060;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary:hover {
  background-color: #FFD700;
  color: #002060;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: #002060;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  background-color: #FFD700;
  color: #002060;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: 2px solid #FFD700;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-secondary:hover {
  background-color: #002060;
  color: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: #FFD700;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 40px;
  }
  .page-login__hero-description {
    font-size: 18px;
  }
  .page-login__section-title {
    font-size: 28px;
  }
  .page-login__security-content,
  .page-login__app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-login__security-image,
  .page-login__app-image {
    max-width: 600px;
    margin: 0 auto 30px auto;
  }
  .page-login__security-text,
  .page-login__app-features {
    text-align: center;
  }
  .page-login__app-features ul {
    text-align: left; /* Giữ list item text-align left */
    margin: 0 auto 30px auto;
    max-width: 500px; /* Giới hạn chiều rộng cho list trên tablet */
  }
  .page-login__app-features li {
    padding-left: 0; /* Bỏ padding left */
  }
  .page-login__app-features li::before {
    left: auto; /* Bỏ vị trí tuyệt đối */
    position: static; /* Đặt lại vị trí */
    margin-right: 10px; /* Thêm khoảng cách */
    display: inline-block; /* Hiển thị inline-block */
  }
}

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

  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-title {
    font-size: 32px;
  }
  .page-login__hero-description {
    font-size: 16px;
  }

  .page-login__form-section,
  .page-login__why-choose-section,
  .page-login__security-section,
  .page-login__register-cta-section,
  .page-login__faq-section,
  .page-login__app-download-section {
    padding: 40px 0;
  }

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

  .page-login__section-title {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .page-login__section-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-login__login-card {
    padding: 30px 20px;
  }

  .page-login__card-title {
    font-size: 24px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}