/* style/login.css */
/* Base styles for the login page */
.page-login {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color for dark backgrounds */
  background-color: var(--background, #08160F); /* Ensure consistency with body background */
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Color utility classes for contrast */
.page-login__light-text {
  color: var(--text-main, #F2FFF6);
}

.page-login__text-secondary {
  color: var(--text-secondary, #A7D9B8);
}

.page-login__text-dark-contrast {
  color: var(--text-dark, #333333); /* For sections with light backgrounds */
}

.page-login__text-main {
  color: var(--text-main, #F2FFF6);
}

.page-login__text-gold {
  color: var(--gold, #F2C14E);
}

.page-login__dark-bg {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-login__light-bg {
  background-color: #ffffff; /* Explicitly white for contrast on specific sections */
  color: var(--text-dark, #333333);
}

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

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add padding for smaller screens */
  box-sizing: border-box;
}

.page-login__section-title {
  font-size: clamp(2em, 4vw, 3em); /* H1 font size constraint - using clamp */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-login__section-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background, #08160F);
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Match container max-width */
  margin-bottom: 30px;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__hero-content {
  max-width: 600px;
  text-align: center;
  z-index: 1; /* Ensure content is above image if any layout issue */
}

.page-login__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* H1 font size constraint - using clamp */
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-login__intro-text {
  font-size: 1.2em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

/* Form Styles */
.page-login__form {
  background-color: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  text-align: left;
}

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
}

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  background-color: var(--deep-green, #0A4B2C); /* Deep Green for input background */
  color: var(--text-main, #F2FFF6);
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__input::placeholder {
  color: var(--text-secondary, #A7D9B8);
  opacity: 0.7;
}

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 15px;
}

.page-login__forgot-password {
  color: var(--text-secondary, #A7D9B8);
  font-size: 0.9em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: var(--glow, #57E38D);
}

.page-login__btn-primary {
  display: inline-block;
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
  color: #ffffff; /* White text for contrast on button */
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-login__register-prompt {
  color: var(--text-secondary, #A7D9B8);
  font-size: 1em;
}

.page-login__register-link {
  color: var(--glow, #57E38D);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: var(--text-main, #F2FFF6);
}

/* Features Grid */
.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: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-login__feature-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
}

.page-login__feature-description {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

/* Steps Guide */
.page-login__steps-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-login__step-item {
  background-color: #ffffff; /* White background for light section */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-login__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--glow, #57E38D);
  color: #08160F; /* Dark text on glow color */
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-login__step-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--text-dark, #333333);
}

.page-login__step-description {
  font-size: 1em;
  color: #555555; /* Darker gray for description on light background */
}

.page-login__important-notes {
  background-color: #f9f9f9; /* Lighter background for notes */
  padding: 30px;
  border-radius: 10px;
  margin-top: 50px;
  text-align: left;
  border: 1px solid #e0e0e0;
}

.page-login__notes-title {
  font-size: 1.5em;
  color: var(--text-dark, #333333);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__notes-list {
  list-style: disc inside;
  padding-left: 0;
}

.page-login__notes-list li {
  font-size: 1em;
  color: #555555;
  margin-bottom: 10px;
}

/* Troubleshoot Grid */
.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-color: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-login__troubleshoot-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
}

.page-login__troubleshoot-description {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  flex-grow: 1; /* Push button to bottom */
  margin-bottom: 20px;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border: 2px solid var(--glow, #57E38D);
  border-radius: 8px;
  background-color: transparent;
  color: var(--glow, #57E38D);
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-secondary:hover {
  background-color: var(--glow, #57E38D);
  color: #08160F; /* Dark text on glow color */
  transform: translateY(-2px);
}

/* Benefits List */
.page-login__benefits-list {
  list-style: none; /* Remove default bullet points */
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-login__benefits-list li {
  font-size: 1.1em;
  color: #333333; /* Dark text on light background */
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-login__benefits-list li::before {
  content: '✓';
  color: var(--glow, #57E38D);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

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

.page-login__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-login__faq-item[open] {
  background-color: var(--deep-green, #0A4B2C); /* Deep Green for open FAQ */
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  list-style: none; /* Hide default marker for 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: var(--glow, #57E38D);
}

.page-login__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

.page-login__faq-answer p {
  margin: 0;
}

/* CTA Section */
.page-login__cta-section {
  padding-bottom: 80px;
}

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

.page-login__btn-large {
  padding: 16px 35px;
  font-size: 1.2em;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-login__hero-image-wrapper {
    margin-bottom: 20px;
  }
}

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

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

  .page-login__hero-image-wrapper {
    margin-bottom: 20px;
  }

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

  .page-login__intro-text {
    font-size: 1em;
  }

  .page-login__form {
    padding: 25px 20px;
  }

  .page-login__form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-login__forgot-password {
    text-align: center;
    order: 2; /* Move below button on mobile */
    margin-top: 10px;
  }

  .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: 15px;
    padding-right: 15px;
  }

  .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;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    overflow: hidden !important;
  }

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

  .page-login__section-intro {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

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

  .page-login__feature-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Mobile image and video responsiveness */
  .page-login img,
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .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__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-login__faq-answer {
    padding: 0 20px 15px;
  }
}

/* Ensure images meet minimum size requirements and are responsive */
.page-login img {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%;
  height: auto;
  display: block; /* Prevents extra space below images */
}

/* Video specific styles - if any video is present */
.page-login video,
.page-login__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-login__video-section,
.page-login__video-container,
.page-login__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Contrast Fixes (as per instructions) */
.page-login__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-login__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}