.page-login {
  color: #ffffff; /* Body background is #000 (dark), so text should be light */
  background-color: transparent; /* Main content background will be transparent to show body background */
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  text-align: center;
  overflow: hidden;
}

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for better text contrast */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for content */
  border-radius: 10px;
}

.page-login__main-heading {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.2;
}

.page-login__sub-heading {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
  line-height: 1.5;
}

.page-login__form-wrapper {
  background-color: rgba(255, 255, 255, 0.95); /* Light background for form */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  margin: 20px auto 0;
  color: #333333; /* Dark text for light background */
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333;
  background-color: #f8f8f8;
}

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

.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;
  gap: 8px;
}

.page-login__checkbox {
  cursor: pointer;
}

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

.page-login__forgot-password {
  color: #26A9E0; /* Brand color for link */
  text-decoration: none;
}

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

.page-login__btn-login {
  background-color: #EA7C07; /* Custom login color */
  color: #ffffff;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.page-login__btn-login:hover {
  background-color: #d16b06;
}

.page-login__btn-link {
  color: inherit; /* Inherit color from parent button */
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  line-height: normal;
}

.page-login__register-text {
  margin-top: 20px;
  font-size: 1em;
  color: #333333;
}

.page-login__register-link {
  color: #26A9E0; /* Brand color for link */
  text-decoration: none;
  font-weight: bold;
}

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

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

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #ffffff;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-login__benefits-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

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

.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 250px; /* Ensure images are not too small, but fit card */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-login__card-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-login__guide-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Another dark background for variety */
  color: #ffffff;
}

.page-login__guide-list {
  list-style: none;
  counter-reset: guide-step;
  padding: 0;
  margin-bottom: 50px;
}

.page-login__guide-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  background-color: rgba(255, 255, 255, 0.08); /* Lighter card for steps */
  padding: 25px;
  border-radius: 10px;
}

.page-login__guide-item::before {
  counter-increment: guide-step;
  content: "Bước " counter(guide-step);
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0; /* Brand color for step number */
  flex-shrink: 0;
  width: 120px;
  text-align: right;
}

.page-login__guide-step-title {
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-login__guide-item p {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-login__forgot-password-area {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly brighter card for callout */
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

.page-login__forgot-password-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-login__forgot-password-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-login__btn-support {
  display: inline-block;
  background-color: #26A9E0; /* Brand color for support button */
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__btn-support:hover {
  background-color: #1f8ec7;
}

.page-login__security-section {
  padding: 80px 0;
  background-color: #000; /* Original body background for this section */
  color: #ffffff;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-login__security-item {
  background-color: rgba(255, 255, 255, 0.12); /* Slightly brighter card */
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
}

.page-login__security-feature-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-login__security-item p {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-login__security-link {
  color: #26A9E0;
  text-decoration: none;
}

.page-login__security-link:hover {
  text-decoration: underline;
}

.page-login__security-footer-text {
  margin-top: 40px;
  text-align: center;
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Same as guide section for consistency */
  color: #ffffff;
}

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.page-login__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

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

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px;
}

.page-login__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

.page-login__cta-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Dark background */
  text-align: center;
  color: #ffffff;
}

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

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-support-cta {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 300px; /* Limit individual button width */
}

.page-login__btn-primary {
  background-color: #EA7C07; /* Login/Register button color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-login__btn-primary:hover {
  background-color: #d16b06;
  transform: translateY(-3px);
}

.page-login__btn-secondary {
  background-color: #26A9E0; /* Download App button color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
  background-color: #1f8ec7;
  transform: translateY(-3px);
}

.page-login__btn-support-cta {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-login__btn-support-cta:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-3px);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-login__main-heading {
    font-size: 2.8em;
  }

  .page-login__sub-heading {
    font-size: 1.2em;
  }

  .page-login__section-title {
    font-size: 2em;
  }

  .page-login__section-description {
    font-size: 1em;
  }

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

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

  .page-login__hero-content {
    padding: 20px;
  }

  .page-login__main-heading {
    font-size: 2.2em;
  }

  .page-login__sub-heading {
    font-size: 1em;
  }

  .page-login__form-wrapper {
    padding: 20px;
    max-width: 100%;
  }

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

  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 50px 0;
  }

  .page-login__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__section-title {
    font-size: 1.8em;
  }

  .page-login__section-description {
    font-size: 0.95em;
  }

  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-login__guide-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-login__guide-item::before {
    text-align: left;
    width: auto;
    margin-bottom: 10px;
  }

  .page-login__forgot-password-area {
    padding: 30px 20px;
  }

  .page-login__forgot-password-title {
    font-size: 1.6em;
  }

  .page-login__security-list {
    grid-template-columns: 1fr;
  }

  .page-login__faq-question {
    padding: 15px 20px;
  }

  .page-login__faq-question h3 {
    font-size: 1.1em;
  }

  .page-login__faq-answer {
    padding: 0 20px;
  }

  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 20px;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__btn-support-cta {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Mobile image and video responsive adaptation */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__hero-image-wrapper,
  .page-login__benefit-card,
  .page-login__guide-item,
  .page-login__security-item,
  .page-login__faq-item,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
}

/* Ensure contrast for elements on dark background */
.page-login__dark-bg {
  color: #ffffff;
}

/* Ensure text on form wrapper is dark */
.page-login__form-wrapper {
  color: #333333;
}
.page-login__form-label, .page-login__form-input, .page-login__checkbox-label, .page-login__register-text {
  color: #333333;
}