.page-login {
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--secondary-color, #000000);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background-color: #000000; /* Ensure dark background for hero */
}

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

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

.page-login__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

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

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

.page-login__login-card {
  background: rgba(0, 0, 0, 0.8);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  margin: 40px auto 0;
  border: 1px solid #FFD700;
}

.page-login__card-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: #FFD700;
  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 #FFD700;
  border-radius: 5px;
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 1em;
}

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

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

.page-login__checkbox-container {
  display: block;
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  user-select: none;
  color: #f0f0f0;
}

.page-login__checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.page-login__checkbox-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #eee;
  border-radius: 3px;
}

.page-login__checkbox-container:hover input ~ .page-login__checkbox-checkmark {
  background-color: #ccc;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark {
  background-color: #FFD700;
}

.page-login__checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark:after {
  display: block;
}

.page-login__checkbox-container .page-login__checkbox-checkmark:after {
  left: 6px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.page-login__forgot-password,
.page-login__register-link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover,
.page-login__register-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #FFD700;
  color: #000000; /* Ensure black text on gold button */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

.page-login__section {
  padding: 60px 20px;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

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

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

.page-login__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

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

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

.page-login__card {
  background-color: #0d0d0d;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffffff;
}

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

.page-login__card-heading {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-login__card-text {
  font-size: 1em;
  color: #cccccc;
}

.page-login__link-text {
  color: #FFD700;
  text-decoration: none;
  margin-top: 15px;
  display: inline-block;
  transition: color 0.3s ease;
}

.page-login__link-text:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-login__troubleshoot-item {
  background-color: #0d0d0d;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffffff;
}

.page-login__troubleshoot-heading {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-login__troubleshoot-text {
  color: #cccccc;
  margin-bottom: 15px;
}

.page-login__flex-container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-login__mobile-app-content {
  flex: 1;
  min-width: 300px;
}

.page-login__mobile-app-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-login__mobile-app-image {
  width: 100%;
  height: auto;
  max-width: 450px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-login__app-feature-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: #f0f0f0;
}

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

.page-login__download-button {
  margin-top: 30px;
}

.page-login__faq-list {
  margin-top: 40px;
}

.page-login__faq-item {
  background-color: #0d0d0d;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.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;
  color: #FFD700;
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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;
  color: #cccccc;
}

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

.page-login__faq-answer p {
  margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__login-card {
    max-width: 400px;
  }
  .page-login__flex-container {
    flex-direction: column;
    gap: 30px;
  }
  .page-login__mobile-app-content,
  .page-login__mobile-app-image-wrapper {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 500px;
    padding: 60px 15px;
  }
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__login-card {
    padding: 30px;
    max-width: 100%;
  }
  .page-login__card-title {
    font-size: 1.8em;
  }
  .page-login__section {
    padding: 40px 15px;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-login__grid-container {
    grid-template-columns: 1fr;
  }
  .page-login__card,
  .page-login__troubleshoot-item {
    padding: 25px;
  }
  .page-login__card-heading,
  .page-login__troubleshoot-heading {
    font-size: 1.3em;
  }
  .page-login__app-features {
    margin: 20px 0;
  }
  .page-login__app-feature-item {
    font-size: 0.95em;
  }
  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image, video, button responsive requirements */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-card,
  .page-login__troubleshoot-item,
  .page-login__mobile-app-content,
  .page-login__mobile-app-image-wrapper,
  .page-login__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll for containers */
  }
  .page-login__btn-primary,
  .page-login__forgot-password,
  .page-login__register-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__checkbox-container {
    margin-bottom: 0;
  }
  .page-login__login-button,
  .page-login__download-button {
    margin-top: 20px;
  }
  .page-login__login-form {
    width: 100%;
  }
  .page-login__form-input {
    width: calc(100% - 20px) !important; /* Adjust for padding */
  }
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset to hero */
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__card-title {
    font-size: 1.5em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-login__faq-answer {
    padding: 0 15px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 12px 15px;
  }
}