/* style/login.css */
/* Base styles for the page-login scope */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main color for dark background */
  background-color: #08160F; /* Background color */
}

/* --- Typography --- */
.page-login h1, .page-login h2, .page-login h3 {
  color: #F2FFF6; /* Text Main */
  margin-bottom: 1em;
  font-weight: bold;
}

.page-login h1 {
  font-size: clamp(2.5rem, 5vw, 3.2rem); /* Responsive font size for H1 */
  line-height: 1.2;
}

.page-login h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 1.5em;
}

.page-login h3 {
  font-size: 1.5rem;
}

.page-login p {
  margin-bottom: 1em;
  color: #A7D9B8; /* Text Secondary */
}

.page-login__section-title {
  color: #F2FFF6;
}

.page-login__text-block {
  max-width: 800px;
  margin: 0 auto 2em auto;
  text-align: center;
}

/* --- Layout --- */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as per instruction */
  overflow: hidden; /* Ensure no overflow from hero image */
}

.page-login__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Ensure image is behind content */
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the area without distortion */
  filter: brightness(0.3); /* Darken image for text readability, not changing color */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.page-login__main-title {
  color: #F2FFF6;
  margin-top: 0;
  margin-bottom: 20px;
}

.page-login__description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-card {
  background-color: #11271B; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid #2E7A4E; /* Border color */
  box-sizing: border-box;
}

.page-login__login-card-title {
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 5px;
  background-color: #0A4B2C; /* Deep Green for input background */
  color: #F2FFF6;
  font-size: 1rem;
  box-sizing: border-box;
}

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

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

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

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

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

.page-login__forgot-password {
  color: #22C768; /* Auxiliary color for link */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #57E38D; /* Glow color on hover */
}

.page-login__btn-submit {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  box-sizing: border-box; /* Ensure padding doesn't push width */
}

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

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

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

.page-login__register-link:hover {
  color: #57E38D; /* Glow color on hover */
}

/* --- Benefits Section --- */
.page-login__benefits-section {
  padding: 80px 20px;
  background-color: #08160F; /* Background color */
  text-align: center;
}

.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-login__benefit-icon {
  width: 200px; /* Enforce minimum display size as per strict rules */
  height: 200px; /* Enforce minimum display size as per strict rules */
  margin-bottom: 20px;
  object-fit: contain;
}

.page-login__benefit-title {
  color: #F2FFF6;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.page-login__benefit-description {
  color: #A7D9B8;
}

/* --- Security Info Section --- */
.page-login__security-info {
  padding: 80px 20px;
  background-color: #0A4B2C; /* Deep Green */
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-login__security-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #2E7A4E; /* Border color */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #A7D9B8;
}

.page-login__security-item strong {
  color: #F2FFF6;
}

.page-login__security-icon {
  flex-shrink: 0; /* Prevent icon from shrinking */
  width: 200px; /* Enforce minimum display size as per strict rules */
  height: 200px; /* Enforce minimum display size as per strict rules */
  object-fit: contain;
}

/* --- FAQ Section --- */
.page-login__faq-section {
  padding: 80px 20px;
  background-color: #08160F; /* Background color */
}

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  color: #F2FFF6;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

.page-login__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #22C768; /* Auxiliary color */
  margin-left: 15px;
}

.page-login__faq-answer {
  padding: 0 25px 20px 25px;
  border-top: 1px solid #1E3A2A; /* Divider color */
  color: #A7D9B8;
  font-size: 0.95rem;
  /* For non-details/summary implementation */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-login__faq-item[open] .page-login__faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding-top: 20px;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 500px; /* For JS active class */
  padding-top: 20px;
}

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

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

.page-login__btn-register {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 30px;
  box-sizing: border-box;
}

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-login__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-login h1 {
    font-size: 2.2rem;
  }
  .page-login h2 {
    font-size: 1.8rem;
  }
  .page-login__main-title {
    font-size: 2.2rem;
  }
  .page-login__description {
    font-size: 1rem;
  }
  .page-login__login-card {
    padding: 30px 20px;
  }
  .page-login__login-card-title {
    font-size: 1.5rem;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-login__security-list {
    grid-template-columns: 1fr;
  }

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

  /* Mobile container responsive */
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__security-info,
  .page-login__faq-section,
  .page-login__cta-section,
  .page-login__login-card,
  .page-login__benefit-item,
  .page-login__security-item,
  .page-login__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden; /* Ensure content doesn't overflow */
  }

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

  /* Mobile button responsive */
  .page-login__btn-submit,
  .page-login__btn-register,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    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;
  }
}

@media (max-width: 480px) {
  .page-login h1 {
    font-size: 1.8rem;
  }
  .page-login h2 {
    font-size: 1.5rem;
  }
  .page-login__main-title {
    font-size: 1.8rem;
  }
  .page-login__login-card {
    padding: 25px 15px;
  }
  .page-login__login-card-title {
    font-size: 1.3rem;
  }
}