.page-login {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-login__hero-section {
  background-color: #f8f9fa;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-login__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.page-login__hero-title {
  font-size: 2.8em;
  color: #007bff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
}

.page-login__hero-cta {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.page-login__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 150px; /* Ensure buttons are not too small */
  text-align: center;
}

.page-login__button--primary {
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #007bff;
}

.page-login__button--primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.page-login__button--secondary {
  background-color: transparent;
  color: #007bff;
  border: 2px solid #007bff;
}

.page-login__button--secondary:hover {
  background-color: #007bff;
  color: #ffffff;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 30px;
}

.page-login__hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.page-login__section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-login__section:nth-of-type(even) {
  background-color: #f0f0f0;
}

.page-login__section-title {
  font-size: 2em;
  color: #007bff;
  margin-bottom: 30px;
  text-align: center;
}

.page-login__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #444444;
  text-align: justify;
}

.page-login__login-steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__login-step-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  text-align: left;
}

.page-login__login-step-item::before {
  counter-increment: step-counter;
  content: "Step " counter(step-counter);
  position: absolute;
  top: -15px;
  left: 20px;
  background-color: #ffc107;
  color: #333333;
  padding: 5px 15px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
}

.page-login__login-step-title {
  font-size: 1.3em;
  color: #007bff;
  margin-top: 15px;
  margin-bottom: 10px;
}

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

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

.page-login__security-tip-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-left: 5px solid #ffc107;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
  text-align: left;
}

.page-login__security-tip-title {
  font-size: 1.25em;
  color: #007bff;
  margin-bottom: 10px;
}

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

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

.page-login__security-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-login__troubleshooting-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-login__troubleshooting-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-login__troubleshooting-title {
  font-size: 1.2em;
  color: #007bff;
  margin-bottom: 10px;
}

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

.page-login__cta-block {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px dashed #e0e0e0;
}

.page-login__cta-block .page-login__text-block {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 25px;
}

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

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

.page-login__faq-question {
  display: block;
  padding: 20px 25px;
  font-size: 1.15em;
  color: #007bff;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  user-select: none;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

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

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

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

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

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

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

.page-login__grid-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-login__text-block a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.page-login__text-block a:hover {
  text-decoration: underline;
}

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

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

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

  .page-login__button {
    width: 100%;
    max-width: 300px;
  }

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

  .page-login__login-steps,
  .page-login__security-tips,
  .page-login__image-grid {
    grid-template-columns: 1fr;
  }

  .page-login__container {
    padding: 0 15px;
  }

  /* Ensure content area images are responsive and do not overflow */
  .page-login img {
    max-width: 100%;
    height: auto;
  }
  .page-login {
    overflow-x: hidden;
  }
}

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

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

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

  .page-login__login-step-item::before {
    left: 15px;
  }

  .page-login__faq-question,
  .page-login__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__faq-toggle {
    right: 15px;
  }
}