.page-login {
  color: #333333; /* Dark text for light body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #f8f9fa; /* Light background for the page content */
}

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

.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #007bff, #0056b3); /* Primary color gradient */
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
}

.page-login__hero-content {
  z-index: 2;
  max-width: 800px;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffc107; /* Auxiliary color for emphasis */
}

.page-login__lead-text {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-login__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  opacity: 0.2;
}

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

.page-login__form-section {
  padding: 60px 0;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  margin: -50px auto 40px auto; /* Overlap with hero section */
  position: relative;
  z-index: 3;
  max-width: 600px;
}

.page-login__section-title {
  font-size: 2.5em;
  color: #007bff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 40px;
}

.page-login__input-group {
  display: flex;
  flex-direction: column;
}

.page-login__label {
  font-size: 1.1em;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333333;
}

.page-login__input {
  padding: 15px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.page-login__input:focus {
  border-color: #007bff;
  outline: none;
}

.page-login__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.page-login__button {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

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

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

.page-login__button--secondary {
  background-color: #ffc107;
  color: #333333;
  border: none;
}

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

.page-login__link {
  color: #007bff;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.3s ease;
}

.page-login__link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 20px;
  font-size: 1em;
}

.page-login__process-section {
  padding: 80px 0;
  background-color: #f0f2f5;
}

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

.page-login__process-item {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-login__process-item:hover {
  transform: translateY(-5px);
}

.page-login__process-image {
  width: 100%; /* Ensures image fits within its container */
  max-width: 400px; /* Constrain image width */
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 25px;
  border: 2px solid #ffc107;
}

.page-login__process-step-title {
  font-size: 1.5em;
  color: #007bff;
  margin-bottom: 15px;
}

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

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.page-login__security-item {
  background-color: #e9f5ff; /* Lighter blue for list items */
  padding: 15px 20px;
  border-left: 5px solid #007bff;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.6;
}

.page-login__faq-section {
  padding: 80px 0;
  background-color: #f0f2f5;
}

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

.page-login__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #fefefe;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: 500;
  color: #007bff;
  transition: transform 0.3s ease;
}

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

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

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 60px 20px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
  }

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

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

  .page-login__form-section {
    margin: -30px auto 30px auto;
    padding: 30px 0;
  }

  .page-login__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

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

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

  .page-login__button {
    width: 100%;
  }

  .page-login__process-section, .page-login__security-section, .page-login__faq-section {
    padding: 50px 0;
  }

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

  .page-login__process-image {
    max-width: 100%;
    width: 100%; /* Ensure mobile images don't overflow */
    height: auto;
  }
  
  .page-login__security-item {
    font-size: 1em;
  }

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

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