/* style/login.css */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.4); /* Darken image for text readability */
}

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

.page-login__description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

.page-login__login-form {
  display: flex;
  flex-direction: column;
}

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

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

.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-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.9em;
}

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #017439;
}

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

.page-login__forgot-password:hover {
  color: #00a04b;
}

.page-login__btn-login {
  padding: 15px 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;
  text-decoration: none;
  text-align: center;
}

.page-login__btn-primary {
  background-color: #C30808; /* Custom color for Login button */
  color: #FFFFFF; /* Adjusted for WCAG AA contrast */
}

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

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

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

.page-login__register-link:hover {
  color: #00a04b;
}

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

.page-login__section-intro {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 50px auto;
  text-align: center;
}

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

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

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

.page-login__text-white {
  color: #ffffff;
}

/* Benefits Section */
.page-login__benefits-section .page-login__section-title,
.page-login__benefits-section .page-login__section-intro {
  color: #333333;
}

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

.page-login__benefit-card {
  background: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-login__card-description {
  font-size: 1em;
  color: #555555;
}

/* How to Login Section */
.page-login__how-to-login .page-login__section-title,
.page-login__how-to-login .page-login__section-intro {
  color: #ffffff;
}

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

.page-login__step-card {
  background: rgba(255, 255, 255, 0.95); /* Light background for steps */
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-login__step-number {
  font-size: 3em;
  color: #017439;
  font-weight: bold;
  margin-bottom: 15px;
  display: block;
  line-height: 1;
}

.page-login__step-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-login__step-description {
  font-size: 0.95em;
  color: #555555;
}

.page-login__troubleshooting {
  margin-top: 40px;
  text-align: center;
}

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

.page-login__troubleshooting-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto 30px auto;
  text-align: left;
}

.page-login__troubleshooting-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  border-left: 5px solid #00a04b;
  font-size: 1em;
}

.page-login__troubleshooting-item strong {
  color: #ffffff;
}

.page-login__btn-support {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #ffffff;
  background-color: transparent;
  color: #ffffff;
}

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

/* App Download Section */
.page-login__app-download-section .page-login__section-title,
.page-login__app-download-section .page-login__section-intro {
  color: #333333;
}

.page-login__app-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.page-login__app-text-content {
  flex: 1;
  min-width: 300px;
}

.page-login__app-features-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-login__app-feature-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #555555;
  position: relative;
  padding-left: 30px;
}

.page-login__app-feature-item::before {
  content: '✔';
  color: #017439;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-login__btn-download {
  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, transform 0.2s ease;
  background-color: #017439;
  color: #ffffff;
  border: none;
}

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

.page-login__app-image-wrapper {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.page-login__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Video Section */
.page-login__video-section .page-login__section-title,
.page-login__video-section .page-login__section-intro {
  color: #ffffff;
}

.page-login__video-link-wrapper {
  display: block;
  text-decoration: none;
  margin: 40px auto;
  max-width: 900px;
  position: relative;
}

.page-login__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.page-login__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-login__video-cta {
  font-size: 1.1em;
  margin-top: 20px;
  text-align: center;
}

/* FAQ Section */
.page-login__faq-section .page-login__section-title,
.page-login__faq-section .page-login__section-intro {
  color: #333333;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-login__faq-item {
  background: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-login__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-login__faq-item[open] > .page-login__faq-question {
  background-color: #eaeaea;
}

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

.page-login__faq-answer {
  padding: 20px 25px;
  color: #555555;
  border-top: 1px solid #eee;
  font-size: 1em;
}

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

.page-login__faq-link {
    color: #017439;
    text-decoration: underline;
}

/* About Section */
.page-login__about-section .page-login__section-title,
.page-login__about-section .page-login__section-intro {
  color: #ffffff;
}

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

.page-login__about-text {
  flex: 1;
  min-width: 300px;
}

.page-login__about-subtitle {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #ffffff;
}

.page-login__about-text p {
  margin-bottom: 20px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__btn-learn-more {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #ffffff;
  background-color: transparent;
  color: #ffffff;
}

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

.page-login__about-image {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__login-form-wrapper {
    padding: 30px 20px;
    max-width: 100%;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__benefits-grid,
  .page-login__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-login__app-content {
    flex-direction: column-reverse; /* Image above text on mobile */
  }
  .page-login__app-image-wrapper {
    margin-bottom: 30px;
  }
  .page-login__about-content {
    flex-direction: column;
  }
  .page-login__about-image {
    order: -1; /* Image above text on mobile */
    margin-bottom: 30px;
  }

  /* Image and Video Responsive - IMPORTANT */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .page-login__login-form-wrapper,
  .page-login__app-content,
  .page-login__about-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-login__btn-login,
  .page-login__btn-download,
  .page-login__btn-support,
  .page-login__btn-learn-more,
  .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;
    text-align: center;
  }
  .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;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__login-form-wrapper {
    padding: 25px 15px;
  }
  .page-login__form-input {
    padding: 10px 12px;
  }
  .page-login__btn-login {
    padding: 12px 20px;
  }
  .page-login__step-number {
    font-size: 2.5em;
  }
  .page-login__card-title,
  .page-login__step-title {
    font-size: 1.3em;
  }
  .page-login__app-feature-item {
    font-size: 1em;
  }
  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 15px 20px;
  }
  .page-login__about-subtitle {
    font-size: 1.5em;
  }
}