.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Main text color for dark background */
  background-color: #08160F; /* Overall page background */
}

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

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0A4B2C; /* Deep Green background for hero */
  text-align: center;
  overflow: hidden;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin-bottom: 30px;
}

.page-login__main-title {
  font-weight: bold;
  color: #F2FFF6;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

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

.page-login__login-form-wrapper {
  background: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid #2E7A4E;
}

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

.page-login__form-group {
  text-align: left;
}

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #F2FFF6;
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  background-color: #08160F;
  color: #F2FFF6;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}

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

.page-login__forgot-password:hover {
  color: #57E38D;
}

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

.page-login__checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #2E7A4E;
  border-radius: 4px;
  background-color: #08160F;
  cursor: pointer;
  position: relative;
}

.page-login__checkbox:checked {
  background-color: #13994A;
  border-color: #13994A;
}

.page-login__checkbox:checked::after {
  content: '✔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 12px;
}

.page-login__checkbox-label {
  color: #A7D9B8;
  cursor: pointer;
}

.page-login__btn-primary {
  padding: 14px 25px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

.page-login__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-login__no-account-text {
  color: #A7D9B8;
  text-align: center;
  margin-top: 20px;
  font-size: 0.95em;
}

.page-login__register-link {
  color: #F2C14E; /* Gold color for register link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-login__hero-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1000px;
  height: auto;
  object-fit: cover;
  z-index: 1;
  opacity: 0.2;
}

/* Sections */
.page-login__benefits-section,
.page-login__security-section,
.page-login__faq-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-login__deep-green-bg {
  background-color: #0A4B2C; /* Deep Green */
}

.page-login__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #F2FFF6;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

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

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

.page-login__benefit-item {
  background: #08160F;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #2E7A4E;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
}

.page-login__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-login__benefit-text {
  color: #A7D9B8;
  font-size: 0.95em;
}

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

.page-login__security-feature {
  background: #11271B;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #2E7A4E;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-login__security-icon {
  width: 100%;
  height: auto;
  max-width: 120px;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-login__feature-title {
  font-size: 1.4em;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-login__feature-text {
  color: #A7D9B8;
  font-size: 0.9em;
}

.page-login__security-footer-text {
  margin-top: 40px;
  font-size: 0.9em;
  color: #A7D9B8;
}

/* CTA Register Section */
.page-login__cta-register-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-login__cta-content {
  position: relative;
  z-index: 2;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-login__btn-secondary {
  padding: 14px 25px;
  background: #11271B;
  color: #F2FFF6;
  border: 2px solid #2E7A4E;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background: #2E7A4E;
  color: #ffffff;
}

.page-login__cta-image {
  position: absolute;
  bottom: 0;
  right: -100px; /* Adjust for better visual */
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
  opacity: 0.15;
  z-index: 1;
}

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

.page-login__faq-item {
  background: #08160F;
  border: 1px solid #2E7A4E;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: #F2FFF6;
  font-weight: bold;
  font-size: 1.1em;
  background-color: #11271B;
  border-bottom: 1px solid #2E7A4E;
}

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom: 1px solid #2E7A4E;
}

.page-login__faq-question:hover {
  background-color: #1E3A2A;
}

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

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

.page-login__faq-item[open] .page-login__faq-toggle {
  content: '−';
}

.page-login__faq-answer {
  padding: 20px 25px;
  color: #A7D9B8;
  font-size: 0.95em;
}

/* Details/Summary specific styles to remove default marker */
.page-login__faq-item summary {
  list-style: none;
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__hero-image {
    max-width: 800px;
  }
  .page-login__cta-image {
    right: -200px;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__section-description {
    font-size: 1em;
  }
  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-login__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__login-form-wrapper {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0;
  }
  .page-login__form-input {
    padding: 10px 12px;
  }
  .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;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__benefits-grid,
  .page-login__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__benefit-item,
  .page-login__security-feature {
    padding: 20px;
  }
  .page-login__benefit-icon,
  .page-login__security-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .page-login__cta-register-section {
    padding: 60px 15px;
  }
  .page-login__cta-image {
    display: none;
  }
  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-login__faq-answer {
    padding: 15px 20px;
  }
  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.4em;
  }
  .page-login__form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}