.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Assuming body is light from shared.css */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: #017439; /* Brand main color for hero background */
  color: #ffffff; /* White text on dark background */
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Max height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Min size requirement */
}

.page-login__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-login__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFF00; /* Login title color */
  margin-bottom: 15px;
}

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

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white */
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-sizing: border-box;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-login__form-group {
  text-align: left;
}

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  background-color: #f0f0f0;
  color: #333333;
}

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

.page-login__form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 10px;
}

.page-login__btn-login,
.page-login__btn-register {
  display: block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  flex-grow: 1;
  text-align: center;
  max-width: 180px; /* Ensure buttons don't get too wide on desktop */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-login {
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login button text color */
  border: 2px solid #C30808;
}

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

.page-login__btn-register {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register button text color */
  border: 2px solid #C30808;
}

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

.page-login__forgot-password {
  text-align: center;
  margin-top: 15px;
}

.page-login__link-forgot {
  color: #ffffff;
  text-decoration: underline;
  font-size: 0.95em;
}

.page-login__link-forgot:hover {
  color: #FFFF00;
}

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

.page-login__section-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5em;
  font-weight: bold;
  color: #017439; /* Brand main color for titles on light bg */
}

.page-login__section-description {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__section-description {
  color: #ffffff;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

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

.page-login__benefit-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 350px; /* Ensure cards have some height */
  box-sizing: border-box;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
}

.page-login__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 200px; /* Max width for benefit icons */
  margin-bottom: 20px;
  object-fit: cover;
  border-radius: 5px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

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

.page-login__benefit-text {
  font-size: 1em;
  color: #555555;
}

/* Security Section */
.page-login__security-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff;
}

.page-login__security-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-login__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__security-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-login__security-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-login__security-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 5px solid #FFFF00; /* Accent color */
}

.page-login__security-item:last-child {
  margin-bottom: 0;
}

.page-login__security-list-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #FFFF00; /* Accent color for titles */
}

.page-login__security-list-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-login__trouble-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  box-sizing: border-box;
}

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

.page-login__trouble-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-login__trouble-link {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Ensure link button is responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* CTA Section */
.page-login__cta-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

.page-login__btn-register-cta {
  display: inline-block;
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register button text color */
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 20px;
  max-width: 300px; /* Max width for CTA button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-register-cta:hover {
  background-color: #e02020;
  transform: translateY(-2px);
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-login__faq-item {
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden; /* For details tag */
}

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

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom: 1px solid #017439;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: #017439;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: "−";
}

.page-login__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
  border-top: none;
}

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

/* Specific details tag styling for FAQ */
.page-login__faq-item summary {
  list-style: none; /* Remove default marker */
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

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

  .page-login__benefits-grid,
  .page-login__troubleshooting-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-login__security-content {
    flex-direction: column;
    text-align: center;
  }
  
  .page-login__security-image-wrapper {
    min-width: unset;
  }

  .page-login__security-list {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-login__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    padding-bottom: 30px;
  }

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

  .page-login__hero-image {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em); /* Use clamp for H1 */
    margin-bottom: 10px;
  }

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

  .page-login__login-form-wrapper {
    padding: 20px;
    max-width: 100%;
    width: calc(100% - 30px) !important; /* Account for padding */
    margin: 0 15px;
  }

  /* Buttons and Button Containers */
  .page-login__form-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

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

  .page-login__cta-section .page-login__btn-register-cta {
    max-width: 100% !important;
    width: calc(100% - 30px) !important; /* Account for padding */
    margin: 20px 15px 0 15px !important;
    padding: 12px 20px !important;
    font-size: 1.1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Sections & Containers */
  .page-login__container {
    padding: 30px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* Generic Images and Containers */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size on mobile */
    min-height: 200px !important; /* Ensure min size on mobile */
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__benefits-grid,
  .page-login__troubleshooting-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Benefits Section */
  .page-login__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__benefit-card {
    padding: 20px;
    min-height: unset;
  }
  
  .page-login__benefit-icon {
    max-width: 150px;
    min-width: 200px !important; /* Min size on mobile */
    min-height: 200px !important; /* Min size on mobile */
  }

  /* Security Section */
  .page-login__security-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-login__security-image {
    max-width: 100%;
    min-width: 200px !important; /* Min size on mobile */
    min-height: 200px !important; /* Min size on mobile */
  }

  .page-login__security-item {
    padding: 15px;
    margin-bottom: 15px;
  }

  /* Troubleshooting Section */
  .page-login__troubleshooting-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__trouble-card {
    padding: 20px;
    min-height: unset;
  }

  .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;
  }

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

  .page-login__faq-toggle {
    font-size: 1.2em;
  }

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