/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

/* Header offset for fixed header */
.page-login {
  padding-top: var(--header-offset, 120px);
}

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

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

/* Light background sections */
.page-login__light-bg {
  background-color: #FFFFFF; /* Custom background color */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-login__main-title {
  font-size: 3em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom font color for login/register */
}

.page-login__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 30px;
  color: inherit; /* Inherit color from parent section */
}

.page-login__description {
  font-size: 1.2em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-login__highlight {
  color: #FFFF00; /* Custom font color for login/register */
  font-weight: bold;
}

/* CTA Buttons */
.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.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;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure responsiveness */
}

.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: #FFFFFF;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

/* Video Section */
.page-login__video-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-login__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 800px; /* Limit video width */
  margin: 0 auto 20px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.page-login__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  max-width: 100%;
  height: auto;
  cursor: pointer; /* Indicate clickability */
}

.page-login__video-description {
  text-align: center;
  font-style: italic;
  margin-top: 20px;
}

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

.page-login__feature-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 450px; /* Ensure cards have similar height */
}

.page-login__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

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

.page-login__feature-card p {
  font-size: 1em;
  color: #555555;
  flex-grow: 1; /* Allow paragraph to grow */
}

/* Secure Methods */
.page-login__method-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-login__method-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  min-height: 200px;
}

.page-login__method-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom font color */
}

.page-login__method-item p {
  font-size: 1em;
}

/* Troubleshooting */
.page-login__trouble-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__trouble-card {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #333333;
}

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

/* Mobile App Section */
.page-login__app-features {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-login__app-image {
  flex: 1;
  min-width: 300px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-login__app-benefits {
  flex: 1;
  list-style: none;
  padding: 0;
  font-size: 1.1em;
  color: #ffffff;
  min-width: 300px;
}

.page-login__app-benefits li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.page-login__app-benefits li::before {
  content: '✔';
  color: #FFFF00; /* Custom highlight color */
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
}

.page-login__faq-item {
  background-color: #f9f9f9;
  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;
  cursor: pointer;
  background-color: #FFFFFF;
  border-bottom: 1px solid #eee;
}

.page-login__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  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); /* Change to X or rotate for active state */
}

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

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

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

/* Contact Section */
.page-login__contact-section {
  text-align: center;
}

/* Links */
.page-login a {
  color: #FFFF00; /* Custom highlight color */
  text-decoration: underline;
}

.page-login a:hover {
  text-decoration: none;
  color: #f0f0f0;
}

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

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

  /* Ensure main content padding is applied on mobile */
  .page-login {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-login__container {
    padding: 0 15px;
  }

  .page-login__main-title {
    font-size: 2em;
    padding: 0 10px;
  }

  .page-login__section-title {
    font-size: 1.8em;
    padding: 0 10px;
  }

  .page-login__description {
    font-size: 1em;
    padding: 0 10px;
  }

  /* CTA Buttons */
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Images responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Image containers responsiveness */
  .page-login__feature-card,
  .page-login__trouble-card,
  .page-login__faq-item,
  .page-login__app-features,
  .page-login__video-section,
  .page-login__content-area,
  .page-login__secure-methods,
  .page-login__troubleshooting,
  .page-login__mobile-app,
  .page-login__faq-section,
  .page-login__contact-section,
  .page-login__hero-section,
  .page-login__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific padding for sections that have it */
  .page-login__hero-section,
  .page-login__dark-section,
  .page-login__light-bg {
    padding-left: 0;
    padding-right: 0;
  }

  /* Video responsiveness */
  .page-login__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    height: 0 !important;
    margin: 0 auto 20px auto !important;
  }

  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important; /* Fill parent wrapper */
  }

  /* App features layout */
  .page-login__app-features {
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
  }

  .page-login__app-image {
    min-width: unset;
    margin-bottom: 30px;
  }

  .page-login__app-benefits {
    min-width: unset;
    padding: 0 10px;
  }

  .page-login__feature-card,
  .page-login__method-item,
  .page-login__trouble-card {
    min-height: unset; /* Allow cards to adjust height */
    padding: 20px;
  }

  .page-login__feature-image {
    height: auto; /* Allow image to scale */
  }

  /* Content area images minimum size */
  .page-login__content-area img,
  .page-login__secure-methods img,
  .page-login__troubleshooting img,
  .page-login__mobile-app img,
  .page-login__faq-section img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

/* Ensure no filter on images */
.page-login img {
  filter: none !important;
}

/* Links within text */
.page-login p a,
.page-login li a {
  color: #017439; /* Brand primary color for links in light sections */
  text-decoration: underline;
}

.page-login__dark-section p a,
.page-login__dark-section li a {
  color: #FFFF00; /* Custom highlight for links in dark sections */
  text-decoration: underline;
}

.page-login p a:hover,
.page-login li a:hover,
.page-login__dark-section p a:hover,
.page-login__dark-section li a:hover {
  text-decoration: none;
}