.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--body-bg-color, #ffffff); /* Fallback to white if not set */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  color: #ffffff;
  overflow: hidden;
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

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

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

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

.page-login__main-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.page-login__form-title {
  font-size: 2em;
  margin-bottom: 25px;
  color: #FFFF00; /* Register and Login font color */
  font-weight: bold;
}

.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.9);
  color: #333333;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #666666;
}

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

.page-login__btn-login, .page-login__btn-register {
  display: block;
  width: 100%;
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

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

.page-login__btn-login:hover {
  background-color: #a00606;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-login__btn-register {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
}

.page-login__btn-register:hover {
  background-color: #a00606;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-login__forgot-password, .page-login__download-app {
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover, .page-login__download-app:hover {
  color: #FFFF00;
}

/* Sections */
.page-login__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

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

.page-login__dark-section .page-login__section-title {
  color: #FFFF00;
}

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

.page-login__light-bg {
  background-color: #ffffff;
  padding: 60px 0;
}

.page-login__dark-section {
  background-color: #017439;
  padding: 60px 0;
  color: #ffffff;
}

/* Cards */
.page-login__card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-login__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-login__dark-section .page-login__card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__dark-section .page-login__card h3, 
.page-login__dark-section .page-login__card p, 
.page-login__dark-section .page-login__card a {
  color: #ffffff;
}

.page-login__dark-section .page-login__card a:hover {
  color: #FFFF00;
}

/* Benefits Section */
.page-login__benefits-grid, .page-login__features-grid, .page-login__promotions-grid, .page-login__security-grid, .page-login__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-login__benefit-item img, .page-login__promotion-item img, .page-login__blog-item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-login__dark-section .page-login__benefit-title, .page-login__dark-section .page-login__feature-title, .page-login__dark-section .page-login__promotion-title, .page-login__dark-section .page-login__security-title, .page-login__dark-section .page-login__blog-title {
  color: #FFFF00;
}

.page-login__benefit-text, .page-login__feature-text, .page-login__promotion-text, .page-login__security-text, .page-login__blog-excerpt {
  font-size: 1em;
  color: #555555;
}

.page-login__dark-section .page-login__benefit-text, .page-login__dark-section .page-login__feature-text, .page-login__dark-section .page-login__promotion-text, .page-login__dark-section .page-login__security-text, .page-login__dark-section .page-login__blog-excerpt {
  color: #f0f0f0;
}

.page-login__feature-link, .page-login__btn-promo, .page-login__security-link, .page-login__btn-readmore {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__feature-link:hover, .page-login__btn-promo:hover, .page-login__security-link:hover, .page-login__btn-readmore:hover {
  background-color: #005f2f;
}

/* Floating Buttons */
.page-login__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-login__floating-btn {
  background-color: #C30808; /* Login/Register color */
  color: #FFFF00; /* Login/Register font color */
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__floating-btn:hover {
  transform: translateY(-3px);
  background-color: #a00606;
}

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

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-login__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-login__faq-question:active {
  background: #eeeeee;
}

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #017439;
}

.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Change from '-' to 'x' visually */
}