/* style/login.css */

/* --- Base Styles & Layout --- */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Assuming body background is light, matching custom color */
  line-height: 1.6;
}

/* Ensure content is centered and has max-width */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* --- Hero Section --- */
.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding for the first section, not var(--header-offset) */
  background-color: #f5f5f5; /* Light background for hero section */
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__hero-content {
  text-align: center;
  max-width: 700px;
  padding: 0 20px;
}

.page-login__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em); /* Use clamp for H1 font-size */
  font-weight: 700;
  color: #26A9E0; /* Brand color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* --- Login Form --- */
.page-login__login-form-wrapper {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
  border-color: #26A9E0;
  outline: none;
}

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

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

.page-login__checkbox {
  margin-right: 8px;
}

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

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

.page-login__forgot-password:hover {
  color: #1a7bbd;
  text-decoration: underline;
}

.page-login__btn-submit {
  width: 100%;
  padding: 14px 20px;
  background-color: #EA7C07; /* Custom color for login button */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-submit:hover {
  background-color: #d86e06;
}

.page-login__register-prompt {
  margin-top: 20px;
  font-size: 0.95em;
  color: #555555;
}

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

.page-login__register-link:hover {
  color: #1a7bbd;
  text-decoration: underline;
}

/* --- General Section Styling --- */
.page-login__benefits-section,
.page-login__cta-section,
.page-login__faq-section,
.page-login__guide-section,
.page-login__commitment-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-login__commitment-section {
  background-color: #f9f9f9; /* Slightly different background for visual separation */
}

.page-login__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 25px;
}

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

/* --- Benefits Grid --- */
.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: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 400px; /* Ensure cards have similar height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-login__benefit-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-login__benefit-text {
  font-size: 1em;
  color: #666666;
}

/* --- CTA Section --- */
.page-login__cta-section {
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
  text-align: center;
}

.page-login__cta-section .page-login__section-title {
  color: #ffffff; /* White title on brand color background */
}

.page-login__cta-section .page-login__section-description {
  color: #f0f0f0;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrap for buttons */
  word-wrap: break-word;
}

.page-login__btn-primary {
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  background-color: #d86e06;
}

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #ffffff;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7bbd;
  border-color: #f0f0f0;
}

/* --- FAQ Section --- */
.page-login__faq-section {
  background-color: #f5f5f5;
}

.page-login__faq-list {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 40px;
}

.page-login__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden; /* For details tag */
}

.page-login__faq-item summary {
  list-style: none; /* Hide default marker for details */
}

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom: 1px solid #26A9E0;
  color: #26A9E0;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #666666;
  border-top: 1px solid #f0f0f0; /* Ensure border is subtle */
  /* max-height/overflow for JS based toggle, not strictly needed for native <details> */
}

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

/* --- Guide Section --- */
.page-login__guide-section {
  background-color: #ffffff;
}

.page-login__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-login__guide-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__guide-item-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-login__guide-item p {
  color: #555555;
}

.page-login__section-footer-text {
  text-align: center;
  font-size: 1em;
  color: #666666;
  margin-top: 30px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: clamp(2em, 4.5vw, 2.5em);
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__cta-section,
  .page-login__faq-section,
  .page-login__guide-section,
  .page-login__commitment-section {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__hero-section {
    padding: 30px 0;
    padding-top: 10px !important; /* body already handles header offset */
  }
  .page-login__main-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__hero-description,
  .page-login__section-description {
    font-size: 1em;
    padding: 0 15px; /* Add padding for mobile text */
  }

  /* Images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__hero-image-wrapper,
  .page-login__benefit-icon {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to image containers */
  }

  /* Buttons responsive */
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__btn-submit,
  .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;
  }

  /* General containers padding */
  .page-login__container,
  .page-login__login-form-wrapper,
  .page-login__benefits-grid,
  .page-login__faq-list,
  .page-login__guide-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__benefit-card {
    min-height: auto; /* Allow height to adjust on mobile */
  }
  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-login__faq-answer {
    padding: 15px 20px;
  }
  .page-login__guide-item {
    padding: 20px;
  }
}

/* --- Color Contrast & Theming (Intelligent Application) --- */
/* Assuming body background is light, default text color is dark (#333333) */
/* Brand color: #26A9E0 (blue) */
/* Auxiliary color: #FFFFFF (white) */
/* Login specific: #EA7C07 (orange) */

/* Apply dark text on light backgrounds */
.page-login,
.page-login__hero-section,
.page-login__login-form-wrapper,
.page-login__benefits-section,
.page-login__benefit-card,
.page-login__faq-item,
.page-login__faq-question,
.page-login__guide-section,
.page-login__guide-item {
  color: #333333; /* Dark text on light background */
}

/* Apply light text on dark backgrounds (e.g., brand color sections) */
.page-login__cta-section {
  background-color: #26A9E0;
  color: #ffffff; /* White text on brand blue background */
}
.page-login__cta-section .page-login__section-title {
  color: #ffffff;
}
.page-login__cta-section .page-login__section-description {
  color: #f0f0f0;
}

/* Buttons */
.page-login__btn-primary {
  background-color: #EA7C07; /* Orange button */
  color: #ffffff; /* White text on orange */
}

.page-login__btn-secondary {
  background-color: #ffffff; /* White button */
  color: #26A9E0; /* Brand blue text on white */
  border-color: #26A9E0;
}

/* Links */
.page-login__forgot-password,
.page-login__register-link,
.page-login__faq-item[open] .page-login__faq-question,
.page-login__faq-toggle,
.page-login__guide-item-title {
  color: #26A9E0; /* Brand blue for links/interactive elements */
}

/* Ensure images do not use filters */
.page-login img {
  filter: none !important;
}