.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #222; /* Ensure consistency with body background */
}

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

.page-login__container--narrow {
  max-width: 900px;
}

.page-login__dark-bg {
  background-color: #222;
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Adjust padding-top for header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-login__hero-section .page-login__container {
  position: relative;
  z-index: 2;
}

.page-login__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Login/Register font color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-login__intro-text {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__form-wrapper {
  background: rgba(0, 0, 0, 0.7);
  padding: 40px;
  border-radius: 10px;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #017439;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.page-login__btn-login, .page-login__btn-register {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.page-login__btn-login {
  background-color: #C30808; /* Custom Login button color */
  color: #FFFF00; /* Custom Login button font color */
}

.page-login__btn-login:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-login__btn-register {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
}

.page-login__btn-register:hover {
  background-color: #005a2d;
  transform: translateY(-2px);
}

.page-login__link-group {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.95em;
}

.page-login__forgot-password, .page-login__need-help {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover, .page-login__need-help:hover {
  color: #FFFF00;
}

/* General Section Styles */
.page-login__benefits-section, .page-login__cta-section, .page-login__faq-section, .page-login__security-section, .page-login__download-app-section {
  padding: 80px 0;
  text-align: center;
}

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section background */
}

.page-login__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

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

.page-login__benefit-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #333333;
}

.page-login__benefit-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-login__benefit-text {
  font-size: 1em;
  line-height: 1.7;
}

/* CTA Section */
.page-login__cta-section {
  background-color: #017439;
  color: #ffffff;
}

.page-login__btn-register-cta {
  display: inline-block;
  background-color: #C30808; /* Custom Register button color */
  color: #FFFF00; /* Custom Register button font color */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 20px;
  box-sizing: border-box;
}

.page-login__btn-register-cta:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-login__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: #f0f0f0;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px 25px;
}

/* Security Section */
.page-login__security-section {
  background-color: #222;
  color: #ffffff;
}

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

.page-login__security-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__security-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-login__security-text {
  font-size: 1em;
  line-height: 1.7;
  color: #cccccc;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border: 2px solid #017439;
  border-radius: 5px;
  color: #017439;
  background-color: transparent;
  text-decoration: none;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

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

.page-login__btn-secondary--white {
  border-color: #ffffff;
  color: #ffffff;
}

.page-login__btn-secondary--white:hover {
  background-color: #ffffff;
  color: #017439;
}

/* Download App Section */
.page-login__download-app-section {
  background-color: #f5f5f5;
  color: #333333;
}

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

.page-login__app-info {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-login__app-info p {
  margin-bottom: 25px;
  line-height: 1.8;
  color: #555555;
}

.page-login__btn-download {
  display: inline-block;
  background-color: #C30808;
  color: #FFFF00;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__btn-download:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-login__app-image {
  max-width: 350px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 100px 0 60px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__intro-text {
    font-size: 1.1em;
  }
  .page-login__form-wrapper {
    padding: 30px;
  }
  .page-login__btn-login, .page-login__btn-register, .page-login__btn-register-cta, .page-login__btn-download, .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__form-actions, .page-login__link-group {
    flex-direction: column;
    gap: 10px;
  }
  .page-login__benefits-grid, .page-login__security-features {
    grid-template-columns: 1fr;
  }
  .page-login__app-download-content {
    flex-direction: column-reverse;
    gap: 30px;
  }
  .page-login__app-image {
    max-width: 80%;
  }
  .page-login__container, .page-login__container--narrow, .page-login__benefits-section, .page-login__cta-section, .page-login__faq-section, .page-login__security-section, .page-login__download-app-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-login img, .page-login__app-image, .page-login__benefit-image, .page-login__security-icon {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__security-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__form-wrapper {
    padding: 20px;
  }
  .page-login__form-input {
    padding: 10px;
  }
  .page-login__btn-login, .page-login__btn-register, .page-login__btn-register-cta, .page-login__btn-download {
    font-size: 1.1em;
  }
}