/* style/login.css */

/* --- General Page Styling --- */
.page-login {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main for general content */
  font-family: 'Arial', sans-serif;
  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: 2.5em;
  color: #F2C14E; /* Gold for main titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

/* H1 specific styling to avoid fixed font-size */
.page-login__main-title {
  color: #F2C14E; /* Gold for main titles */
  text-align: center;
  font-weight: bold;
  line-height: 1.2;
  max-width: 900px;
  margin: 0 auto 20px auto;
  letter-spacing: 0.5px;
}

.page-login__hero-description {
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* --- Hero Section --- */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: 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 {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 0;
}

/* --- Form Section --- */
.page-login__form-section {
  padding: 80px 0;
  background-color: #08160F; /* Custom Background */
}

.page-login__login-card {
  background-color: #11271B; /* Custom Card BG */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__card-title {
  font-size: 2em;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 8px;
  background-color: rgba(17, 39, 27, 0.7); /* Slightly darker than card BG for contrast */
  color: #F2FFF6; /* Text Main */
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #A7D9B8; /* Text Secondary */
  opacity: 0.7;
}

.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: 0.95em;
}

.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 {
  color: #F2C14E; /* Gold */
  text-decoration: none;
}

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

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
  color: #ffffff; /* White text for contrast */
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none; /* For anchor tags styled as buttons */
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

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

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  color: #A7D9B8; /* Text Secondary */
}

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

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

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

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

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

.page-login__benefit-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 250px; /* Max size for icons */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px;
}

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

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

/* --- CTA Register Section --- */
.page-login__cta-register {
  padding: 80px 0;
  text-align: center;
  background-color: #08160F; /* Custom Background */
}

.page-login__cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background-color: #11271B; /* Custom Card BG */
  border-radius: 12px;
  border: 1px solid #2E7A4E; /* Custom Border */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__cta-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-login__btn-large {
  padding: 18px 35px;
  font-size: 1.25em;
  max-width: 400px; /* Limit button width */
  margin: 0 auto; /* Center the button */
}

/* --- FAQ Section --- */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green for contrast section */
}

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

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

.page-login__faq-item summary {
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.15em;
  color: #F2C14E; /* Gold */
  position: relative;
}

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

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

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

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2.2em;
  }
  .page-login__login-card {
    padding: 30px;
  }
  .page-login__benefit-item {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is just for small visual top space */
  }

  .page-login__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__hero-content {
    padding: 20px 0;
  }

  .page-login__main-title {
    font-size: 2em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-login__hero-description {
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-login__section-title {
    font-size: 1.8em;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-login__login-card {
    padding: 25px;
    margin: 0 15px;
    max-width: calc(100% - 30px);
    box-sizing: border-box !important;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__btn-primary,
  .page-login__btn-large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 15px;
  }

  .page-login__benefits-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-login__benefit-item {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__benefit-icon {
    max-width: 180px;
  }

  .page-login__cta-content {
    padding: 30px 20px;
    margin: 0 15px;
    max-width: calc(100% - 30px);
    box-sizing: border-box !important;
  }

  .page-login__cta-description {
    font-size: 1em;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__faq-list {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-login__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* General image responsive styles for all images within .page-login */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}