/* style/login.css */

/* --- General Page Styles --- */
.page-login {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Assuming body is light, this ensures consistency */
}

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

.page-login__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Primary brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

/* --- Hero Section --- */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding for header, generous bottom */
  background-color: #FFFFFF; /* Ensure white background if image doesn't cover all */
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  max-height: 500px; /* Limit height for aesthetic */
  object-fit: cover;
  display: block; /* Remove extra space below image */
  margin-bottom: 40px; /* Space between image and content */
}

.page-login__hero-content {
  max-width: 800px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-login__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

/* --- Login Form --- */
.page-login__login-form-container {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
}

.page-login__input {
  width: 100%;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #EA7C07; /* Custom login color */
  color: #FFFFFF;
  text-align: center;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

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

.page-login__form-links {
  margin-top: 20px;
  text-align: center;
}

.page-login__forgot-password,
.page-login__register-link {
  color: #26A9E0; /* Primary brand color for links */
  text-decoration: none;
  font-size: 0.95em;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover,
.page-login__register-link:hover {
  color: #1a7bb5;
  text-decoration: underline;
}

/* --- Features Section --- */
.page-login__features-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Primary brand color background */
  color: #FFFFFF; /* White text for dark background */
}

.page-login__features-section .page-login__section-title {
  color: #FFFFFF; /* White title on dark background */
}

.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: rgba(255, 255, 255, 0.1); /* Slightly transparent white */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  min-height: 400px; /* Ensure cards have minimum height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align content to top */
  align-items: center;
  box-sizing: border-box;
}

.page-login__feature-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-login__feature-icon {
  width: 200px; /* Min size 200px */
  height: auto;
  max-width: 100%;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

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

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

.page-login__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #FFFFFF;
  color: #26A9E0; /* Primary brand color for text */
  text-align: center;
  border: 2px solid #FFFFFF;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: bold;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #1a7bb5;
}

/* --- FAQ Section --- */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background for FAQ */
  color: #333333;
}

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #FFFFFF;
  border-bottom: 1px solid #e0e0e0; /* Separator for question */
}

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom: none; /* No border when open */
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
}

.page-login__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #555555;
}

/* --- Responsive Design --- */

/* Tablet and Mobile adjustments */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }

  .page-login__section-title {
    font-size: 2em;
  }

  .page-login__hero-image {
    max-height: 400px;
  }
}

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

  .page-login__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-login__hero-image {
    max-height: 300px;
    margin-bottom: 30px;
  }

  .page-login__hero-content {
    padding: 0 15px;
  }

  .page-login__main-title {
    font-size: clamp(1.6em, 6vw, 2.2em) !important;
    margin-bottom: 10px;
  }

  .page-login__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-login__login-form-container {
    padding: 20px;
  }

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

  .page-login__input {
    padding: 10px;
    font-size: 0.9em;
  }

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

  .page-login__form-links {
    flex-direction: column;
    gap: 10px;
  }
  .page-login__forgot-password,
  .page-login__register-link {
    display: block;
    margin: 5px 0;
    font-size: 0.9em;
  }

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

  .page-login__features-section,
  .page-login__faq-section {
    padding: 40px 0;
  }

  .page-login__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__feature-card {
    padding: 20px;
    min-height: unset; /* Allow height to adjust */
  }
  
  .page-login__feature-icon {
    width: 200px !important; /* Min size enforcement */
    height: auto !important;
    max-width: 100% !important;
  }

  .page-login__cta-bottom {
    margin-top: 40px;
  }

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

  .page-login__faq-answer {
    padding: 0 15px 15px 15px;
  }

  /* 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__features-section,
  .page-login__faq-section,
  .page-login__login-form-container,
  .page-login__form-group,
  .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;
  }

  .page-login__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Ensure no horizontal scroll for elements with images/buttons */
  .page-login__features-grid {
    overflow-x: hidden;
  }
  .page-login__feature-card {
    width: 100%; /* Ensure cards fill their space */
  }
}

/* Ensure content area images are not smaller than 200px */
.page-login__feature-icon {
  min-width: 200px;
  min-height: 200px;
}