/* style/login.css */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Explicitly set for page content area */
}

/* Fixed header offset - apply to the main content wrapper or hero */
.page-login__hero-section {
  padding-top: var(--header-offset, 120px);
  padding-bottom: 60px;
}

/* Container for consistent spacing */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Background color handling for sections based on light/dark */
.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-login__dark-bg {
  background-color: #017439; /* Main brand color */
  color: #ffffff;
}

/* Main Title */
.page-login__main-title {
  font-size: 3.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Brand color for main title */
  line-height: 1.2;
}

.page-login__intro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Form Wrapper */
.page-login__form-wrapper {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto 60px;
  box-sizing: border-box;
}

/* Login Form */
.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-login__form-group {
  display: flex;
  flex-direction: column;
}

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

.page-login__form-input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  color: #333333;
}

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}

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

.page-login__checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

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

.page-login__forgot-password {
  color: #017439; /* Brand color */
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__btn-primary {
  background-color: #C30808; /* Custom login button color */
  color: #FFFF00; /* Custom login button font color */
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%; /* Ensure button fills width */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-login__register-link {
  color: #C30808; /* Custom register link color */
  text-decoration: none;
  font-weight: bold;
}

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

/* General Section Styling */
.page-login__why-login-section,
.page-login__guide-section,
.page-login__issues-section,
.page-login__safety-section,
.page-login__faq-section {
  padding: 60px 0;
}

.page-login__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.2;
}

/* Feature Grid */
.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 on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff; /* Text color for dark background */
}

.page-login__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size for display */
  min-height: 200px; /* Enforce minimum size for display */
}

.page-login__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.3;
}

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

/* Guide List */
.page-login__guide-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-login__guide-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #017439; /* Brand accent */
}

.page-login__guide-step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439; /* Brand color for step titles */
  line-height: 1.3;
}

.page-login__guide-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555;
}

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

.page-login__issue-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.page-login__issue-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.3;
}

.page-login__issue-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #f0f0f0;
}

.page-login__btn-secondary {
  background-color: #017439; /* Brand color */
  color: #ffffff;
  padding: 12px 20px;
  border: 2px solid #ffffff; /* White border for contrast */
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Safety Section */
.page-login__safety-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-login__safety-text {
  flex: 1;
  min-width: 300px;
}

.page-login__safety-subtitle {
  font-size: 1.8em;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #017439; /* Brand color for subtitles */
  line-height: 1.3;
}

.page-login__safety-description {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #555;
}

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

.page-login__safety-description a:hover {
  text-decoration: underline;
}

.page-login__safety-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-height: 200px; /* Enforce minimum size for display */
}

/* FAQ Section */
.page-login__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.page-login__faq-item[open] .page-login__faq-question {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
  color: #ffffff;
}

.page-login__faq-question::-webkit-details-marker {
  display: none;
}

.page-login__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #FFFF00; /* Custom font color for toggle */
}

.page-login__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

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

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }
  .page-login__container {
    padding: 0 15px;
  }
  .page-login__main-title {
    font-size: 2.2em;
    padding-top: 20px;
  }
  .page-login__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__form-wrapper {
    padding: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-login__features-grid,
  .page-login__guide-list,
  .page-login__issues-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__feature-card,
  .page-login__guide-item,
  .page-login__issue-card {
    padding: 25px;
  }
  .page-login__feature-icon {
    max-width: 150px;
    min-width: 200px; /* Maintain minimum display size if possible */
  }
  .page-login__feature-title,
  .page-login__guide-step-title,
  .page-login__issue-title,
  .page-login__safety-subtitle {
    font-size: 1.3em;
  }
  .page-login__safety-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-login__safety-image {
    max-width: 100%;
    min-width: 200px; /* Maintain minimum display size if possible */
  }
  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-login__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Image responsiveness for mobile */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form-wrapper,
  .page-login__feature-card,
  .page-login__guide-item,
  .page-login__issue-card,
  .page-login__safety-content,
  .page-login__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  /* Buttons responsiveness for mobile */
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    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,
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-login__cta-buttons {
    flex-direction: column;
  }
}

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