/* style/login.css */

/* Base styles for the login page */
.page-login {
  background-color: var(--background-color, #08160F); /* Fallback to deep green if variable not set */
  color: var(--text-main, #F2FFF6); /* Light text for dark background */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

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

/* Section Titles */
.page-login__section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 50px;
  color: var(--gold, #F2C14E);
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.5);
}

.page-login__section-intro {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 1.1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: none; /* No filters */
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-main, #F2FFF6);
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.65); /* Darker semi-transparent overlay for readability */
  border-radius: 10px;
  max-width: 900px;
  box-sizing: border-box;
  border: 1px solid var(--border, #2E7A4E);
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--gold, #F2C14E);
  text-shadow: 0 0 12px var(--glow, #57E38D); /* Enhanced glow effect */
}

.page-login__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

.page-login__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main, #F2FFF6);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__hero-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Form Section */
.page-login__form-section {
  padding: 60px 0;
  background-color: var(--deep-green, #0A4B2C); /* Use deep green background */
}

.page-login__form-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 20px;
  color: var(--gold, #F2C14E);
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.5);
}

.page-login__form-intro {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__form {
  background-color: var(--card-bg, #11271B); /* Card background for form */
  padding: 40px;
  border-radius: 10px;
  max-width: 500px;
  margin: 0 auto 30px auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border, #2E7A4E);
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 5px;
  background-color: #0A1C15; /* Slightly darker input background */
  color: var(--text-main, #F2FFF6);
  font-size: 1rem;
  box-sizing: border-box;
}

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.page-login__checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--text-secondary, #A7D9B8);
}

.page-login__checkbox {
  margin-right: 8px;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 3px;
  background-color: #0A1C15;
  position: relative;
  flex-shrink: 0;
}

.page-login__checkbox:checked {
  background-color: var(--glow, #57E38D);
  border-color: var(--glow, #57E38D);
}

.page-login__checkbox:checked::before {
  content: '✔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0A1C15; /* Dark color for checkmark */
  font-size: 14px;
}

.page-login__forgot-password {
  color: var(--glow, #57E38D);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: var(--gold, #F2C14E);
  text-decoration: underline;
}

.page-login__submit-btn {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main, #F2FFF6);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it takes full width as an anchor */
}

.page-login__submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-login__register-cta {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--divider, #1E3A2A);
}

.page-login__register-cta p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

.page-login__register-link {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 8px;
  background-color: transparent;
  border: 2px solid var(--glow, #57E38D);
  color: var(--glow, #57E38D);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-login__register-link:hover {
  background-color: var(--glow, #57E38D);
  color: var(--deep-green, #0A4B2C);
  transform: translateY(-2px);
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
}

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

.page-login__benefit-card {
  background-color: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border, #2E7A4E);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-login__benefit-icon {
  width: 100%; /* Ensure images fill card width */
  height: auto;
  max-height: 200px; /* Constrain height */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  filter: none; /* No filters */
}

.page-login__benefit-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--gold, #F2C14E);
}

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

/* About Section */
.page-login__about-section {
  padding: 60px 0;
  background-color: var(--deep-green, #0A4B2C);
}

.page-login__about-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
}

.page-login__about-image {
  flex-shrink: 0;
  width: 100%;
  max-width: 500px; /* Constrain image width */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  filter: none; /* No filters */
}

.page-login__about-text p {
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
  font-size: 1.05rem;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
}

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

.page-login__faq-item {
  background-color: var(--card-bg, #11271B);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border, #2E7A4E);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.15rem;
  color: var(--gold, #F2C14E);
  list-style: none; /* Remove default summary marker */
}

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

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

.page-login__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow, #57E38D);
}

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

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

/* CTA Section */
.page-login__cta-section {
  padding: 60px 0;
  background-color: var(--deep-green, #0A4B2C);
  text-align: center;
}

.page-login__cta-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: var(--text-secondary, #A7D9B8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-login__btn-primary, 
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main, #F2FFF6);
  border: none;
}

.page-login__btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-login__btn-secondary {
  background-color: transparent;
  border: 2px solid var(--glow, #57E38D);
  color: var(--glow, #57E38D);
}

.page-login__btn-secondary:hover {
  background-color: var(--glow, #57E38D);
  color: var(--deep-green, #0A4B2C);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}


/* Responsive Adjustments */
@media (max-width: 992px) {
  .page-login__about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

@media (max-width: 768px) {
  .page-login__container {
    padding: 0 15px; /* Adjust padding for smaller screens */
  }

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

  .page-login__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .page-login__hero-description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

  .page-login__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-login__section-intro {
    margin-bottom: 30px;
  }

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

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  /* Mobile image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with padding */
  .page-login__hero-section,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__about-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }

  /* Specific containers that might have max-width */
  .page-login__container,
  .page-login__hero-content,
  .page-login__form,
  .page-login__faq-list,
  .page-login__benefits-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile button responsiveness */
  .page-login__hero-cta,
  .page-login__submit-btn,
  .page-login__register-link,
  .page-login__btn-primary,
  .page-login__btn-secondary {
    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 {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  /* Fixed header offset for video section (if present) - but this page has no video */
  /* If there was a video section, its padding-top would be small, not var(--header-offset) */
  .page-login__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}