/* style/login.css */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #FFF6D6; /* Default text color for dark background */
  background-color: #0A0A0A; /* Matches body background if shared.css sets it */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  margin-bottom: 40px;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-login__hero-content {
  text-align: center;
  padding: 30px 20px;
  background: rgba(17, 17, 17, 0.8); /* Card BG with transparency for overlay effect, but text is below image */
  margin-top: 20px; /* Space below image */
  border-radius: 8px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #F2C14E; /* Brand color for main title */
  line-height: 1.2;
  margin-bottom: 15px;
}

.page-login__subtitle {
  font-size: 18px;
  color: #FFF6D6;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Form Section (light background) */
.page-login__form-section {
  background-color: #ffffff; /* Light background */
  padding: 60px 0;
  color: #333333; /* Dark text for light background */
}

.page-login__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #333333;
}

.page-login__section-description {
  font-size: 16px;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-login__login-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

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

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

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

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

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.page-login__forgot-password {
  font-size: 14px;
  color: #F2C14E;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-login__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #FFF6D6; /* Text Main */
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
  white-space: normal; /* For button responsiveness */
  word-wrap: break-word; /* For button responsiveness */
}

.page-login__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 15px;
  color: #555555;
}

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

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

/* Benefits Section (dark background) */
.page-login__benefits-section {
  background-color: #0A0A0A; /* Dark background */
  padding: 60px 0;
  color: #FFF6D6; /* Light text for dark background */
  border-top: 1px solid #3A2A12; /* Border from custom palette */
}

.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-login__benefit-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-login__benefit-title {
  font-size: 22px;
  font-weight: bold;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-login__benefit-description {
  font-size: 15px;
  color: #FFF6D6;
  line-height: 1.6;
}

.page-login__cta-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%; /* For button responsiveness */
  max-width: 100%; /* For button responsiveness */
  box-sizing: border-box; /* For button responsiveness */
  overflow: hidden; /* For button responsiveness */
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: #F2C14E;
  border: 2px solid #F2C14E;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* For button responsiveness */
  word-wrap: break-word; /* For button responsiveness */
}

.page-login__btn-secondary:hover {
  background-color: #F2C14E;
  color: #111111; /* Dark text on brand color */
  transform: translateY(-2px);
}

/* FAQ Section (light background) */
.page-login__faq-section {
  background-color: #ffffff; /* Light background */
  padding: 60px 0;
  color: #333333; /* Dark text for light background */
  border-top: 1px solid #e0e0e0;
}

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

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}
details.page-login__faq-item summary.page-login__faq-question:hover {
  background: #f5f5f5;
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Dark text for light background */
}
.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555; /* Slightly lighter dark text */
}

/* General image and container responsiveness */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 40px;
  }
  .page-login__subtitle {
    font-size: 17px;
  }
  .page-login__benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-login__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    margin-bottom: 30px;
  }
  .page-login__hero-content {
    padding: 20px 15px;
    margin-top: 15px;
  }
  .page-login__main-title {
    font-size: 32px;
    line-height: 1.3;
  }
  .page-login__subtitle {
    font-size: 15px;
    line-height: 1.5;
  }

  /* Form Section */
  .page-login__form-section {
    padding: 40px 0;
  }
  .page-login__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-login__section-description {
    font-size: 14px;
    margin-bottom: 30px;
  }
  .page-login__login-form {
    padding: 30px 20px;
  }
  .page-login__form-group {
    margin-bottom: 20px;
  }
  .page-login__form-actions {
    flex-direction: column-reverse; /* Stack buttons */
    align-items: stretch;
    gap: 15px;
    margin-top: 20px;
  }
  .page-login__forgot-password {
    text-align: center;
    order: 2; /* Move forgot password below login button */
  }
  .page-login__btn-primary {
    width: 100% !important; /* Button responsiveness */
    max-width: 100% !important; /* Button responsiveness */
    box-sizing: border-box !important;
    padding: 12px 15px;
    font-size: 15px;
    order: 1;
  }
  .page-login__register-prompt {
    font-size: 14px;
    margin-top: 20px;
  }

  /* Benefits Section */
  .page-login__benefits-section {
    padding: 40px 0;
  }
  .page-login__benefits-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
  }
  .page-login__benefit-card {
    padding: 25px;
  }
  .page-login__benefit-icon {
    width: 100% !important; /* Image responsiveness */
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Enforce min image size */
    min-height: 200px !important; /* Enforce min image size */
  }
  .page-login__benefit-title {
    font-size: 20px;
  }
  .page-login__benefit-description {
    font-size: 14px;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-login__btn-secondary {
    width: 100% !important; /* Button responsiveness */
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px;
    font-size: 15px;
  }

  /* FAQ Section */
  .page-login__faq-section {
    padding: 40px 0;
  }
  .page-login__faq-list {
    margin-top: 30px;
  }
  details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px;
  }
  .page-login__faq-qtext {
    font-size: 15px;
  }
  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 15px 15px;
  }
  .page-login p,
  .page-login li {
    font-size: 16px; /* Mobile readability */
    line-height: 1.6;
  }

  /* General image and container responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__container,
  .page-login__form-section .page-login__container,
  .page-login__benefits-section .page-login__container,
  .page-login__faq-section .page-login__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__button-group,
  .page-login__btn-container,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}