/* style/login.css */
/* body đã padding-top: var(--header-offset)；trang này cấm viết lại biến đó */

.page-login {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* Thêm padding dưới để tránh footer bị dính liền */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Forced image-above-text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
  overflow: hidden;
}

.page-login__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and text */
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-login__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.page-login__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

/* Form Section */
.page-login__form-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.page-login__form-card {
  background-color: #11271B; /* Card B G */
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid #2E7A4E; /* Border */
}

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

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

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

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

.page-login__form-input::placeholder {
  color: rgba(167, 217, 184, 0.6); /* Lighter secondary text */
}

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

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

.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: #57E38D; /* Glow */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: #2AD16F;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-login__no-account-text {
  text-align: center;
  margin-top: 25px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

.page-login__register-link {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #2AD16F;
}

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

.page-login__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

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

.page-login__benefit-card {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__benefit-icon {
  width: 100%; /* Ensure images are large */
  max-width: 400px; /* Example max-width for content images */
  height: auto;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-login__card-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__card-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

/* Guide Section */
.page-login__guide-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-login__guide-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-login__guide-step {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-login__step-title {
  font-size: 1.8em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__step-description {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 25px;
  font-size: 1em;
}

.page-login__step-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: contain;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
  border-radius: 8px;
  font-size: 1em;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-login__btn-secondary:hover {
  background-color: #57E38D; /* Glow */
  color: #08160F; /* Background for contrast */
  border-color: #57E38D;
}

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

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

.page-login__troubleshooting-item {
    background-color: #11271B; /* Card B G */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 12px;
    padding: 30px;
}

.page-login__troubleshooting-heading {
    font-size: 1.6em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__troubleshooting-description {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95em;
    margin-bottom: 20px;
}

.page-login__btn-text {
    color: #57E38D; /* Glow */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-login__btn-text:hover {
    color: #2AD16F;
}

/* Why Choose Section */
.page-login__why-choose-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
}

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

.page-login__why-choose-item {
    background-color: #11271B; /* Card B G */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.page-login__why-choose-icon {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-login__why-choose-heading {
    font-size: 1.5em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__why-choose-description {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95em;
}


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

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

.page-login__faq-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-login__faq-item:hover {
  background-color: #1A3025; /* Slightly lighter for hover */
}

.page-login__faq-item[open] {
    background-color: #0A4B2C; /* Deep Green when open */
    border-color: #57E38D; /* Glow border when open */
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  list-style: none; /* For details/summary */
  font-weight: 600;
}

.page-login__faq-question::-webkit-details-marker {
  display: none;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to X or simply changes to minus */
}

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

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

.page-login__cta-section .page-login__description {
    margin-bottom: 40px;
}

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

.page-login__cta-buttons .page-login__btn-primary,
.page-login__cta-buttons .page-login__btn-secondary {
    min-width: 180px;
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-login__section-title {
        font-size: clamp(1.6rem, 5vw, 2.5rem);
    }
    .page-login__benefits-grid,
    .page-login__why-choose-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

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

  /* All images */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers */
  .page-login__hero-section,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__troubleshooting-section,
  .page-login__why-choose-section,
  .page-login__faq-section,
  .page-login__cta-section,
  .page-login__container,
  .page-login__form-card,
  .page-login__benefit-card,
  .page-login__guide-step,
  .page-login__troubleshooting-item,
  .page-login__why-choose-item,
  .page-login__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Specific padding for sections to reduce excessive space */
  .page-login__hero-section {
    padding: 10px 15px 40px 15px !important;
  }
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__troubleshooting-section,
  .page-login__why-choose-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  /* Buttons */
  .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;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-login__cta-buttons .page-login__btn-primary,
  .page-login__cta-buttons .page-login__btn-secondary {
      min-width: unset; /* Remove min-width for mobile */
  }

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

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