.page-login {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #FFFFFF; /* Explicitly set page background to match body */
}

.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Dark background for hero for strong contrast */
  color: #FFFFFF; /* Light text for dark hero background */
  position: relative;
  overflow: hidden;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #FCBC45; /* Highlight title with login color */
}

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

.page-login__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-login__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: 2px solid transparent;
}

.page-login__button--login {
  background-color: #FCBC45;
  color: #000000; /* Dark text on login button */
  border-color: #FCBC45;
}

.page-login__button--login:hover {
  background-color: #e0a73b;
  transform: translateY(-2px);
}

.page-login__button--register {
  background-color: #FFFFFF;
  color: #000000; /* Dark text on register button */
  border-color: #FFFFFF;
}

.page-login__button--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

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

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

.page-login__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #FFFFFF;
  color: #333333;
}

.page-login__secondary-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-login__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-login__ordered-list {
  list-style: none;
  counter-reset: login-step;
  padding: 0;
  margin-bottom: 40px;
}

.page-login__list-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 30px;
}

.page-login__list-item::before {
  counter-increment: login-step;
  content: counter(login-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background-color: #FCBC45;
  color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
}

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

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

.page-login__call-to-action {
  text-align: center;
  margin-top: 40px;
}

.page-login__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

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

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

.page-login__security-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-login__security-image {
  width: 100%; /* Ensures image fills card width */
  max-width: 400px; /* Max width for larger screens */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px;
}

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

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

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

.page-login__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.page-login__faq-question {
  display: block;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #000000;
  position: relative;
  user-select: none; /* Prevent text selection on click */
  transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: translateY(-50%) rotate(45deg);
}

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

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

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

  .page-login__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__button {
    width: 100%;
    max-width: 300px; /* Constrain button width on mobile */
  }

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

  .page-login__list-item {
    padding-left: 60px;
  }

  .page-login__list-item::before {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }

  .page-login__security-grid {
    grid-template-columns: 1fr;
  }

  .page-login__security-image {
    max-width: 100% !important; /* Ensure images don't overflow on mobile */
    height: auto !important; /* Maintain aspect ratio */
    min-width: 200px; /* Enforce min size */
    min-height: 200px;
  }

  .page-login__content-area {
    padding: 30px 15px;
  }

  .page-login__paragraph, .page-login__card-description, .page-login__list-description, .page-login__faq-answer {
    font-size: 0.95em;
  }

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

  /* Ensure content area images do not cause horizontal scroll */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
  }
}