/* style/login.css */

/* Base styles for the login page content */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Text color for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

/* Section general styling */
.page-login__section {
  padding: 60px 20px;
  text-align: center;
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-login__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* H2, use clamp */
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
  line-height: 1.2;
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden; /* Ensure no overflow */
}

.page-login__hero-image-wrapper {
  width: 100%; /* Desktop: Ensure video container has width: 100% */
  max-width: 1200px; /* Constrain image wrapper width */
  margin-bottom: 30px; /* Space between image and content */
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-login__hero-content {
  max-width: 800px;
  z-index: 1;
  text-align: center;
}

.page-login__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* H1 title, use clamp */
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
  font-size: clamp(1.1em, 2vw, 1.4em);
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box; /* Important for button responsiveness */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

.page-login__cta-link {
  color: #EA7C07;
  text-decoration: underline;
}

.page-login__cta-link:hover {
  color: #26A9E0;
}

/* Why Login Section */
.page-login__why-login {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

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

.page-login__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-login__feature-card:hover {
  transform: translateY(-5px);
}

.page-login__feature-icon {
  width: 100%; /* Ensure images are responsive within card */
  height: auto;
  max-width: 250px; /* Max width for icons */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-login__feature-text {
  color: #e0e0e0;
}

/* How to Login Section */
.page-login__how-to-login {
  background-color: transparent; /* Use body background */
}

.page-login__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-login__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__step-number {
  font-size: 2.5em;
  font-weight: 800;
  color: #EA7C07;
  margin-bottom: 15px;
}

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

.page-login__step-text {
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-login__step-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 20px;
}

.page-login__cta-bottom {
  margin-top: 60px;
  padding: 30px;
  background-color: rgba(38, 169, 224, 0.1); /* Light blue tint */
  border-radius: 10px;
}

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

/* Troubleshooting Section */
.page-login__troubleshooting {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-login__trouble-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__trouble-title {
  font-size: 1.4em;
  color: #EA7C07;
  margin-bottom: 15px;
}

.page-login__trouble-text {
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-login__trouble-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-login__trouble-link:hover {
  color: #EA7C07;
}

/* Benefits Section */
.page-login__benefits {
  background-color: transparent;
}

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

.page-login__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-login__benefit-text {
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-login__benefit-link {
  display: inline-block;
  color: #EA7C07;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-login__benefit-link:hover {
  color: #26A9E0;
}

/* FAQ Section */
.page-login__faq {
  background-color: rgba(255, 255, 255, 0.05);
  text-align: left;
}

.page-login__faq-list {
  margin-top: 40px;
}

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: #26A9E0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-login__faq-item[open] .page-login__faq-question {
  background-color: #1f8ec4;
}

.page-login__faq-qtext {
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

/* Hide default marker for details/summary */
.page-login__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-login__faq-item summary::marker {
  display: none;
}

.page-login__faq-answer {
  padding: 20px;
  color: #e0e0e0;
  font-size: 1em;
  line-height: 1.6;
}

.page-login__faq-answer p {
  margin-bottom: 10px;
}

.page-login__faq-answer a {
  color: #EA7C07;
  text-decoration: underline;
}

.page-login__faq-answer a:hover {
  color: #26A9E0;
}

/* Conclusion Section */
.page-login__conclusion {
  background-color: transparent;
  padding-bottom: 80px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }

  .page-login__hero-title {
    font-size: 2em; /* Smaller H1 for mobile */
  }

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

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%; /* Ensure button group takes full width */
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
    font-size: 1em;
    padding: 12px 20px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

  /* Image and video responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-login__hero-image-wrapper,
  .page-login__features-grid,
  .page-login__steps-grid,
  .page-login__troubleshooting-grid,
  .page-login__benefits-list,
  .page-login__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  
  .page-login__feature-card,
  .page-login__step-card,
  .page-login__trouble-card,
  .page-login__benefit-item,
  .page-login__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__feature-icon {
    max-width: 100% !important; /* Ensure feature icons are responsive */
    width: 100% !important;
    height: auto !important;
  }
}