.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Body background color from shared.css */
}

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

.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  overflow: hidden;
}

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken background image for text contrast */
}

.page-login__login-card {
  position: relative;
  z-index: 1;
  background: #ffffff; /* Login form background as specified */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
  color: #333333; /* Dark text for light form background */
}

.page-login__main-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #017439; /* Brand color for main title */
  line-height: 1.2;
}

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

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

.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 #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333;
  background-color: #f9f9f9;
}

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

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

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

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

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

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

.page-login__login-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  background-color: #C30808; /* Login button background */
  color: #FFFF00; /* Login button font */
}

.page-login__login-button:hover {
  background-color: #a00606;
}

.page-login__login-link {
  color: #FFFF00; /* Login button font */
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

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

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

.page-login__register-link:hover {
  color: #005f2e;
}

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

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

.page-login__benefits-section,
.page-login__security-section,
.page-login__faq-section,
.page-login__cta-section,
.page-login__download-app-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Consistent dark background */
  color: #ffffff;
}

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-login__benefit-text {
  color: #f0f0f0;
}

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

.page-login__security-text {
  flex: 1;
  text-align: left;
}

.page-login__security-text ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

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

.page-login__security-text li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #017439;
  font-weight: bold;
}

.page-login__security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-login__security-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  object-fit: cover;
}

.page-login__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-login__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-login__faq-title {
  margin: 0;
  color: #ffffff;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439;
}

.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;
  color: #f0f0f0;
}

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

.page-login__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

.page-login__cta-grid {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-login__cta-content {
  flex: 1;
}

.page-login__cta-content .page-login__section-title {
  text-align: left;
}

.page-login__cta-content .page-login__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 30px;
}

.page-login__cta-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-login__cta-image {
  width: 100%;
  height: auto;
  max-width: 500px;
  border-radius: 10px;
  object-fit: cover;
}

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

.page-login__btn-primary {
  background-color: #C30808; /* Register button background */
  color: #FFFF00; /* Register button font */
  border: 2px solid #C30808;
}

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

.page-login__btn-secondary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-login__btn-secondary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

.page-login__download-grid {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-login__download-content {
  flex: 1;
}

.page-login__download-content .page-login__section-title,
.page-login__download-content .page-login__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-login__download-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-login__download-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  border-radius: 10px;
  object-fit: contain;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-login__main-title {
    font-size: 2em;
  }

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

  .page-login__security-content,
  .page-login__cta-grid,
  .page-login__download-grid {
    flex-direction: column;
    text-align: center;
  }

  .page-login__security-text,
  .page-login__cta-content,
  .page-login__download-content {
    text-align: center;
  }

  .page-login__security-text ul {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-login__main-title {
    font-size: 1.8em;
  }

  .page-login__intro-text,
  .page-login__section-description {
    font-size: 1em;
  }

  .page-login__login-card {
    padding: 30px 20px;
  }

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

  /* Image and video responsiveness */
  .page-login img,
  .page-login video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__hero-background,
  .page-login__security-image-wrapper,
  .page-login__cta-image-wrapper,
  .page-login__download-image-wrapper,
  .page-login__benefit-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Container padding for mobile */
  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsiveness */
  .page-login__login-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .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__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;
  }

  .page-login__cta-grid,
  .page-login__download-grid {
    gap: 30px;
  }

  .page-login__security-content {
    gap: 30px;
  }

  .page-login__security-text ul {
    padding-left: 0;
  }
}