.page-login {
  color: #ffffff;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #000000; /* Body background from shared.css is dark */
}

.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #017439; /* Brand color as background */
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-login__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-login__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle overlay */
  position: absolute;
  top: 0;
  left: 0;
}

.page-login__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-login__login-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for contrast */
  border-radius: 10px;
  padding: 30px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-login__card-title {
  font-size: 1.8em;
  margin-bottom: 25px;
  color: #ffffff;
  text-align: center;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #f0f0f0;
  font-weight: bold;
}

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #017439;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.95);
  color: #333333;
  font-size: 1em;
}

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

.page-login__form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.page-login__forgot-password {
  color: #FFFF00; /* Custom color for login font */
  text-decoration: none;
  font-size: 0.9em;
}

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

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

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

.page-login__register-text {
  margin-top: 20px;
  color: #f0f0f0;
  text-align: center;
}

.page-login__register-link {
  color: #FFFF00; /* Custom color for register font */
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__features-section, .page-login__troubleshoot-section, .page-login__faq-section, .page-login__latest-news-section {
  padding: 60px 0;
  background-color: #000000; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-login__how-to-login-section {
  padding: 60px 0;
  background-color: #017439; /* Brand color as background */
  color: #ffffff;
}

.page-login__cta-section {
  padding: 60px 0;
  background-color: #017439; /* Brand color as background */
  color: #ffffff;
  text-align: center;
}

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

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

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

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

.page-login__feature-item, .page-login__news-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__feature-item:hover, .page-login__news-card:hover {
  transform: translateY(-5px);
}

.page-login__feature-image, .page-login__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

.page-login__step-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

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

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

.page-login__troubleshoot-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-login__list-item {
  background: rgba(255, 255, 255, 0.08);
  border-left: 5px solid #017439;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.page-login__list-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #ffffff;
}

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

.page-login__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  padding: 12px 25px;
  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;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
}

.page-login__app-download-info {
  margin-top: 50px;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-login__app-description {
  font-size: 1em;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-login__app-image {
  max-width: 100%;
  height: auto;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__news-link {
  color: #ffffff;
  text-decoration: none;
}

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

.page-login__read-more {
  display: inline-block;
  margin-top: 15px;
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
}

.page-login__read-more:hover {
  text-decoration: underline;
}

.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);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  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-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFF00;
}

.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 value */
  padding: 15px 25px 25px;
}

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

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

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__description {
    font-size: 1em;
  }
  .page-login__card-title {
    font-size: 1.5em;
  }
  .page-login__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__content-area {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__features-grid, .page-login__steps-grid, .page-login__news-grid {
    grid-template-columns: 1fr;
  }
  .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__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__features-section,
  .page-login__how-to-login-section,
  .page-login__troubleshoot-section,
  .page-login__cta-section,
  .page-login__faq-section,
  .page-login__latest-news-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }
  .page-login__faq-question {
    font-size: 1.1em;
  }
  .page-login__faq-answer p {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__login-card {
    padding: 20px;
  }
  .page-login__form-input {
    font-size: 0.9em;
  }
  .page-login__btn-primary {
    font-size: 1em;
  }
  .page-login__hero-content {
    padding-top: 20px; /* Adjust for smaller screens */
  }
}