/* style/login.css */

/* --- General Page Styles --- */
.page-login {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Ensure consistency with body background */
  min-height: 100vh;
}

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

.page-login__dark-bg {
  background-color: #121212;
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-login__hero-section {
  padding: 60px 0;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-image: url('[GALLERY:bg:1920x1080:qq88_app,login_hero,abstract_background,secure_platform,green_tones]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-login__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: -1;
}


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

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* --- Login Card --- */
.page-login__login-card {
  background-color: #ffffff; /* Explicitly white background for login form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 450px;
  margin: 0 auto;
  text-align: left;
  color: #333333; /* Dark text for light background */
}

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

.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 #e0e0e0;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333; /* Input text color */
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #017439; /* Brand color for checkbox */
}

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

.page-login__forgot-password {
  color: #017439; /* Brand color for link */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-login__btn-login {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: #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;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}

.page-login__btn-login:hover {
  background-color: #a30606;
}

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

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

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

/* --- Features Section --- */
.page-login__features-section,
.page-login__troubleshooting-section,
.page-login__faq-section,
.page-login__download-cta {
  padding: 80px 0;
  text-align: center;
}

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 50px;
  font-weight: bold;
  color: inherit; /* Inherits from parent section */
}

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

.page-login__feature-item {
  background-color: #f9f9f9; /* Light background for feature cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-login__feature-image {
  width: 100%; /* Make it responsive within its container */
  height: auto;
  max-width: 400px; /* Example max width, adjust as needed */
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
  border-radius: 8px; /* Soften edges */
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

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

.page-login__feature-description {
  font-size: 1em;
  line-height: 1.6;
}

/* --- CTA Buttons --- */
.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure responsiveness */
}

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

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

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

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

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

.page-login__trouble-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for dark section */
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
  text-align: left;
}

.page-login__trouble-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for trouble titles */
}

.page-login__trouble-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-login__trouble-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #C30808; /* Red button for support */
  color: #FFFF00; /* Yellow font for support button */
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.page-login__trouble-link:hover {
  background-color: #a30606;
}

/* --- FAQ Section --- */
.page-login__faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-login__faq-item {
  background-color: #f9f9f9; /* Light background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px 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: #e0e0e0; /* Slightly darker background for question */
  border-bottom: 1px solid #d0d0d0;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #017439;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  color: #017439;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an 'x' or minus */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #333333;
}

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

.page-login__faq-answer p {
  margin: 0;
  line-height: 1.6;
  color: #333333;
}

/* --- Download CTA Section --- */
.page-login__download-cta {
  background-color: #017439; /* Brand color background */
  color: #ffffff;
  padding: 80px 0;
}

.page-login__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-login__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
  color: #f0f0f0;
}


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

@media (max-width: 768px) {
  .page-login__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-login__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__login-card {
    padding: 30px;
    max-width: 90%;
  }
  .page-login__card-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__features-section,
  .page-login__troubleshooting-section,
  .page-login__faq-section,
  .page-login__download-cta {
    padding: 50px 0;
  }
  .page-login__section-title,
  .page-login__cta-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-login__features-grid,
  .page-login__troubleshooting-grid {
    grid-template-columns: 1fr;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    width: 100% !important; /* Enforce full width */
  }

  /* Mobile Content Overflow Prevention */
  .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-card,
  .page-login__feature-item,
  .page-login__trouble-item,
  .page-login__faq-item,
  .page-login__download-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }

  /* Specific for buttons to ensure no overflow */
  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"],
  .page-login__btn-login,
  .page-login__trouble-link {
    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: 10px !important;
  }

  /* Video related styles (if any video exists, which it doesn't in this HTML) */
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-login__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for video section */
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 1.8em;
  }
  .page-login__card-title {
    font-size: 1.5em;
  }
  .page-login__btn-login {
    font-size: 1em;
    padding: 12px;
  }
  .page-login__section-title,
  .page-login__cta-title {
    font-size: 1.5em;
  }
  .page-login__faq-question {
    padding: 15px 20px;
  }
  .page-login__faq-title {
    font-size: 1.1em;
  }
}

/* Ensure all images meet minimum size requirements and are not small icons */
.page-login img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}