:root {
  --main-color: #11A84E;
  --accent-color: #22C768;
  --button-gradient-start: #2AD16F;
  --button-gradient-end: #13994A;
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* style/login.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần lặp lại */
.page-login {
  background-color: var(--background);
  color: var(--text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small decorative padding-top, body handles header offset */
  overflow: hidden; /* Ensure no image overflow */
  min-height: 500px;
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: none; /* Removed brightness filter as per strict rule */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: var(--text-main);
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(8, 22, 15, 0.7); /* Darker background from custom colors for text readability */
}

.page-login__main-title {
  font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive H1 size */
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-login__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

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

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__submit-button,
.page-login a[class*="button"],
.page-login a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-login__btn-primary,
.page-login__submit-button {
  background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%); /* Custom button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-login__btn-primary:hover,
.page-login__submit-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border); /* Custom border color */
}

.page-login__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Slight background on hover */
  transform: translateY(-2px);
}

/* Form Section */
.page-login__form-section {
  background-color: var(--card-bg); /* Custom card background */
  padding: 60px 20px;
  text-align: center;
}

.page-login__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-login__section-description {
  font-size: 1rem;
  margin-bottom: 40px;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background-color: var(--background); /* Use deeper background for form contrast */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border); /* Custom border color */
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-main);
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: #0d1e16; /* Slightly lighter than background for input field */
  color: var(--text-main);
  font-size: 1rem;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: var(--text-secondary);
  opacity: 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: var(--main-color); /* Highlight checkbox with main color */
}

.page-login__checkbox-label {
  color: var(--text-secondary);
}

.page-login__forgot-password,
.page-login__register-link {
  color: var(--gold); /* Custom gold color for links */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover,
.page-login__register-link:hover {
  color: var(--glow); /* Custom glow color on hover */
}

.page-login__register-prompt {
  margin-top: 25px;
  color: var(--text-secondary);
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 20px;
  background-color: var(--background);
}

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

.page-login__benefit-card {
  background-color: var(--card-bg); /* Custom card background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 250px; /* Constrain image width within card */
  height: auto;
  margin: 0 auto 20px auto;
  object-fit: contain;
  border-radius: 8px;
  filter: none; /* Ensure no filter */
}

.page-login__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-login__card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  flex-grow: 1; /* Allow text to fill space for equal height */
}

/* Security Section */
.page-login__security-section {
  padding: 80px 20px;
  background-color: var(--background);
  border-top: 1px solid var(--divider); /* Custom divider */
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap; /* Allow wrapping on mobile */
}

.page-login__security-text {
  flex: 1;
  min-width: 300px;
  color: var(--text-main);
}

.page-login__sub-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--gold); /* Use gold for sub-titles */
}

.page-login__paragraph {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.page-login__paragraph a {
  color: var(--glow); /* Glow for internal links */
  text-decoration: underline;
}
.page-login__paragraph a:hover {
  color: var(--main-color);
}

.page-login__security-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

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

.page-login__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  filter: none; /* Ensure no filter */
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 20px;
  background-color: var(--card-bg); /* Custom card background */
  border-top: 1px solid var(--divider);
}

.page-login__faq-list {
  margin-top: 50px;
}

.page-login__faq-item {
  background-color: var(--background); /* Use deeper background for FAQ items */
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  color: var(--text-main);
}

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
  background-color: rgba(17, 168, 78, 0.1); /* Slight highlight */
}

.page-login__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.2);
}

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

.page-login__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold); /* Gold for toggle icon */
}

.page-login__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.page-login__faq-answer p {
  margin: 0;
  padding-top: 15px;
}

/* CTA Bottom Section */
.page-login__cta-bottom {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--background);
  border-top: 1px solid var(--divider);
}

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

  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-login__main-title {
    font-size: 2rem !important;
  }

  .page-login__hero-description {
    font-size: 1rem !important;
  }

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

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__submit-button,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-bottom {
    padding: 40px 15px;
  }

  .page-login__section-title {
    font-size: 1.8rem !important;
  }

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

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

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

  .page-login__benefit-card {
    padding: 25px;
  }

  .page-login__security-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__security-image {
    max-width: 100% !important;
    width: 100% !important;
  }

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

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

  /* Mobile image and container responsiveness */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-bottom,
  .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;
  }
  
  /* Ensure content images are not smaller than 200px (this overrides the small icon rule, but the images generated are >200px anyway) */
  .page-login img:not(.page-login__logo, .page-login__social-icon, .page-login__payment-icon) {
    min-width: 200px;
    min-height: 200px;
  }
}

/* Ensure no filter on images */
.page-login img {
  filter: none; /* Explicitly remove any default filters */
}