/* style/login.css */

/* --- Base Styling --- */
.page-login {
  padding-top: var(--header-offset, 120px); /* Ensures content clears fixed header */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #f8f8f8; /* Light background for the page content */
}

.page-login__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000080; /* Dark blue background for hero */
  color: #ffffff;
  padding: 80px 20px 40px; /* Adjusted padding to ensure hero text is visible */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-login__hero-container {
  position: relative;
  z-index: 2; /* Ensure text is above image */
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-login__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the entire area */
  opacity: 0.3; /* Slightly transparent to let background color show */
  display: block;
}

.page-login__main-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__intro-text {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-login__action-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-login__btn {
  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, transform 0.2s ease;
  min-width: 180px;
  text-align: center;
}

.page-login__btn--primary {
  background-color: #FFD700; /* Gold button */
  color: #000080; /* Dark blue text */
  border: 2px solid #FFD700;
}

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

.page-login__btn--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

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

.page-login__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff; /* White background for content area */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  margin-top: -50px; /* Overlap with hero section for visual flow */
  position: relative;
  z-index: 10;
}

.page-login__section-title {
  font-size: 2.2em;
  color: #000080; /* Dark blue for section titles */
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
}

.page-login__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Gold underline */
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-login__paragraph {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: #444444;
  text-align: justify;
}

.page-login__paragraph a {
  color: #000080; /* Dark blue for links in paragraph */
  text-decoration: underline;
}

.page-login__paragraph a:hover {
  color: #FFD700; /* Gold on hover */
}

.page-login__image-wrapper {
  margin: 40px 0;
  text-align: center;
}

.page-login__image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Enforce minimum image width */
  min-height: 200px; /* Enforce minimum image height */
}

.page-login__ordered-list,
.page-login__unordered-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-login__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid #FFD700; /* Gold accent */
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-login__list-title {
  font-size: 1.4em;
  color: #000080; /* Dark blue for list titles */
  margin-top: 0;
  margin-bottom: 10px;
}

.page-login__list-description {
  font-size: 1em;
  color: #555555;
}

.page-login__call-to-action {
  text-align: center;
  margin: 50px 0;
  padding: 30px;
  background-color: #e6f7ff; /* Light blue background for CTA */
  border-radius: 10px;
  border: 1px solid #cceeff;
}

.page-login__call-to-action .page-login__paragraph {
  font-size: 1.2em;
  color: #000080;
  margin-bottom: 25px;
}

.page-login__btn--lg {
  padding: 18px 40px;
  font-size: 1.2em;
}

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

.page-login__faq-item {
  background-color: #f0f4f8; /* Light blue-grey for FAQ item */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px;
  background-color: #000080; /* Dark blue for FAQ question background */
  color: #ffffff;
  border: none;
  text-align: left;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: #1a1a90; /* Slightly lighter dark blue on hover */
}

.page-login__faq-question-text {
  flex-grow: 1;
}

.page-login__faq-icon {
  font-size: 1.2em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-icon {
  transform: rotate(180deg);
}

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

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 500px; /* Adjust as needed for content height */
  padding: 20px;
}

.page-login__faq-answer .page-login__paragraph {
  margin-bottom: 0; /* Remove bottom margin for paragraphs inside FAQ answer */
}

.page-login__faq-answer .page-login__btn--small {
    padding: 8px 15px;
    font-size: 0.9em;
    margin-top: 15px;
}


.page-login__final-cta {
  text-align: center;
  margin-top: 60px;
  padding: 50px 30px;
  background-image: linear-gradient(135deg, #000080, #3a00a0); /* Dark blue gradient */
  border-radius: 10px;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-login__final-cta .page-login__section-title {
  color: #FFD700; /* Gold title */
}

.page-login__final-cta .page-login__paragraph {
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-login__hero-section {
    padding: 60px 20px 30px;
  }
}

@media (max-width: 768px) {
  .page-login {
    padding-top: var(--header-offset, 120px); /* Ensure mobile header offset */
  }

  .page-login__main-title {
    font-size: 2.2em;
    line-height: 1.2;
  }

  .page-login__intro-text {
    font-size: 1.1em;
  }

  .page-login__action-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__btn {
    width: 80%; /* Make buttons wider on mobile */
    max-width: 300px;
    margin: 0 auto;
  }

  .page-login__content-area {
    padding: 30px 15px;
    margin-top: -30px; /* Adjust overlap */
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-login__paragraph {
    font-size: 0.95em;
  }

  .page-login__list-item {
    padding: 15px;
  }

  .page-login__list-title {
    font-size: 1.2em;
  }

  .page-login__image-wrapper img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum image width */
    min-height: 200px; /* Enforce minimum image height */
  }

  /* Mobile image handling - crucial for preventing horizontal scroll */
  .page-login img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }

  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__intro-text {
    font-size: 1em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
}