/* General styling for the login page */
.page-login {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F;
  line-height: 1.6;
}

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

.page-login__section-title {
  font-size: clamp(28px, 4vw, 40px);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-login__text-block {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
  display: flex;
  flex-direction: column; /* Stack image and content vertically */
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 40px 0 60px; /* Adjusted padding, no header-offset */
  background-color: #08160F;
}

.page-login__image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px; /* Space between image and content */
}

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

.page-login__content-wrapper {
  width: 100%;
  max-width: 600px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-login__main-title {
  font-size: clamp(32px, 5vw, 48px);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-login__description {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-login__form-container {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.page-login__form-title {
  font-size: 24px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 25px;
  text-align: center;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 15px;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 6px;
  background-color: #08160F;
  color: #F2FFF6; /* Text Main */
  font-size: 16px;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(167, 217, 184, 0.6); /* Lighter Text Secondary */
}

.page-login__form-input:focus {
  outline: none;
  border-color: #57E38D; /* Glow */
  box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

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

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

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

.page-login__checkbox-label {
  color: #A7D9B8; /* Text Secondary */
}

.page-login__forgot-password-link {
  color: #2AD16F; /* Button start color */
  text-decoration: none;
}

.page-login__forgot-password-link:hover {
  text-decoration: underline;
  color: #57E38D; /* Glow */
}

.page-login__submit-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

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

.page-login__register-cta {
  text-align: center;
  margin-top: 25px;
  font-size: 15px;
}

.page-login__register-text {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 10px;
}

.page-login__register-link {
  color: #F2C14E; /* Gold */
  text-decoration: none;
  font-weight: bold;
}

.page-login__register-link:hover {
  text-decoration: underline;
  color: #FFD700; /* Brighter gold */
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

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

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

.page-login__benefit-icon {
  width: 100%; /* Ensure full width */
  max-width: 100%; /* Ensure full width */
  height: auto;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-login__benefit-title {
  font-size: 22px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-login__benefit-description {
  font-size: 15px;
  color: #A7D9B8; /* Text Secondary */
}

.page-login__cta-section {
  margin-top: 60px;
  text-align: center;
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

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

/* Troubleshooting Section (FAQ) */
.page-login__troubleshooting-section {
  padding: 80px 0;
  background-color: #08160F;
}

.page-login__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.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;
  color: #F2FFF6; /* Text Main */
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-item summary:hover {
  background-color: rgba(17, 168, 78, 0.1); /* Slight hover effect */
}

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

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

.page-login__faq-item[open] .page-login__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-login__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

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

.page-login__support-cta {
  text-align: center;
  margin-top: 50px;
}

.page-login__support-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-login__support-button {
  display: inline-block;
  padding: 15px 30px;
  background: #11A84E; /* Main color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.page-login__support-button:hover {
  background: #22C768; /* Auxiliary color */
  transform: translateY(-2px);
}

/* Register Now Section */
.page-login__register-now-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

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

.page-login__register-content .page-login__section-title {
  text-align: left;
  margin-bottom: 20px;
}

.page-login__register-content .page-login__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 30px;
}

.page-login__register-big-btn {
  display: inline-block;
  padding: 18px 35px;
  background: linear-gradient(180deg, #F2C14E 0%, #E0A800 100%); /* Gold-like gradient */
  color: #08160F; /* Dark text on gold button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-login__register-big-btn:hover {
  background: linear-gradient(180deg, #E0A800 0%, #F2C14E 100%);
  transform: translateY(-2px);
}

.page-login__register-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-login__register-image {
  width: 100%;
  max-width: 600px; /* Limit image size on larger screens */
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto;
}


/* Responsive Adjustments */
@media (max-width: 992px) {
  .page-login__hero-section {
    padding: 30px 0 50px;
  }
  .page-login__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-login__register-now-section .page-login__container {
    flex-direction: column;
    text-align: center;
  }
  .page-login__register-content {
    text-align: center;
  }
  .page-login__register-content .page-login__section-title,
  .page-login__register-content .page-login__text-block {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__container {
    padding: 0 15px; /* Adjust padding for mobile */
  }
  .page-login__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-login__main-title {
    font-size: 32px;
  }
  .page-login__description {
    font-size: 16px;
  }
  .page-login__form-container {
    padding: 25px;
  }
  .page-login__form-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .page-login__form-input,
  .page-login__submit-btn,
  .page-login__cta-button,
  .page-login__support-button,
  .page-login__register-big-btn {
    font-size: 16px;
    padding: 12px 15px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__faq-item summary {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }
  .page-login__hero-image,
  .page-login__benefit-icon,
  .page-login__register-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__troubleshooting-section,
  .page-login__register-now-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Buttons responsive */
  .page-login__submit-btn,
  .page-login__cta-button,
  .page-login__support-button,
  .page-login__register-big-btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__cta-section, .page-login__support-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .page-login__register-big-btn {
    padding: 15px 20px;
  }
}

/* Color Contrast Safeguards */
/* Body background is #08160F (dark), so default text is light */
.page-login {
  color: #F2FFF6; /* Text Main */
}

.page-login__card {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

/* Ensure specific elements maintain contrast */
.page-login__form-input {
  background-color: #08160F;
  color: #F2FFF6; /* Text Main */
}

.page-login__submit-btn,
.page-login__cta-button,
.page-login__support-button {
  color: #ffffff; /* White text on gradient buttons */
}

.page-login__register-big-btn {
  color: #08160F; /* Dark text on gold button */
}

.page-login__forgot-password-link,
.page-login__register-link {
  color: #2AD16F; /* Sufficient contrast on dark background */
}
.page-login__register-link {
  color: #F2C14E; /* Gold */
}

/* Override for light background areas if any, though none currently */
.page-login__light-bg {
  background-color: #f8f9fa; /* Example light background */
  color: #333333; /* Dark text on light background */
}