.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color, #FFFFFF);
}

.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  text-align: center;
  background-color: #FFFFFF;
  color: #333333;
  position: relative;
  overflow: hidden;
}

.page-login__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
  z-index: 1;
}

.page-login__main-title {
  font-size: 2.8em;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-login__form-container {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid #e0e0e0;
}

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

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

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

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

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

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

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

.page-login__checkbox-label {
  font-size: 0.95em;
  color: #555555;
}

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

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

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
}

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

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

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

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

.page-login__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
  z-index: 0;
}

.page-login__benefits-section,
.page-login__security-section,
.page-login__troubleshoot-section,
.page-login__faq-section,
.page-login__cta-section {
  padding: 80px 20px;
  text-align: center;
}

.page-login__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-login__section-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: inherit; /* Inherits color from parent section */
}

.page-login__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 50px;
  color: inherit;
}

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

.page-login__benefit-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-login__benefit-icon {
  width: 100%; /* Ensure large images are used */
  height: auto;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 5px;
}

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

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

.page-login__security-grid,
.page-login__troubleshoot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.page-login__security-item,
.page-login__troubleshoot-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-login__security-heading,
.page-login__troubleshoot-heading {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-login__security-text,
.page-login__troubleshoot-text {
  font-size: 1em;
  color: #555555;
}

.page-login__security-cta {
  margin-top: 50px;
}

.page-login__security-cta-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: inherit;
}

.page-login__troubleshoot-link {
  display: inline-block;
  margin-top: 15px;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eeeeee;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-heading {
  font-size: 1.15em;
  color: #26A9E0;
  margin: 0;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-login__cta-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-login__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-login__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-primary {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid transparent;
}

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

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7fb3;
  transform: translateY(-2px);
}

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

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

@media (max-width: 768px) {
  .page-login__hero-section {
    flex-direction: column;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-login__hero-content {
    margin-bottom: 30px;
  }

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

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

  .page-login__form-container {
    padding: 25px;
  }

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

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

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

  .page-login__benefits-grid,
  .page-login__security-grid,
  .page-login__troubleshoot-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__benefit-card,
  .page-login__security-item,
  .page-login__troubleshoot-item {
    padding: 25px;
  }

  .page-login__benefit-title,
  .page-login__security-heading,
  .page-login__troubleshoot-heading {
    font-size: 1.2em;
  }

  .page-login__faq-question {
    padding: 15px 20px;
  }

  .page-login__faq-heading {
    font-size: 1.05em;
  }

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

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

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

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

  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important; /* Keep hero image full height if possible for effect */
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-image-wrapper,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__troubleshoot-section,
  .page-login__faq-section,
  .page-login__cta-section,
  .page-login__form-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }

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

  .page-login__cta-title {
    font-size: 1.8em;
  }

  .page-login__form-input {
    font-size: 0.9em;
  }

  .page-login__submit-button {
    font-size: 1em;
    padding: 12px;
  }
}