.page-login {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#000000) */
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-login__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: -100px; /* Overlap image slightly for visual effect, but not text on image */
  padding: 0 20px;
  background-color: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  border-radius: 8px;
  padding: 30px;
}

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

.page-login__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-login__btn-primary {
  background-color: #EA7C07; /* Custom color for Login */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-login__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Brand color */
  border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-login__form-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background for form section */
  color: #333333; /* Dark text for light background */
}

.page-login__container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.page-login__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #000000;
  margin-bottom: 20px;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 40px;
}

.page-login__login-form {
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

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

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

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

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.95em;
}

.page-login__checkbox-label {
  display: flex;
  align-items: center;
  color: #555555;
}

.page-login__checkbox {
  margin-right: 8px;
}

.page-login__forgot-password {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-login__form-submit-btn {
  width: 100%;
  padding: 15px;
  background-color: #EA7C07; /* Custom color for Login */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-login__form-submit-btn:hover {
  background-color: #d46f06;
}

.page-login__register-prompt {
  margin-top: 30px;
  font-size: 1em;
  color: #555555;
}

.page-login__register-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__features-section {
  padding: 80px 20px;
  background-color: #26A9E0; /* Brand color as dark background */
  color: #ffffff; /* Light text for dark background */
  text-align: center;
}

.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 brand color */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__feature-icon {
  width: 200px; /* Min size 200px */
  height: 200px; /* Min size 200px */
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
  display: block; /* Ensure it behaves as a block element for width/height */
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-login__faq-section {
  padding: 80px 20px;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

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

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

.page-login__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
  background-color: #eaf6fa; /* Light blue background for summary */
  transition: background-color 0.3s ease;
}

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

.page-login__faq-item summary:hover {
  background-color: #dceef5;
}

.page-login__faq-qtext {
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
}

.page-login__faq-answer {
  padding: 20px 25px;
  background-color: #ffffff;
  color: #555555;
  line-height: 1.6;
  border-top: 1px solid #eeeeee;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-content {
    margin-top: -80px;
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-login__hero-description {
    font-size: 1em;
  }

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

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__form-submit-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__cta-buttons,
  .page-login__form-section,
  .page-login__features-section,
  .page-login__faq-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  .page-login__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body already has padding-top */
  }

  .page-login__hero-content {
    margin-top: -60px;
    padding: 20px;
  }

  .page-login__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

  .page-login__login-form {
    padding: 30px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

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

  .page-login__hero-image-wrapper,
  .page-login__feature-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-login__feature-icon {
    width: 200px !important;
    height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-login__hero-content {
    margin-top: -40px;
  }
  .page-login__hero-section {
    padding-bottom: 30px;
  }
  .page-login__form-section,
  .page-login__features-section,
  .page-login__faq-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* Contrast Fixes (if needed) - ensure text is visible on background */
.page-login__dark-bg {
  color: #ffffff; /* Deep dark background, so light text */
}

.page-login__light-bg {
  color: #333333; /* Light background, so dark text */
}