.page-login {
  background-color: var(--background-color, #08160F); /* Fallback to custom color if shared not loaded */
  color: var(--text-main, #F2FFF6); /* Main text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #08160F;
  color: #F2FFF6;
  text-align: center;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it doesn't overflow */
  margin-bottom: 30px;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-login__hero-content {
  max-width: 900px;
  width: 100%;
  z-index: 1;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Using clamp for responsive H1, not fixed large size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #F2FFF6;
}

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

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Prevent overflow */
  box-sizing: border-box;
  overflow: hidden;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  text-align: center;
}

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

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.3);
}

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

.page-login__btn-secondary:hover {
  background-color: rgba(42, 209, 111, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.1);
}

.page-login__form-section {
  padding: 60px 20px;
  background-color: #08160F;
  color: #F2FFF6;
}

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

.page-login__form-card {
  background-color: #11271B; /* Card BG color */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-login__form-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #F2FFF6;
  text-align: center;
}

.page-login__form-description {
  font-size: 1.1em;
  color: #A7D9B8;
  text-align: center;
  margin-bottom: 20px;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-login__form-group {
  display: flex;
  flex-direction: column;
}

.page-login__form-label {
  font-size: 1em;
  color: #A7D9B8;
  margin-bottom: 8px;
  font-weight: 500;
}

.page-login__form-input {
  padding: 12px 15px;
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  background-color: #0A4B2C; /* Deep Green for input background */
  color: #F2FFF6;
  font-size: 1em;
  outline: none;
  transition: border-color 0.3s ease;
}

.page-login__form-input::placeholder {
  color: #A7D9B8;
  opacity: 0.7;
}

.page-login__form-input:focus {
  border-color: #2AD16F;
  box-shadow: 0 0 0 3px rgba(42, 209, 111, 0.3);
}

.page-login__form-options {
  display: flex;
  justify-content: flex-end;
}

.page-login__forgot-password {
  color: #A7D9B8;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #2AD16F;
}

.page-login__submit-button {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-login__submit-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.3);
}

.page-login__register-prompt {
  text-align: center;
  color: #A7D9B8;
  font-size: 1em;
  margin-top: 20px;
}

.page-login__register-link {
  color: #2AD16F;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #57E38D;
}

.page-login__form-image-wrapper {
  display: none; /* Hidden by default, shown on larger screens */
}

@media (min-width: 769px) {
  .page-login__form-section .page-login__container {
    display: flex;
    gap: 40px;
    align-items: center;
  }

  .page-login__form-card {
    flex: 1;
    min-width: 400px;
  }

  .page-login__form-image-wrapper {
    display: block;
    flex: 1;
    min-width: 400px;
  }

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

.page-login__advantages-section {
  padding: 80px 20px;
  background-color: #08160F;
  color: #F2FFF6;
  text-align: center;
}

.page-login__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 20px;
}

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

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

.page-login__advantage-item {
  background-color: #11271B; /* Card BG color */
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__advantage-icon {
  min-width: 200px; /* Enforcing minimum size for image generation */
  min-height: 200px; /* Enforcing minimum size for image generation */
  width: 100%; /* For responsive display */
  height: auto; /* For responsive display */
  max-width: 200px; /* Limiting actual display size */
  max-height: 200px; /* Limiting actual display size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-login__advantage-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-login__advantage-text {
  font-size: 1em;
  color: #A7D9B8;
}

.page-login__faq-section {
  padding: 80px 20px;
  background-color: #08160F;
  color: #F2FFF6;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-login__faq-item {
  background-color: #11271B; /* Card BG color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #F2FFF6;
  cursor: pointer;
  background-color: #11271B;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}
.page-login__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-login__faq-question:hover {
  background-color: #1E3A2A; /* Divider color for hover */
}

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

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

.page-login__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #A7D9B8;
  max-height: 0; /* Hidden by default for JS version */
  overflow: hidden; /* Hidden by default for JS version */
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-login__faq-item[open] .page-login__faq-answer {
  max-height: 500px; /* Adjust as needed for content, for details/summary */
  padding-top: 15px;
}
.page-login__faq-item[open] .page-login__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-login__faq-item.active .page-login__faq-answer { /* For JS version if not using details */
  max-height: 500px !important;
  padding-top: 15px;
}
.page-login__faq-item.active .page-login__faq-toggle { /* For JS version if not using details */
  content: '−';
}

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

.page-login__faq-answer a {
  color: #2AD16F;
  text-decoration: underline;
}
.page-login__faq-answer a:hover {
  color: #57E38D;
}

.page-login__cta-section {
  padding: 80px 20px;
  background-color: #0A4B2C; /* Deep Green for CTA section */
  color: #F2FFF6;
  text-align: center;
}

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

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

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

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__submit-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-section,
  .page-login__form-section,
  .page-login__advantages-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .page-login__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is extra */
  }

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

  .page-login__section-description {
    font-size: 1em;
  }

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

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

  .page-login__advantage-item {
    padding: 25px;
  }
  
  /* Mobile image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile container responsiveness */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-image-wrapper,
  .page-login__form-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  /* Specific override for hero image wrapper padding if needed, but container padding should be enough */
  .page-login__hero-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}