/* General Styles */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background: #ffffff; /* Default body background is white */
}

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

.page-login__section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Brand color for titles */
}

/* Hero Section */
.page-login__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #017439, #005f2c); /* Dark background for hero */
  color: #ffffff; /* Light text for dark background */
}

.page-login__hero-section .page-login__container {
  display: flex;
  flex-direction: column; /* Default to column for image above text */
  align-items: center;
  gap: 40px;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 800px; /* Adjust max-width for image */
  order: 1; /* Image first in DOM */
  text-align: center;
}

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

.page-login__hero-content {
  text-align: center;
  order: 2; /* Content after image in DOM */
  max-width: 600px;
}

.page-login__main-title {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for main title on dark background */
}

.page-login__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__form-wrapper {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto;
}

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

.page-login__input-group {
  display: flex;
  flex-direction: column;
}

.page-login__label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #333333;
}

.page-login__input {
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 16px;
  color: #333333;
}

.page-login__input::placeholder {
  color: #999999;
}

.page-login__options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

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

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

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

.page-login__forgot-password:hover {
  color: #005f2c;
}

.page-login__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  border: none;
  font-size: 16px;
  max-width: 100%; /* For button responsiveness */
  box-sizing: border-box; /* For button responsiveness */
  white-space: normal; /* For button responsiveness */
  word-wrap: break-word; /* For button responsiveness */
}

.page-login__btn-submit {
  background: #C30808; /* Login button background */
  color: #FFFF00; /* Login button text */
}

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

.page-login__no-account {
  text-align: center;
  font-size: 14px;
  color: #555555;
  margin-top: 15px;
}

.page-login__register-link {
  color: #017439;
  text-decoration: none;
  font-weight: 600;
}

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  background: #f9f9f9; /* Light background */
  color: #333333;
}

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

.page-login__benefit-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.page-login__benefit-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-login__benefit-description {
  font-size: 15px;
  color: #555555;
}

/* Security Section */
.page-login__security-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #017439, #005f2c);
  color: #ffffff;
}

.page-login__security-section .page-login__section-title {
  color: #FFFF00; /* Yellow title on dark background */
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-login__security-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-login__security-text {
  flex: 1;
  font-size: 16px;
  color: #f0f0f0;
}

.page-login__security-text p {
  margin-bottom: 20px;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-login__security-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-login__security-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFFF00; /* Checkmark color */
  font-weight: bold;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
  background: #f9f9f9; /* Light background */
  color: #333333;
}

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;
}
.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;
}

/* CTA Section */
.page-login__cta-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #017439, #005f2c);
  color: #ffffff;
  text-align: center;
}

.page-login__cta-section .page-login__section-title {
  color: #FFFF00; /* Yellow title on dark background */
}

.page-login__cta-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__cta-button {
  background: #C30808; /* Register button background */
  color: #FFFF00; /* Register button text */
  padding: 15px 35px;
  font-size: 18px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: inline-block;
  max-width: 100%; /* For button responsiveness */
  box-sizing: border-box; /* For button responsiveness */
  white-space: normal; /* For button responsiveness */
  word-wrap: break-word; /* For button responsiveness */
}

.page-login__cta-button:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-login__hero-section .page-login__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .page-login__hero-image-wrapper {
    order: 2;
    flex: 1;
  }
  .page-login__hero-content {
    order: 1;
    flex: 1;
    text-align: left;
  }
  .page-login__form-wrapper {
    margin: 0; /* Remove auto margin for desktop layout */
  }
  .page-login__security-content {
    flex-direction: row;
  }
  .page-login__security-image {
    max-width: 50%;
  }
}

@media (max-width: 1024px) {
  .page-login__section-title {
    font-size: 28px;
  }
  .page-login__hero-description,
  .page-login__cta-description {
    font-size: 16px;
  }
  .page-login__benefit-title {
    font-size: 20px;
  }
  .page-login__security-image {
    max-width: 45%; /* Adjust for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__container {
    padding: 0 15px;
  }
  .page-login__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    padding-bottom: 40px;
  }
  .page-login__hero-section .page-login__container {
    flex-direction: column; /* Stack vertically */
    gap: 30px;
  }
  .page-login__hero-image-wrapper {
    order: 1; /* Image first */
    max-width: 100% !important; /* Ensure image takes full width */
  }
  .page-login__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__hero-content {
    order: 2; /* Content second */
    text-align: center;
    max-width: 100%;
  }
  .page-login__main-title {
    font-size: 28px; /* Adjust H1 font size for mobile */
    margin-bottom: 15px;
  }
  .page-login__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-login__form-wrapper {
    padding: 20px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-login__input {
    padding: 10px 12px;
    font-size: 15px;
  }
  .page-login__options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__btn-submit,
  .page-login__cta-button,
  .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;
  }
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 40px 0;
  }
  .page-login__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-login__benefits-grid {
    grid-template-columns: 1fr; /* Single column for benefits */
    gap: 20px;
  }
  .page-login__benefit-card {
    padding: 20px;
  }
  .page-login__benefit-icon {
    max-width: 120px;
    height: auto !important; /* Ensure images are responsive */
    width: auto !important;
  }
  .page-login__security-content {
    flex-direction: column; /* Stack security image and text */
    gap: 20px;
  }
  .page-login__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    order: 1;
  }
  .page-login__security-text {
    order: 2;
    font-size: 15px;
  }
  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__cta-description {
    font-size: 16px;
  }
  /* Ensure all images within .page-login are responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  /* All containers with images/buttons */
  .page-login__hero-section .page-login__container,
  .page-login__benefits-section .page-login__container,
  .page-login__security-section .page-login__container,
  .page-login__faq-section .page-login__container,
  .page-login__cta-section .page-login__container,
  .page-login__form-wrapper,
  .page-login__benefit-card,
  .page-login__security-content,
  .page-login__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  /* Specific padding for sections */
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-section {
      padding-left: 15px;
      padding-right: 15px;
  }
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }
}