/* style/login.css */

/* Base styles */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

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

.page-login__dark-bg {
  background-color: #000000; /* Use black background for dark sections */
  color: #ffffff;
}

.page-login__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for titles */
}

.page-login__description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 10px 20px 80px; /* Small top padding, larger bottom padding */
  color: #ffffff;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

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

.page-login__hero-content {
  position: relative; /* Ensure content is above image but not overlapping */
  z-index: 10;
  max-width: 900px;
  padding: 0 20px;
}

.page-login__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #26A9E0; /* Brand color for H1 */
  margin-bottom: 20px;
  /* No fixed font-size, rely on clamp if needed, otherwise responsive CSS */
}

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

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.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;
  border-color: #d16b06;
}

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

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

/* Reason Section */
.page-login__reason-section .page-login__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  color: #333333; /* Dark text for light background */
}

.page-login__reason-section .page-login__grid-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-login__feature-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-login__feature-description {
  font-size: 1em;
  color: #555555;
}

/* Guide Section */
.page-login__guide-section .page-login__process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-login__guide-section .page-login__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  color: #ffffff;
}

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

.page-login__step-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__step-description {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-login__process-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  margin: 20px auto;
  border-radius: 8px;
}

/* Forgot Password Section */
.page-login__forgot-password-section {
  color: #333333;
}

.page-login__forgot-password-section .page-login__section-title {
  color: #26A9E0;
}

.page-login__forgot-password-section .page-login__description {
  color: #555555;
}

.page-login__ordered-list {
  list-style-type: decimal;
  max-width: 800px;
  margin: 0 auto 30px;
  padding-left: 40px;
  text-align: left;
  color: #555555;
}

.page-login__ordered-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* Benefits Section */
.page-login__benefits-section .page-login__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  color: #ffffff;
}

.page-login__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 100px;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-login__benefit-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* App Section */
.page-login__app-section {
  color: #333333;
}

.page-login__app-section .page-login__section-title {
  color: #26A9E0;
}

.page-login__app-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-login__app-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-login__app-text .page-login__description {
  text-align: left;
  margin-bottom: 20px;
  color: #555555;
}

/* FAQ Section */
.page-login__faq-section .page-login__section-title {
  color: #26A9E0;
}

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

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

.page-login__faq-question::-webkit-details-marker {
  display: none;
}

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

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

.page-login__faq-item[open] .page-login__faq-toggle {
  content: "−";
}

.page-login__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #f0f0f0;
}

/* Conclusion Section */
.page-login__conclusion-section {
  text-align: center;
  color: #333333;
}

.page-login__conclusion-section .page-login__section-title {
  color: #26A9E0;
}

.page-login__conclusion-section .page-login__description {
  color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-content {
    padding: 0 15px;
  }
  .page-login__main-title {
    font-size: 2.2em; /* Adjust for tablet */
  }
  .page-login__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-login__section {
    padding: 40px 0;
  }
  .page-login__container {
    padding: 0 15px;
  }
  .page-login__hero-section {
    padding: 10px 15px 60px;
  }
  .page-login__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em); /* Responsive H1 */
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
  }
  .page-login__reason-section .page-login__grid,
  .page-login__guide-section .page-login__process-steps,
  .page-login__benefits-section .page-login__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__app-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-login__app-text {
    text-align: center;
  }
  .page-login__app-text .page-login__description {
    text-align: center;
  }
  .page-login__ordered-list {
    padding-left: 20px;
    font-size: 0.95em;
  }

  /* Image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__hero-image-wrapper,
  .page-login__reason-section .page-login__grid-item,
  .page-login__guide-section .page-login__step-item,
  .page-login__benefit-card,
  .page-login__app-section .page-login__app-content,
  .page-login__faq-item,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video responsiveness (if any, not present in this page for now) */
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-login__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

/* Ensure content area images are not too small */
.page-login__reason-section .page-login__grid-item img,
.page-login__guide-section .page-login__step-item img,
.page-login__benefit-card img,
.page-login__app-section .page-login__app-image {
  min-width: 200px;
  min-height: 200px;
  object-fit: contain; /* or cover, depending on desired effect */
}

/* Color contrast fixes */
.page-login__reason-section, .page-login__forgot-password-section, .page-login__app-section, .page-login__conclusion-section {
  background-color: #ffffff;
  color: #333333;
}

.page-login__reason-section .page-login__grid-item .page-login__feature-title,
.page-login__forgot-password-section .page-login__section-title,
.page-login__app-section .page-login__section-title,
.page-login__conclusion-section .page-login__section-title {
  color: #26A9E0;
}

.page-login__reason-section .page-login__grid-item .page-login__feature-description,
.page-login__forgot-password-section .page-login__description,
.page-login__ordered-list li,
.page-login__app-text .page-login__description,
.page-login__conclusion-section .page-login__description {
  color: #555555;
}