.page-login {
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #003366; /* Main brand color for hero background */
  color: #ffffff;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-login__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFCC00; /* Auxiliary brand color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.page-login__btn--primary {
  background-color: #FFCC00; /* Auxiliary color for primary action */
  color: #003366;
  border: 2px solid #FFCC00;
}

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

.page-login__btn--secondary {
  background-color: transparent;
  color: #FFCC00;
  border: 2px solid #FFCC00;
}

.page-login__btn--secondary:hover {
  background-color: rgba(255, 204, 0, 0.1);
  transform: translateY(-2px);
}

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

.page-login__section {
  margin-bottom: 60px;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-login__section-title {
  font-size: 2.2em;
  color: #003366; /* Main brand color for section titles */
  margin-bottom: 25px;
  text-align: center;
}

.page-login__section-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: justify;
}

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

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

.page-login__process-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #CC0000; /* Accent color for step numbers */
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  font-weight: bold;
}

.page-login__process-step-title {
  font-size: 1.4em;
  color: #003366;
  margin-bottom: 10px;
}

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

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

.page-login__security-item {
  background-color: #f9f9f9;
  border-left: 5px solid #003366;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-login__security-tip-title {
  font-size: 1.3em;
  color: #003366;
  margin-bottom: 10px;
}

.page-login__security-tip-description {
  font-size: 0.95em;
  color: #666666;
}

.page-login__security-image, .page-login__register-image {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-login__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: block;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  color: #003366;
  cursor: pointer;
  position: relative;
  user-select: none;
  background-color: #eef;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  line-height: 1;
  color: #CC0000;
  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 20px 20px 20px;
  font-size: 1em;
  color: #555555;
  line-height: 1.8;
  border-top: 1px solid #eee;
}

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

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

.page-login__cta-buttons--bottom {
  margin-top: 60px;
}

/* Responsive adjustments */
@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: 60px 15px;
  }

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

  .page-login__intro-text {
    font-size: 1em;
  }

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

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

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

  .page-login__section {
    padding: 30px;
  }

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

  .page-login__process-item {
    padding-left: 50px;
  }

  .page-login__process-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
  }

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

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

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

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

  /* Mobile specific image sizing */
  .page-login__hero-image,
  .page-login__security-image,
  .page-login__register-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure min size for mobile */
    min-height: 200px; /* Ensure min size for mobile */
  }

  /* Ensure no horizontal overflow */
  .page-login {
    overflow-x: hidden;
  }
}

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

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