.page-login {
  color: #333333; /* Default text color for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* Minimum height for hero section */
  background-color: #f0f0f0;
}

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

.page-login__hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff; /* White text for contrast over hero image */
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
  max-width: 900px;
  margin: 0 auto;
}

.page-login__hero-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #ffc107; /* Auxiliary color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__hero-button {
  display: inline-block;
  background-color: #007bff; /* Primary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__hero-button:hover {
  background-color: #0056b3; /* Darker primary on hover */
}

.page-login__content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-login__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #ffc107; /* Auxiliary color */
  margin: 10px auto 0;
}

.page-login__section-description {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1em;
  color: #555555;
}

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

.page-login__login-card {
  background-color: #f8f9fa;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
}

.page-login__form-group {
  margin-bottom: 25px;
}

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

.page-login__form-input {
  width: calc(100% - 20px); /* Account for padding */
  padding: 12px 10px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  font-size: 1em;
}

.page-login__form-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.page-login__submit-button {
  background-color: #007bff; /* Primary color */
  color: #ffffff;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.page-login__submit-button:hover {
  background-color: #0056b3;
}

.page-login__forgot-password {
  color: #007bff; /* Primary color */
  text-decoration: none;
  font-size: 0.95em;
}

.page-login__forgot-password:hover {
  text-decoration: underline;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 1em;
  color: #555555;
}

.page-login__register-link {
  color: #007bff; /* Primary color */
  text-decoration: none;
  font-weight: bold;
}

.page-login__register-link:hover {
  text-decoration: underline;
}

.page-login__process-section {
  background-color: #f0f0f0;
  padding: 60px 0;
}

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

.page-login__process-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  text-align: center;
}

.page-login__process-item::before {
  counter-increment: login-step;
  content: counter(login-step);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffc107; /* Auxiliary color */
  color: #333333;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4em;
  font-weight: bold;
  border: 3px solid #007bff; /* Primary color border */
}

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

.page-login__process-step-description {
  color: #555555;
}

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

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

.page-login__security-item {
  text-align: center;
  padding: 25px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-login__security-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Constrain image size within item */
  margin-bottom: 20px;
  border-radius: 5px;
  display: block; /* Ensure image behaves as block for margin auto */
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-login__security-subtitle {
  font-size: 1.4em;
  color: #007bff; /* Primary color */
  margin-bottom: 10px;
}

.page-login__security-text {
  color: #555555;
}

.page-login__faq-section {
  background-color: #f0f0f0;
  padding: 60px 0;
}

.page-login__faq-container {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-login__faq-question {
  display: block;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  position: relative;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  line-height: 1;
  color: #007bff; /* Primary color */
  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;
  color: #555555;
  font-size: 0.95em;
}

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

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

  .page-login__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-login__login-card {
    padding: 30px 20px;
  }

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

  .page-login__submit-button,
  .page-login__forgot-password {
    width: 100%;
    text-align: center;
  }

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

  .page-login__security-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
  }

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

  .page-login__hero-section {
    min-height: 300px;
  }
}

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

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

  .page-login__hero-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }

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

  .page-login__login-card {
    padding: 25px 15px;
  }
}

/* Ensure content area images are responsive and not too small */
.page-login img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Override for specific image classes to ensure minimum size and responsiveness */
.page-login__security-image {
  max-width: 100%;
  width: 100%; /* Ensures it fills available width */
  height: auto;
  min-width: 200px;
  min-height: 200px;
  display: block;
}

/* Global image rules for content area - ensuring no small images */
.page-login img:not(.page-login__hero-image) {
  min-width: 200px;
  min-height: 200px;
}