/* style/login.css */
.page-login {
  color: #ffffff; /* Body background #0a0a0a (dark), so use light text */
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-login__hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

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

.page-login__main-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-login__login-card {
  background: rgba(1, 116, 57, 0.9); /* Brand color with transparency */
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  margin: 0 auto;
}

.page-login__card-title {
  font-size: 2em;
  color: #ffffff;
  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: #ffffff;
  font-weight: bold;
}

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #017439;
  border-radius: 8px;
  background: #0d0d0d; /* Dark input background */
  color: #ffffff;
  font-size: 1em;
}

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

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.page-login__forgot-password-link {
  color: #FFFF00; /* Custom color for 'Quên mật khẩu?' text */
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

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

.page-login__btn-primary {
  background: #C30808; /* Custom color for Login button */
  color: #ffffff; /* WCAG AA compliant contrast for text on #C30808 */
  padding: 14px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  flex-grow: 1;
  max-width: 180px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-login__register-link {
  color: #FFFF00; /* Custom color for Register link text */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

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

.page-login__section-title {
  font-size: 2.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: #ffffff;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #cccccc;
  line-height: 1.6;
}

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

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

.page-login__benefit-card {
  background: rgba(1, 116, 57, 0.2); /* Brand color with transparency */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(1, 116, 57, 0.4);
}

.page-login__benefit-card:hover {
  transform: translateY(-8px);
  background-color: rgba(1, 116, 57, 0.4);
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 150px; /* Adjust max-width to ensure min 200px display */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__benefit-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__benefit-text {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.7;
}

.page-login__faq-section {
  background: #0a0a0a;
  padding: 80px 0;
  color: #ffffff;
}

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

.page-login__faq-item {
  background: rgba(1, 116, 57, 0.1);
  border: 1px solid rgba(1, 116, 57, 0.3);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-login__faq-item:hover {
  background-color: rgba(1, 116, 57, 0.2);
}

.page-login__faq-item[open] {
  background-color: rgba(1, 116, 57, 0.3);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s ease;
}

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

.page-login__faq-question:hover {
  color: #FFFF00;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFFF00;
  transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #cccccc;
  line-height: 1.7;
}

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

.page-login__btn-secondary {
  background: #C30808; /* Custom color for Register button */
  color: #ffffff; /* WCAG AA compliant contrast for text on #C30808 */
  padding: 15px 35px;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-top: 30px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-secondary:hover {
  background-color: #e02a2a;
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__login-card {
    padding: 30px;
    max-width: 90%;
  }
  .page-login__card-title {
    font-size: 1.8em;
  }
  .page-login__form-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-login__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-login__forgot-password-link {
    order: 2;
    text-align: center;
    width: 100%;
  }
  .page-login__register-text {
    font-size: 0.9em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-login__benefit-card {
    padding: 25px;
  }
  .page-login__benefit-icon {
    max-width: 120px;
  }
  .page-login__benefit-title {
    font-size: 1.3em;
  }
  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-login__btn-secondary {
    font-size: 1.1em;
    padding: 12px 25px;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Mobile responsive for images */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
  }

  /* Mobile responsive for buttons */
  .page-login__cta-button,
  .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,
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__login-card {
    padding: 25px;
  }
  .page-login__card-title {
    font-size: 1.6em;
  }
  .page-login__form-input {
    font-size: 0.9em;
  }
  .page-login__forgot-password-link,
  .page-login__register-text {
    font-size: 0.85em;
  }
}