.page-login {
  color: #ffffff; /* Dark body background #0a0a0a, so text must be light */
  background-color: #0a0a0a; /* Ensure page content matches body background for consistency */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  box-sizing: border-box;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 1;
}

.page-login__hero-section .page-login__container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-login__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold brand color for title */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for form background */
  border-radius: 10px;
  padding: 30px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #FFD700; /* Gold for labels */
  font-weight: bold;
}

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #8B0000; /* Dark red border */
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.5); /* Darker input background */
  color: #ffffff;
  font-size: 1em;
}

.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.95em;
}

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

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

.page-login__checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.page-login__checkbox-container:hover input ~ .page-login__checkmark {
  background-color: rgba(255, 255, 255, 0.3);
}

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

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

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

.page-login__checkbox-container .page-login__checkmark:after {
  left: 6px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #0a0a0a; /* Dark text for checkmark */
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

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

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

.page-login__btn-primary {
  background-color: #FFD700; /* Gold button */
  color: #0a0a0a; /* Dark text for contrast */
  padding: 12px 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;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-login__register-prompt {
  margin-top: 20px;
  color: #f0f0f0;
}

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

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

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

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

.page-login__benefits-section,
.page-login__steps-section,
.page-login__troubleshooting-section,
.page-login__security-section,
.page-login__faq-section,
.page-login__cta-section {
  padding: 60px 0;
}

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

.page-login__benefit-card,
.page-login__step-card,
.page-login__issue-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent dark background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-login__benefit-card:hover,
.page-login__step-card:hover,
.page-login__issue-card:hover {
  transform: translateY(-10px);
}

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

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

.page-login__benefit-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-top: 15px;
}

.page-login__benefit-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-login__benefit-list li::before {
  content: '✔';
  color: #FFD700;
  position: absolute;
  left: 0;
  top: 0;
}

.page-login__step-number {
  font-size: 3em;
  color: #FFD700;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-login__tip-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #f0f0f0;
}

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

.page-login__text-link:hover {
  color: #e0b300;
}

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

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

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

.page-login__security-image {
  max-width: 100%;
  height: auto;
  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);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(0deg); /* No rotation for '-' */
}

.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;
}

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

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

.page-login__btn-secondary {
  background-color: #8B0000; /* Dark red button */
  color: #ffffff;
  padding: 12px 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;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-secondary:hover {
  background-color: #6a0000;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 3em;
  }

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

@media (max-width: 768px) {
  .page-login__hero-title {
    font-size: 2.5em;
  }

  .page-login__hero-description {
    font-size: 1em;
  }

  .page-login__login-form-wrapper {
    padding: 20px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__section-title {
    font-size: 1.8em;
    padding-top: 20px;
  }

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

  .page-login__benefits-grid,
  .page-login__steps-grid,
  .page-login__troubleshooting-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__security-content {
    flex-direction: column;
  }

  .page-login__security-image-wrapper {
    order: -1; /* Image above text on mobile */
  }

  .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;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile responsive for all images */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile responsive for all image containers */
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__steps-section,
  .page-login__troubleshooting-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-section,
  .page-login__container,
  .page-login__benefit-card,
  .page-login__step-card,
  .page-login__issue-card,
  .page-login__security-image-wrapper,
  .page-login__faq-item,
  .page-login__login-form-wrapper,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Override specific padding for hero section to prevent double padding */
  .page-login__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-login__hero-section .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure buttons are full width on mobile */
  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Content area image CSS dimensions lower bound */
  .page-login__benefit-image,
  .page-login__security-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

}

/* Color contrast safety checks */
/* Ensure text is visible on various backgrounds */
.page-login p, .page-login li {
  color: #f0f0f0; /* Slightly off-white for better readability on pure black */
}

.page-login__card-title {
  color: #FFD700;
}

.page-login__faq-question {
  color: #FFD700;
}

.page-login__faq-toggle {
  color: #FFD700;
}

.page-login__btn-primary {
  background-color: #FFD700;
  color: #0a0a0a; /* Dark text for gold button */
}

.page-login__btn-secondary {
  background-color: #8B0000;
  color: #ffffff;
}

.page-login__text-link {
  color: #FFD700;
}