:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-button-color: #EA7C07;
  --black-color: #000000;
  --background-color: #FFFFFF; /* Assuming default body background is white from shared.css */
  --text-dark: #333333;
  --text-light: #ffffff;
}

/* Base styles for the page-login scope */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--background-color);
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-login__section {
  padding: 60px 0;
  text-align: center;
}

.page-login__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-login__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

/* HERO Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--primary-color); /* Add a background color for the section itself */
  color: var(--text-light);
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-login__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

.page-login__btn-primary {
  background: var(--login-button-color); /* Specific login color */
  color: var(--text-light);
  border: 2px solid var(--login-button-color);
}

.page-login__btn-primary:hover {
  background: #c76706; /* Manual darken */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-login__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.page-login__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.15); /* Light background for dark section */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-light);
}

.page-login__feature-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block; /* Ensure images are block level for max-width to work */
  margin-left: auto;
  margin-right: auto;
}

.page-login__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-login__feature-description {
  font-size: 16px;
  color: var(--text-light);
}

/* Guide Section */
.page-login__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__step-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  position: relative;
  padding-top: 70px;
}

.page-login__step-number {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primary-color);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

.page-login__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-login__step-description {
  font-size: 16px;
  color: var(--text-dark);
}

.page-login__cta-center {
  margin-top: 50px;
}

/* Troubleshoot Section */
.page-login__troubleshoot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__troubleshoot-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-login__troubleshoot-heading {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-login__troubleshoot-text {
  font-size: 16px;
  color: var(--text-dark);
}

/* Security Tips Section */
.page-login__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__tip-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-login__tip-heading {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-login__tip-text {
  font-size: 16px;
  color: var(--text-dark);
}

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

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--primary-color); /* Question text color */
}
details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}
details.page-login__faq-item summary.page-login__faq-question:hover {
  background: #f5f5f5;
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: var(--text-dark);
}

/* Contact Section */
.page-login__contact-section {
  background-color: #f5f5f5;
  padding: 80px 0;
}

.page-login__contact-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

.page-login__contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
  .page-login__container {
    padding: 0 15px;
  }

  .page-login__section {
    padding: 40px 0;
  }

  .page-login__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  /* HERO Section */
  .page-login__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 40px;
  }

  .page-login__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-login__hero-description {
    font-size: 16px;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-login__cta-button {
    width: 100% !important; /* Ensure full width */
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  
  /* Images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-login__hero-image,
  .page-login__feature-item,
  .page-login__guide-steps,
  .page-login__troubleshoot-grid,
  .page-login__tips-grid,
  .page-login__faq-list,
  .page-login__contact-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-login__feature-item {
    padding: 20px;
  }

  .page-login__feature-title,
  .page-login__step-title,
  .page-login__troubleshoot-heading,
  .page-login__tip-heading {
    font-size: 20px;
  }
  
  details.page-login__faq-item summary.page-login__faq-question { padding: 15px; }
  .page-login__faq-qtext { font-size: 15px; }
  .page-login__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 15px 15px;
  }

  .page-login__contact-description {
    font-size: 16px;
  }
}