.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Ensure it respects shared.css or defaults to white */
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden;
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  margin: 0 auto;
}

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

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

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-width: 450px;
  margin: 0 auto;
  color: #333333;
  text-align: left;
}

.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 #ccc;
  border-radius: 5px;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
}

.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: 16px;
  height: 16px;
}

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

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

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

.page-login__btn-login {
  background-color: #EA7C07;
  color: #ffffff;
  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%;
  box-sizing: border-box;
}

.page-login__btn-login:hover {
  background-color: #d16e06;
}

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  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__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-login__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

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

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

.page-login__benefit-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

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

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

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

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

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

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

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

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

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-login__security-text-block {
  flex: 1;
}

.page-login__security-section .page-login__section-title {
  color: #ffffff;
  text-align: left;
}

.page-login__security-section .page-login__section-description {
  color: #f0f0f0;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-login__security-list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-login__security-list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ffffff;
  font-weight: bold;
}

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

.page-login__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* 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;
  margin-top: 40px;
}

.page-login__troubleshooting-card {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  color: #333333;
}

.page-login__troubleshooting-card .page-login__card-title {
  color: #EA7C07;
}

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

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

/* Mobile Section */
.page-login__mobile-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-login__mobile-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-login__mobile-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-login__mobile-text-block {
  flex: 1;
}

.page-login__mobile-section .page-login__section-title {
  color: #ffffff;
  text-align: left;
}

.page-login__mobile-section .page-login__section-description {
  color: #f0f0f0;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-login__mobile-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-login__mobile-features li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-login__mobile-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ffffff;
  font-weight: bold;
}

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

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #333333;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

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

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

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

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  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 accommodate content */
  padding: 20px;
  padding-top: 0;
}

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

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

.page-login__cta-register-section .page-login__section-title {
  color: #ffffff;
}

.page-login__cta-register-section .page-login__section-description {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-login__cta-register-section .page-login__btn-primary {
  background-color: #ffffff;
  color: #EA7C07;
  border-color: #ffffff;
}

.page-login__cta-register-section .page-login__btn-primary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

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

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

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

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

  .page-login__security-content,
  .page-login__mobile-content {
    flex-direction: column;
    text-align: center;
  }

  .page-login__security-section .page-login__section-title,
  .page-login__mobile-section .page-login__section-title {
    text-align: center;
  }

  .page-login__security-section .page-login__section-description,
  .page-login__mobile-section .page-login__section-description {
    text-align: center;
  }

  .page-login__security-image-wrapper,
  .page-login__mobile-image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 500px;
  }

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

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

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

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

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

  .page-login__benefits-grid,
  .page-login__troubleshooting-grid {
    grid-template-columns: 1fr;
  }

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

  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100%;
  }

  /* Mobile responsiveness for images, videos, buttons and containers */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-form-wrapper,
  .page-login__benefits-grid,
  .page-login__troubleshooting-grid,
  .page-login__cta-buttons,
  .page-login__faq-list,
  .page-login__security-content,
  .page-login__mobile-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific padding for hero section on mobile to ensure header offset */
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .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 {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

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

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

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

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

  .page-login__login-form-wrapper {
    padding: 20px;
  }

  .page-login__btn-login {
    font-size: 1em;
  }

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

  .page-login__card-title {
    font-size: 1.3em;
  }

  .page-login__security-list-item,
  .page-login__mobile-features li {
    font-size: 1em;
  }
}

/* Color Contrast Fixes (if needed, though designed for contrast) */
.page-login__dark-bg {
  color: #ffffff;
  background: #26A9E0;
}

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

.page-login__login-form-wrapper.page-login__light-bg {
  background: rgba(255, 255, 255, 0.95);
  color: #333333;
}

.page-login__btn-login {
  background-color: #EA7C07;
  color: #ffffff;
}

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

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

.page-login__cta-register-section .page-login__btn-primary {
  background-color: #ffffff;
  color: #EA7C07;
}