/* style/login.css */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light body background */
  background-color: #FFFFFF; /* Body background is white */
}

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

/* Hero Section */
.page-login__hero-section {
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  background-color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-login__main-title {
  font-size: 2.8em;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-login__intro-text {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__login-form-wrapper {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 450px;
  box-sizing: border-box;
  text-align: left;
}

.page-login__form-title {
  font-size: 2em;
  color: #017439;
  margin-bottom: 30px;
  text-align: center;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  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;
}

.page-login__form-input:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 2px rgba(1, 116, 57, 0.2);
}

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

.page-login__checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
}

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

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

.page-login__forgot-password {
  color: #017439;
  text-decoration: none;
}

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

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: #C30808; /* Custom login button color */
  color: #FFFF00; /* Custom login button font color */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

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

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  font-size: 1em;
  color: #555555;
}

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

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

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* General Section Styles */
.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

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

/* Dark Background Sections */
.page-login__dark-bg {
  background-color: #017439;
  color: #ffffff; /* Light text on dark background */
  padding: 60px 0;
}

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__section-description,
.page-login__dark-bg .page-login__feature-title,
.page-login__dark-bg .page-login__feature-text,
.page-login__dark-bg .page-login__app-title,
.page-login__dark-bg .page-login__app-text {
  color: #ffffff;
}

.page-login__dark-bg a {
  color: #FFFF00; /* Yellow for links on dark bg */
  text-decoration: underline;
}

.page-login__dark-bg a:hover {
  color: #fff;
}

/* Light Background Sections */
.page-login__light-bg {
  background-color: #FFFFFF;
  color: #333333; /* Dark text on light background */
  padding: 60px 0;
}

.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__feature-title,
.page-login__light-bg .page-login__form-title {
  color: #017439;
}

.page-login__light-bg a {
  color: #017439;
  text-decoration: none;
}

.page-login__light-bg a:hover {
  text-decoration: underline;
}

/* Why Login Section */
.page-login__why-login-section .page-login__section-title {
  color: #ffffff;
}

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

.page-login__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Security Section */
.page-login__security-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__security-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 500px;
}

.page-login__security-list-item {
  background-color: #f0f0f0;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 1.05em;
  color: #333333;
  display: flex;
  align-items: center;
}

.page-login__security-list-item::before {
  content: '✔';
  color: #017439;
  font-weight: bold;
  margin-right: 10px;
}

/* Mobile Section */
.page-login__mobile-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__mobile-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-login__app-download {
  text-align: center;
  max-width: 400px;
}

.page-login__app-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__app-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #017439;
  border-color: #017439;
}

/* Troubleshooting Section */
.page-login__troubleshooting-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__troubleshooting-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__troubleshooting-heading {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
}

.page-login__troubleshooting-text {
  font-size: 1em;
  color: #555555;
}

.page-login__contact-support-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #555555;
}

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

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

/* New User Section */
.page-login__new-user-section .page-login__section-description {
  color: #f0f0f0;
}

.page-login__new-user-section .page-login__btn-primary {
  max-width: 300px;
  margin: 40px auto 0 auto;
  color: #FFFF00; /* Custom register button font color */
  background-color: #C30808; /* Custom register button color */
}

.page-login__new-user-section .page-login__btn-primary:hover {
  background-color: #a30606;
}

/* Promotions Section */
.page-login__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__promotion-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
}

.page-login__promotion-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-login__promotion-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-login__promotion-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
}

.page-login__promotion-card .page-login__btn-primary {
  max-width: 200px;
  margin: 0 auto;
  padding: 12px 20px;
  font-size: 1em;
  color: #FFFF00; /* Custom button font color */
  background-color: #C30808; /* Custom button color */
}

.page-login__promotion-card .page-login__btn-primary:hover {
  background-color: #a30606;
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* Internet Explorer/Edge */
  user-select: none;         /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.page-login__faq-item[open] > .page-login__faq-question {
  background-color: rgba(0, 0, 0, 0.3);
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-login__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-login__faq-answer a {
  color: #FFFF00; /* Yellow for links in FAQ answer */
  text-decoration: underline;
}

.page-login__faq-item details > summary {
  list-style: none;
}

.page-login__faq-item details > summary::-webkit-details-marker {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.2em;
  }

  .page-login__section-title {
    font-size: 2em;
  }

  .page-login__login-area {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__hero-image-wrapper {
    order: -1; /* Image above form on smaller screens */
  }

  .page-login__login-form-wrapper,
  .page-login__hero-image-wrapper {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-login__security-content,
  .page-login__mobile-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
  }

  .page-login__container {
    padding: 0 15px;
  }

  .page-login__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-login__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-login__login-form-wrapper {
    padding: 30px;
  }

  .page-login__form-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    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__app-download .page-login__btn-secondary {
    margin-top: 20px;
  }

  .page-login__new-user-section .page-login__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-login__promotion-card .page-login__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-login__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-login__features-grid,
  .page-login__troubleshooting-list,
  .page-login__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__security-list-item,
  .page-login__feature-item,
  .page-login__troubleshooting-item,
  .page-login__promotion-card {
    padding: 20px;
  }

  /* Images and Videos Responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size is still met */
    min-height: 200px !important; /* Ensure min size is still met */
  }
  
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__hero-image-wrapper,
  .page-login__security-image,
  .page-login__mobile-image,
  .page-login__promotion-image,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container,
  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent overflow */
  }

  /* Adjust padding for sections on mobile to prevent content touching edges */
  .page-login__hero-section,
  .page-login__why-login-section,
  .page-login__security-section,
  .page-login__mobile-section,
  .page-login__troubleshooting-section,
  .page-login__new-user-section,
  .page-login__promotions-section,
  .page-login__faq-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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