/* style/login.css */

/* Base styles and body padding handled by shared.css */
/* body already has padding-top: var(--header-offset); page sections should not duplicate this. */

.page-login {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background #FFFFFF */
  line-height: 1.6;
}

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

/* 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: 60px;
  background-color: #f5f5f5; /* Light background for the section */
}

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

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

.page-login__hero-content {
  max-width: 800px;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: #ffffff; /* Light background for content */
  color: #333333;
}

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

.page-login__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
}

/* Section Titles */
.page-login__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  color: #26A9E0; /* Brand color */
  text-align: center;
  margin-bottom: 30px;
}

.page-login__section-title--light {
  color: #ffffff; /* White text for dark backgrounds */
}

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

.page-login__section-description--light {
  color: #f0f0f0; /* Light text for dark backgrounds */
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* For responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

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

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

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

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

/* Login Form Section */
.page-login__form-section {
  padding: 60px 0;
  background: #ffffff; /* Light background */
}

.page-login__form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-login__form-image {
  max-width: 45%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min size for image */
}

.page-login__login-form {
  flex: 1;
  max-width: 500px;
  background: #f9f9f9;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  min-width: 300px;
}

.page-login__form-group {
  margin-bottom: 20px;
}

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333333;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
  border-color: #26A9E0;
  outline: none;
}

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.page-login__link-forgot {
  color: #26A9E0;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.page-login__link-forgot:hover {
  color: #1a7bb2;
  text-decoration: underline;
}

.page-login__register-prompt {
  text-align: center;
  font-size: 0.95em;
  color: #555555;
}

.page-login__link-register {
  color: #EA7C07; /* Login color */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-login__link-register:hover {
  color: #d66a00;
  text-decoration: underline;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background: #26A9E0; /* Brand primary color - dark background */
  color: #ffffff; /* Light text */
  text-align: center;
}

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

.page-login__benefit-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #ffffff;
}

.page-login__benefit-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__benefit-text {
  font-size: 0.95em;
  line-height: 1.7;
}

.page-login__benefits-image {
  max-width: 80%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 30px;
  min-width: 200px; /* Min size for image */
}

/* Troubleshoot Section */
.page-login__troubleshoot-section {
  padding: 80px 0;
  background: #f9f9f9; /* Light background */
}

.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: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
}

.page-login__troubleshoot-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color */
}

.page-login__troubleshoot-text {
  font-size: 0.95em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-login__troubleshoot-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 20px;
  min-width: 200px; /* Min size for image */
}

/* Register CTA Section */
.page-login__register-cta-section {
  padding: 80px 0;
  background: #EA7C07; /* Login specific color - dark background */
  color: #ffffff; /* Light text */
  text-align: center;
}

.page-login__register-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__register-cta-image {
  max-width: 70%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 40px;
  min-width: 200px; /* Min size for image */
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background: #ffffff; /* Light background */
}

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

.page-login__faq-item {
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  color: #333333;
}

.page-login__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1em;
  color: #26A9E0; /* Brand color */
  transition: background-color 0.3s ease;
}

.page-login__faq-item summary:hover {
  background-color: #eaf6ff;
}

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

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

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

.page-login__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  line-height: 1.7;
  color: #555555;
}

/* Final CTA Section */
.page-login__final-cta-section {
  padding: 80px 0;
  background: #26A9E0; /* Brand primary color - dark background */
  color: #ffffff; /* Light text */
  text-align: center;
}

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

/* Responsive styles */
@media (max-width: 992px) {
  .page-login__hero-content {
    padding: 25px;
  }

  .page-login__form-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__form-image {
    max-width: 80%;
  }

  .page-login__login-form {
    max-width: 100%;
  }

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

@media (max-width: 768px) {
  .page-login__container {
    padding: 0 15px;
  }

  /* Force responsive images */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive video (if any) */
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Force responsive containers */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form-wrapper,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Force responsive buttons */
  .page-login__cta-button,
  .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: 0;
    padding-right: 0;
  }
  
  .page-login__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-login__hero-section,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__troubleshoot-section,
  .page-login__register-cta-section,
  .page-login__faq-section,
  .page-login__final-cta-section {
    padding-left: 0;
    padding-right: 0;
  }

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

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

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

  .page-login__form-image {
    max-width: 100%;
  }

  .page-login__benefits-image,
  .page-login__troubleshoot-image,
  .page-login__register-cta-image {
    max-width: 100%;
  }
  
  /* Small top padding for sections, body handles header offset */
  .page-login__hero-section,
  .page-login__video-section { /* Added for consistency, even if no video */
    padding-top: 10px !important;
  }
}