.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-login__hero-section {
  position: relative;
  padding: 100px 0 60px; /* Adjust padding-top for header offset */
  background-color: #1A237E; /* Main brand color for hero */
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold accent for title */
  font-weight: bold;
  line-height: 1.2;
}

.page-login__subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-form-wrapper {
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background for form */
  padding: 40px;
  border-radius: 10px;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

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

.page-login__form-group {
  text-align: left;
}

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #FFD700; /* Gold border */
  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;
  font-size: 0.9em;
}

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #FFD700; /* Gold checkbox */
}

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

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

.page-login__btn-primary {
  background-color: #FFD700; /* Gold button */
  color: #1A237E; /* Dark indigo text */
  padding: 14px 25px;
  border: none;
  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;
  box-sizing: border-box;
}

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

.page-login__no-account-text {
  margin-top: 20px;
  font-size: 0.9em;
  color: #ffffff;
}

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

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

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

.page-login__section-description {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

.page-login__light-bg {
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff; /* Light text */
  padding: 80px 0;
}

.page-login__dark-bg {
  background-color: #1A237E; /* Dark indigo background */
  color: #ffffff; /* Light text */
  padding: 80px 0;
}

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.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;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-login__benefit-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

/* Guide Section */
.page-login__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-login__step-item {
  text-align: center;
  position: relative;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__step-icon {
  width: 60px;
  height: 60px;
  background-color: #FFD700;
  color: #1A237E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

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

.page-login__step-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

.page-login__troubleshoot-section {
  margin-top: 60px;
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 10px;
}

.page-login__troubleshoot-title {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 25px;
  text-align: center;
}

.page-login__troubleshoot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.page-login__troubleshoot-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #FFD700;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-login__troubleshoot-item strong {
  color: #FFD700;
}

/* Security Section */
.page-login__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__feature-icon {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-login__feature-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-login__promo-card {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-login__promo-card:hover {
  transform: translateY(-5px);
}

.page-login__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-login__promo-title {
  font-size: 1.6em;
  color: #FFD700;
  margin: 20px 15px 10px;
}

.page-login__promo-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
  padding: 0 15px 25px;
}

.page-login__cta-buttons {
  margin-top: 50px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  padding: 14px 25px;
  border: 2px solid #FFD700;
  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;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A237E;
}

.page-login__btn-large {
  min-width: 200px;
}

/* FAQ Section */
.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;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: #1A237E;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

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

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

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: rgba(255, 255, 255, 0.8);
}

.page-login__faq-answer p {
  margin: 0 0 15px 0;
  padding-top: 15px; /* Add padding to top of content when expanded */
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px !important;
  padding-top: 10px !important; /* Adjust if p has padding-top */
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer a {
  color: #FFD700;
  text-decoration: none;
}

.page-login__faq-answer a:hover {
  text-decoration: underline;
}

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

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

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 80px 0 40px; /* Adjust padding for mobile */
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-login__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-login__subtitle {
    font-size: 1.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__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;
    padding: 0 15px;
  }

  .page-login__benefits-grid,
  .page-login__guide-steps,
  .page-login__security-features,
  .page-login__promotions-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .page-login__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-login__benefit-item,
  .page-login__step-item,
  .page-login__feature-item,
  .page-login__promo-card {
    padding: 20px;
  }

  .page-login__benefit-title,
  .page-login__step-title,
  .page-login__feature-title,
  .page-login__promo-title {
    font-size: 1.3em;
  }

  .page-login__troubleshoot-title {
    font-size: 1.5em;
  }

  .page-login__troubleshoot-item {
    font-size: 0.95em;
    padding: 12px 15px;
  }

  /* Image responsiveness */
  .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__login-form-wrapper,
  .page-login__benefits-grid,
  .page-login__guide-steps,
  .page-login__troubleshoot-section,
  .page-login__security-features,
  .page-login__promotions-grid,
  .page-login__faq-list,
  .page-login__cta-buttons {
    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__promo-image {
    height: 200px;
  }

  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-login__faq-answer {
    padding: 0 15px;
  }

  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px !important;
    padding-top: 10px !important;
  }
}

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

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

  .page-login__subtitle {
    font-size: 0.95em;
  }

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

  .page-login__section-description {
    font-size: 0.9em;
  }

  .page-login__benefit-title,
  .page-login__step-title,
  .page-login__feature-title,
  .page-login__promo-title {
    font-size: 1.2em;
  }
}