/* style/login.css */
.page-login {
  background-color: var(--bg-color, #08160F); /* Fallback to dark green if shared.css doesn't define */
  color: var(--text-main, #F2FFF6); /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

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

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px;
}

.page-login__hero-content-wrapper {
  max-width: 900px;
  width: 100%;
  text-align: center;
  padding: 40px 20px;
  box-sizing: border-box;
  z-index: 1; /* Ensure content is above image if any layout issues */
}

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

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

.page-login__form-container {
  background-color: var(--card-bg, #11271B); /* Dark card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid var(--border-color, #2E7A4E);
  box-sizing: border-box;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 5px;
  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__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.9em;
}

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #11A84E; /* Brand color for checkbox */
}

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

.page-login__forgot-password-link {
  color: var(--gold-color, #F2C14E); /* Gold for links */
  text-decoration: none;
}

.page-login__forgot-password-link:hover {
  text-decoration: underline;
}

.page-login__submit-button {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Button responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

.page-login__submit-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-login__register-prompt {
  margin-top: 25px;
  text-align: center;
}

.page-login__register-text {
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 10px;
}

.page-login__register-link {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 5px;
  color: var(--gold-color, #F2C14E);
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%; /* Link responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__register-link:hover {
  background-color: var(--deep-green, #0A4B2C);
  color: #ffffff;
}

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

.page-login__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  margin-bottom: 30px;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: var(--card-bg, #11271B); /* Darker background for this section */
  border-top: 1px solid var(--divider-color, #1E3A2A);
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
}

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

.page-login__benefit-card {
  background-color: var(--deep-green, #0A4B2C); /* Slightly different dark for card */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color, #2E7A4E);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-login__benefit-icon {
  width: 100%; /* Ensure image fills card width */
  height: auto;
  max-height: 200px; /* Limit height to prevent overly large images */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

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

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

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
}

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

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

.page-login__security-text .page-login__section-title {
  text-align: left;
}

.page-login__security-text .page-login__section-description {
  text-align: left;
  margin-bottom: 25px;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-login__security-list-item {
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-login__security-list-item::before {
  content: '✔';
  color: #2AD16F; /* Green checkmark */
  position: absolute;
  left: 0;
  top: 0;
}

.page-login__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-login__security-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  min-width: 200px;
  min-height: 200px;
}

.page-login__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  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;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__button--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-login__button--primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-login__button--secondary {
  background-color: transparent;
  color: var(--gold-color, #F2C14E);
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-login__button--secondary:hover {
  background-color: var(--deep-green, #0A4B2C);
  color: #ffffff;
  border-color: #ffffff;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: var(--card-bg, #11271B); /* Darker background for FAQ */
  border-top: 1px solid var(--divider-color, #1E3A2A);
}

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

.page-login__faq-item {
  background-color: var(--deep-green, #0A4B2C);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  color: var(--text-main, #F2FFF6);
  font-weight: bold;
  font-size: 1.1em;
  list-style: none; /* For details/summary */
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none; /* Disable selection on iOS */
  user-select: none; /* Disable selection */
}

.page-login__faq-item summary::-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(--gold-color, #F2C14E);
}

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

/* Call to Action Bottom */
.page-login__cta-bottom {
  padding: 60px 0;
  text-align: center;
  background-color: var(--bg-color, #08160F);
}

.page-login__cta-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}


/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-login {
    font-size: 15px;
  }

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

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

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

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

  .page-login__submit-button,
  .page-login__register-link,
  .page-login__button {
    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 !important; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-bottom {
    padding: 50px 0;
  }

  .page-login__container {
    padding: 0 15px;
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-login__benefits-grid {
    grid-template-columns: 1fr; /* Single column for benefits */
  }

  .page-login__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-login__security-text,
  .page-login__security-image-wrapper {
    min-width: unset; /* Reset min-width for mobile */
    width: 100%;
  }

  .page-login__security-text .page-login__section-title,
  .page-login__security-text .page-login__section-description {
    text-align: center;
  }

  .page-login__security-list {
    text-align: left; /* Keep list left aligned even if text block is centered */
  }

  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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

  .page-login__hero-image-wrapper,
  .page-login__security-image-wrapper,
  .page-login__benefit-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__form-container {
    padding: 15px;
  }
}