/* Base styles for the login page */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly set for clarity if shared.css doesn't */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: #f8f8f8;
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-login__hero-image {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Desktop: cover to fill space */
  object-position: center;
}

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

.page-login__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 600px; /* Limit max width for button group */
  margin: 0 auto;
}

.page-login__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button is responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

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

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

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

.page-login__btn-secondary:hover {
  background-color: #e0f4ff;
  color: #1e87b7;
  border-color: #1e87b7;
}

.page-login__btn--large {
  min-width: 200px;
  padding: 16px 35px;
  font-size: 20px;
}

/* General Section Styles */
.page-login__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%; /* Ensure container takes full width */
}

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

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

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__section-description,
.page-login__dark-bg .page-login__step-title,
.page-login__dark-bg .page-login__step-text,
.page-login__dark-bg .page-login__promo-title,
.page-login__dark-bg .page-login__promo-text {
  color: #ffffff;
}

/* Features Section */
.page-login__features-section,
.page-login__how-to-login,
.page-login__security-section,
.page-login__troubleshooting-section,
.page-login__promotions-section,
.page-login__download-app-section,
.page-login__faq-section,
.page-login__final-cta {
  padding: 80px 0;
}

.page-login__features-grid,
.page-login__security-grid,
.page-login__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-login__feature-item,
.page-login__security-item,
.page-login__promo-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-login__feature-item:hover,
.page-login__security-item:hover,
.page-login__promo-item:hover {
  transform: translateY(-5px);
}

.page-login__feature-item img,
.page-login__security-item img,
.page-login__promo-item img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
}

.page-login__feature-title,
.page-login__security-title,
.page-login__promo-title {
  font-size: 22px;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-login__feature-text,
.page-login__security-text,
.page-login__promo-text {
  font-size: 16px;
  color: #555;
}

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

.page-login__step-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px 20px;
  position: relative;
  transition: background-color 0.3s ease;
}

.page-login__step-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-login__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #EA7C07;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-login__step-text {
  font-size: 16px;
  color: #e0e0e0;
}

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

/* Troubleshooting Section */
.page-login__troubleshoot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-login__troubleshoot-item {
  background-color: #ffffff;
  border-left: 5px solid #26A9E0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.page-login__troubleshoot-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-login__troubleshoot-title {
  font-size: 20px;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-login__troubleshoot-text {
  font-size: 16px;
  color: #555;
}

/* Download App Section */
.page-login__download-app-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.page-login__download-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-login__download-content .page-login__section-title,
.page-login__download-content .page-login__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-login__app-links {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-login__download-image {
  flex-shrink: 0;
  max-width: 400px; /* Adjust max-width for image */
  width: 100%;
}

.page-login__download-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
}

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px 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;
}
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;
  color: #333333;
}
.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #26A9E0;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  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: #555;
  font-size: 16px;
}

/* Final CTA Section */
.page-login__final-cta {
  padding: 60px 0;
  text-align: center;
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }

  .page-login__hero-image {
    max-height: 300px;
  }

  .page-login__hero-image img {
    object-fit: contain !important; /* Mobile: contain to show full image */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    width: 100% !important;
    height: auto !important;
  }

  .page-login__hero-content {
    padding: 20px 15px 0;
  }

  .page-login__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }

  .page-login__description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-login__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__btn {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-login__section-title {
    font-size: clamp(20px, 6vw, 32px);
    margin-bottom: 15px;
  }

  .page-login__section-description {
    font-size: 15px;
    margin: 0 auto 30px;
  }

  .page-login__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__features-section,
  .page-login__how-to-login,
  .page-login__security-section,
  .page-login__troubleshooting-section,
  .page-login__promotions-section,
  .page-login__download-app-section,
  .page-login__faq-section,
  .page-login__final-cta {
    padding: 40px 0;
  }

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

  .page-login__feature-item,
  .page-login__security-item,
  .page-login__promo-item,
  .page-login__step-item,
  .page-login__troubleshoot-item {
    padding: 20px;
  }

  .page-login__feature-item img,
  .page-login__security-item img,
  .page-login__promo-item img {
     /* Smaller image height on mobile */
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-login__feature-title,
  .page-login__security-title,
  .page-login__promo-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .page-login__feature-text,
  .page-login__security-text,
  .page-login__promo-text,
  .page-login__step-text,
  .page-login__troubleshoot-text {
    font-size: 15px;
  }

  .page-login__step-number {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin-bottom: 15px;
  }

  .page-login__step-title {
    font-size: 18px;
  }

  .page-login__download-app-flex {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-login__download-content {
    text-align: center;
  }

  .page-login__download-content .page-login__section-title,
  .page-login__download-content .page-login__section-description {
    text-align: center;
  }

  .page-login__app-links {
    justify-content: center;
    flex-direction: column; /* Stack app links */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__app-links .page-login__btn {
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-login__download-image {
    max-width: 250px;
    margin: 0 auto;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__download-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}