/* style/login.css */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

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

.page-login__login-form-wrapper {
  text-align: center;
  color: #FFFFFF;
  position: relative;
  z-index: 1;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Đăng nhập và đăng ký font color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  margin: 0 auto;
  color: #333333;
  text-align: left;
}

.page-login__card-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: #017439;
  text-align: center;
}

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

.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 #cccccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
  cursor: pointer;
}

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

.page-login__forgot-password {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #005f2c;
}

.page-login__submit-button {
  width: 100%;
  padding: 15px 20px;
  background: #C30808; /* Login button color */
  color: #FFFF00; /* Login button font color */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

.page-login__submit-button:hover {
  background-color: #a30707;
}

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

.page-login__register-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-login__section-heading {
  font-size: 2.8em;
  margin-bottom: 25px;
  text-align: center;
}

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

.page-login__benefits-section,
.page-login__troubleshoot-section,
.page-login__faq-section {
  padding: 80px 0;
}

.page-login__security-section,
.page-login__cta-section {
  padding: 80px 0;
  color: #FFFFFF;
}

.page-login__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

.page-login__dark-bg .page-login__section-heading,
.page-login__dark-bg .page-login__section-description {
  color: #FFFFFF;
}

.page-login__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-login__light-bg .page-login__section-heading,
.page-login__light-bg .page-login__section-description {
  color: #333333;
}

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

.page-login__feature-item,
.page-login__troubleshoot-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #333333;
}

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

.page-login__feature-title,
.page-login__troubleshoot-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

.page-login__feature-text,
.page-login__troubleshoot-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-login__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-login__security-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__security-list {
  flex: 1.5;
  min-width: 300px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-login__security-list-item {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: #FFFFFF;
}

.page-login__security-list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFFF00; /* Checkmark color */
  font-weight: bold;
  font-size: 1.2em;
}

.page-login__security-footer-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  line-height: 1.6;
}

.page-login__contact-link {
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__contact-link:hover {
  color: #FFD700;
}

.page-login__cta-content {
  text-align: center;
  padding: 60px 0;
}

.page-login__cta-button {
  display: inline-block;
  padding: 18px 35px;
  background: #C30808; /* Register button color */
  color: #FFFF00; /* Register button font color */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 30px;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__cta-button:hover {
  background-color: #a30707;
}

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

.page-login__faq-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

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

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

.page-login__faq-question h3 {
  margin: 0;
  font-size: 1em; /* Adjust to fit parent font size */
  color: #017439;
}

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

.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: #555555;
  font-size: 1em;
  line-height: 1.6;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px 25px 25px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__section-heading {
    font-size: 2.2em;
  }
  .page-login__security-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-login__security-image-wrapper,
  .page-login__security-list {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 600px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-login__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__login-card {
    padding: 30px 20px;
  }
  .page-login__card-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }
  .page-login__submit-button {
    padding: 12px 15px;
    font-size: 1em;
  }
  .page-login__register-prompt {
    margin-top: 20px;
  }

  .page-login__benefits-section,
  .page-login__troubleshoot-section,
  .page-login__faq-section,
  .page-login__security-section,
  .page-login__cta-section {
    padding: 50px 0;
  }
  .page-login__section-heading {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-login__features-grid,
  .page-login__troubleshoot-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-login__feature-item,
  .page-login__troubleshoot-item {
    padding: 25px;
  }
  .page-login__feature-title,
  .page-login__troubleshoot-title {
    font-size: 1.3em;
  }

  .page-login__security-list-item {
    font-size: 1em;
    padding-left: 25px;
    margin-bottom: 10px;
  }
  .page-login__security-list-item::before {
    font-size: 1em;
  }

  .page-login__cta-button {
    font-size: 1.1em;
    padding: 15px 25px;
  }

  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1.05em;
  }
  .page-login__faq-question h3 {
    font-size: 1em;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px 20px 20px 20px;
  }

  /* Mobile responsive for images, videos, buttons */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-form-wrapper,
  .page-login__features-grid,
  .page-login__troubleshoot-grid,
  .page-login__security-content,
  .page-login__faq-list,
  .page-login__login-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-login__submit-button,
  .page-login__cta-button,
  .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;
  }
}