/* style/login.css */

/* Base styles for page-login */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
}

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

.page-login__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 60px 0;
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-login__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-login__subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

/* Hero Section */
.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-login__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for main title */
  line-height: 1.2;
}

.page-login__description {
  font-size: 1.3em;
  margin-bottom: 30px;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
  text-align: center;
}

.page-login__btn-primary {
  background-color: #C30808; /* Custom login color */
  color: #FFFF00; /* Custom login font color */
  border: 2px solid #C30808;
}

.page-login__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-login__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

/* Form Section */
.page-login__form-section {
  padding: 80px 0;
}

.page-login__form {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #333333;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
}

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

.page-login__forgot-password-link {
  color: #017439;
  text-decoration: none;
  font-size: 0.95em;
}

.page-login__forgot-password-link:hover {
  text-decoration: underline;
}

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

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

.page-login__checkbox-label {
  font-size: 0.95em;
  color: #555;
}

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  background-color: #C30808; /* Custom login color */
  color: #FFFF00; /* Custom login font color */
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

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

.page-login__register-link:hover {
  text-decoration: underline;
}

/* Why hi88823 Section */
.page-login__why-hi88823-section {
  padding: 80px 0;
}

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

.page-login__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
  transition: transform 0.3s ease;
}

.page-login__feature-card:hover {
  transform: translateY(-10px);
}

.page-login__feature-icon {
  width: 100%; /* Ensure image takes full width */
  height: auto;
  max-width: 250px; /* Limit icon size if too large */
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-login__feature-description {
  font-size: 1em;
  color: #555;
}

/* Troubleshoot Section */
.page-login__troubleshoot-section {
  padding: 80px 0;
}

.page-login__troubleshoot-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-login__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__list-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
}

.page-login__list-description {
  color: #555;
}

.page-login__link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-login__link:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
}

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

.page-login__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.page-login__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  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;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-login__faq-answer p {
  margin: 0;
  color: #555;
}

/* Bottom CTA Section */
.page-login__cta-bottom-section {
  text-align: center;
  padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__description {
    font-size: 1em;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100%;
    max-width: 300px; /* Limit button width for mobile */
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 1em;
    max-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__form {
    padding: 30px;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__subtitle {
    font-size: 1em;
  }
  .page-login__features-grid {
    grid-template-columns: 1fr;
  }
  .page-login__feature-icon {
    max-width: 150px;
  }
  .page-login__list-item {
    padding: 20px;
  }
  .page-login__faq-question {
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 15px 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image 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__why-hi88823-section,
  .page-login__troubleshoot-section,
  .page-login__faq-section,
  .page-login__cta-bottom-section,
  .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;
  }
  .page-login__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__description {
    font-size: 0.9em;
  }
  .page-login__form {
    padding: 20px;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__subtitle {
    font-size: 0.9em;
  }
  .page-login__faq-question h3 {
    font-size: 1em;
  }
}