.page-login {
  background-color: #121212; /* Dark background from shared.css body */
  color: #ffffff; /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Fixed header offset, if not handled by shared body */
}

/* Hero Banner Section */
.page-login__hero-banner {
  background: url('[GALLERY:login_hero_bg:58vin,login,banner,abstract_light]') no-repeat center center/cover;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.page-login__hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: -1;
}

.page-login__hero-content {
  max-width: 800px;
  margin: 0 auto;
  color: #ffffff;
}

.page-login__main-heading {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Accent color for heading */
}

.page-login__sub-heading {
  font-size: 18px;
  line-height: 1.8;
  color: #f0f0f0;
}

/* Login Form Section */
.page-login__form-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-login__form-container {
  background-color: #1A202C; /* Primary brand color for form background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 500px;
  color: #ffffff;
}

.page-login__form-image-wrapper {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-login__form-title {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
  color: #FFD700; /* Accent color for form title */
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #3a4454;
  border-radius: 5px;
  background-color: #2a313e;
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: #FFD700; /* Accent color for checkbox */
}

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

.page-login__forgot-password {
  color: #FFD700; /* Accent color for link */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #ffffff;
}

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  background-color: #FFD700; /* Accent color for primary button */
  color: #1A202C; /* Dark text for accent background */
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__submit-button:hover {
  background-color: #e0b800;
  color: #000000;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  font-size: 16px;
  color: #f0f0f0;
}

.page-login__register-link {
  color: #FFD700; /* Accent color for link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #ffffff;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 20px;
  background-color: #0d0d0d; /* Slightly darker background for this section */
  color: #ffffff;
}

.page-login__benefits-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-login__benefits-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 50px;
  color: #FFD700;
}

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

.page-login__benefit-card {
  background-color: #1A202C; /* Primary brand color for card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-card img {
  width: 200px; /* Enforce minimum size for benefit icons */
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
}

.page-login__benefit-heading {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-login__benefit-description {
  font-size: 15px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 20px;
  background-color: #121212;
  color: #ffffff;
}

.page-login__faq-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-login__faq-main-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 50px;
  text-align: center;
  color: #FFD700;
}

.page-login__faq-list {
  background-color: #1A202C; /* Primary brand color for FAQ list background */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  padding: 20px;
}

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important; /* !important ensures priority, large value for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #2a313e; /* Lighter dark background for answer */
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

.page-login__faq-answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #2a313e; /* Darker background for question */
  border: 1px solid #3a4454;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-login__faq-question:hover {
  background: #3a4454;
  border-color: #4a566a;
}

.page-login__faq-question:active {
  background: #4a566a;
}

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700; /* Accent color for question text */
}

.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Accent color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

/* Call to Action Section */
.page-login__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #0d0d0d;
}

.page-login__cta-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: #1A202C; /* Primary brand color for CTA background */
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-login__cta-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-login__cta-description {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.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;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-login__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

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

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

.page-login__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__form-section {
    flex-direction: column;
    gap: 40px;
  }
  .page-login__form-image-wrapper {
    order: -1; /* Image above form on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__hero-banner {
    min-height: 300px;
    padding: 30px 15px;
  }
  .page-login__main-heading {
    font-size: 32px;
  }
  .page-login__sub-heading {
    font-size: 16px;
  }
  .page-login__form-section {
    padding: 60px 15px;
    gap: 30px;
  }
  .page-login__form-container {
    padding: 30px;
  }
  .page-login__form-title {
    font-size: 28px;
  }
  .page-login__form-label,
  .page-login__form-input,
  .page-login__checkbox-label,
  .page-login__forgot-password,
  .page-login__register-prompt,
  .page-login__register-link {
    font-size: 15px;
  }
  .page-login__submit-button {
    padding: 12px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__benefits-section {
    padding: 60px 15px;
  }
  .page-login__benefits-title,
  .page-login__faq-main-title,
  .page-login__cta-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  .page-login__benefits-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-login__benefit-heading {
    font-size: 20px;
  }
  .page-login__faq-section {
    padding: 60px 15px;
  }
  .page-login__faq-list {
    padding: 15px;
  }
  .page-login__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-login__faq-question h3 {
    font-size: 15px;
    width: calc(100% - 40px);
  }
  .page-login__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-login__faq-answer {
    padding: 0 15px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px !important;
  }
  .page-login__cta-section {
    padding: 60px 15px;
  }
  .page-login__cta-container {
    padding: 40px 20px;
  }
  .page-login__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* All images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Containers for images */
  .page-login__form-image-wrapper,
  .page-login__benefit-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Specific override for benefit-card img to enforce min size */
  .page-login__benefit-card img {
    width: 200px !important; /* Enforce minimum size for benefit icons */
    height: 200px !important;
    object-fit: contain !important;
  }
}