/* style/login.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

/* --- Base Styles --- */
.page-login {
  background-color: #08160F; /* Background: #08160F */
  color: #F2FFF6; /* Text Main: #F2FFF6 */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-login__main-title {
  font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
}

.page-login__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.3;
}

.page-login__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #A7D9B8; /* Text Secondary */
}

/* --- Buttons --- */
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none; /* Remove default button border */
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff; /* White text for contrast */
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4); /* Glow effect */
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow color for border and text */
  border: 2px solid #57E38D; /* Glow color for border */
}

.page-login__btn-secondary:hover {
  background-color: #57E38D;
  color: #08160F; /* Dark background color for text */
  transform: translateY(-2px);
}

.page-login__large-button {
  padding: 15px 30px;
  font-size: 1.1rem;
  min-width: 200px;
}

/* --- Hero Section --- */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 700px; /* Adjust as needed */
  padding: 10px 0 60px; /* Small top padding, larger bottom */
  overflow: hidden;
  background-color: #08160F; /* Ensure background matches body */
}

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

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

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.page-login__description {
  font-size: 1.2rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
}

.page-login__login-form-wrapper {
  background-color: #11271B; /* Card B G */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-login__form-title {
  font-size: 2rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
  text-align: center;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  font-size: 1rem;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #A7D9B8; /* Text Secondary */
  opacity: 0.7;
}

.page-login__form-input:focus {
  outline: none;
  border-color: #57E38D; /* Glow */
  box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.5);
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #2AD16F; /* Highlight color for checkbox */
}

.page-login__checkbox-label {
  color: #A7D9B8; /* Text Secondary */
}

.page-login__forgot-password-link {
  color: #F2C14E; /* Gold */
  text-decoration: none;
}

.page-login__forgot-password-link:hover {
  text-decoration: underline;
  color: #57E38D; /* Glow */
}

.page-login__login-button {
  width: 100%;
  margin-bottom: 20px;
}

.page-login__register-text {
  text-align: center;
  color: #A7D9B8; /* Text Secondary */
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-login__register-link {
  color: #F2C14E; /* Gold */
  text-decoration: none;
  font-weight: bold;
}

.page-login__register-link:hover {
  text-decoration: underline;
  color: #57E38D; /* Glow */
}

.page-login__download-app-button {
  width: 100%;
  margin-top: 10px;
}

/* --- Features Section --- */
.page-login__features-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green - dark section */
  color: #F2FFF6; /* Text Main */
}

.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-color: #11271B; /* Card B G */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border color */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-login__feature-icon {
  width: 100%; /* Ensure image fills card width */
  height: auto;
  max-height: 200px; /* Limit height for consistency */
  object-fit: contain; /* Ensure image content is visible */
  margin-bottom: 20px;
  border-radius: 8px; /* Slightly rounded corners for images */
}

.page-login__feature-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-login__feature-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
}

/* --- How to Login Section --- */
.page-login__how-to-login-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

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

.page-login__step-card {
  background-color: #11271B; /* Card B G */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border color */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-login__step-number {
  font-size: 3rem;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-login__step-title {
  font-size: 1.6rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-login__step-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
  margin-bottom: 20px;
}

.page-login__step-image {
  width: 100%;
  height: auto;
  max-height: 250px; /* Limit height */
  object-fit: contain;
  border-radius: 8px;
}

.page-login__troubleshooting {
  margin-top: 60px;
  padding: 40px;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 12px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-login__troubleshooting-title {
  font-size: 1.8rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-login__troubleshooting-text {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  font-size: 1rem;
}

/* --- Benefits Section --- */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green - dark section */
  color: #F2FFF6; /* Text Main */
}

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

.page-login__benefits-item {
  display: flex;
  align-items: flex-start;
  background-color: #11271B; /* Card B G */
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__benefits-icon {
  font-size: 1.8rem;
  margin-right: 15px;
  color: #57E38D; /* Glow */
}

.page-login__benefits-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
  margin: 0;
}

/* --- FAQ Section --- */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

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

.page-login__faq-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__faq-item summary {
  list-style: none; /* Hide default marker */
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: #F2FFF6; /* Text Main */
  font-size: 1.2rem;
  font-weight: bold;
  background-color: #11271B; /* Card B G */
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

.page-login__faq-qtext {
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 20px;
  color: #F2C14E; /* Gold */
}

.page-login__faq-item[open] .page-login__faq-toggle {
  color: #57E38D; /* Glow when open */
}

.page-login__faq-answer {
  padding: 0 25px 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
  line-height: 1.8;
}

/* --- CTA Section --- */
.page-login__cta-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green - dark section */
  text-align: center;
}

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-login__hero-content {
    padding: 20px;
  }
  .page-login__features-grid,
  .page-login__steps-grid,
  .page-login__benefits-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Global responsive for images, videos, containers */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-login__hero-section {
    min-height: 500px;
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
  }

  .page-login__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-login__section-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .page-login__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-login__login-form-wrapper {
    padding: 30px 20px;
    max-width: 100%;
  }

  .page-login__form-title {
    font-size: 1.8rem;
  }

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

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important; /* Allow text wrapping */
    word-wrap: break-word !important; /* Allow text wrapping */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-login__features-section,
  .page-login__how-to-login-section,
  .page-login__benefits-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 50px 0;
  }

  .page-login__features-grid,
  .page-login__steps-grid,
  .page-login__benefits-list {
    grid-template-columns: 1fr;
  }

  .page-login__feature-card,
  .page-login__step-card,
  .page-login__benefits-item,
  .page-login__faq-item {
    padding: 20px;
  }

  .page-login__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  .page-login__troubleshooting {
    padding: 30px 20px;
  }
}

/* Ensure no filter on images */
.page-login img {
  filter: none; /* Override any potential global filters */
}

.page-login__hero-image {
  filter: brightness(0.6); /* This is allowed as it darkens the background image, not changing its 'color' */
}