.page-login {
  padding-top: var(--header-offset, 120px);
  background-color: #f5f5f5;
  color: #333333;
  font-family: Arial, sans-serif;
}

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

.page-login__hero-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  text-align: center;
  background-color: #0047AB;
  color: #ffffff;
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.2;
  filter: grayscale(50%); /* Allowed for background effect, not for main content images */
}

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

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

.page-login__main-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.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, transform 0.3s ease;
  white-space: nowrap;
}

.page-login__button--primary {
  background-color: #FFD700;
  color: #0047AB;
  border: 2px solid #FFD700;
}

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

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

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

.page-login__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
  color: #0047AB;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: #555555;
}

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

.page-login__form-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  background: linear-gradient(135deg, #0047AB, #002c6b);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-login__form-illustration {
  flex: 1 1 400px;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Ensure image meets minimum size requirement */
  min-height: 200px;
}

.page-login__login-form {
  flex: 1 1 350px;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #999999;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 10px;
}

.page-login__forgot-password,
.page-login__register-link {
  color: #0047AB;
  text-decoration: none;
  font-size: 0.95em;
}

.page-login__forgot-password:hover,
.page-login__register-link:hover {
  text-decoration: underline;
  color: #FFD700;
}

.page-login__button--submit {
  width: 100%;
  background-color: #FFD700;
  color: #0047AB;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

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

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

.page-login__process-item::before {
  counter-increment: step-counter;
  content: "0" counter(step-counter);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #0047AB;
  color: #ffffff;
  font-size: 1.5em;
  font-weight: bold;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid #f5f5f5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-login__process-step-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #0047AB;
  margin-top: 25px; /* Adjust for counter */
  margin-bottom: 15px;
}

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

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

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

.page-login__security-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-login__security-icon {
  width: 250px;
  height: auto;
  margin-bottom: 25px;
  object-fit: contain;
  min-width: 200px; /* Ensure image meets minimum size requirement */
  min-height: 200px;
}

.page-login__security-item-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #0047AB;
  margin-bottom: 15px;
}

.page-login__security-item-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

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

.page-login__faq-list {
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-login__faq-question {
  background-color: #f9f9f9;
  color: #0047AB;
  padding: 18px 25px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #0047AB;
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-arrow {
  transform: rotate(180deg);
}

.page-login__faq-answer {
  padding: 0 25px;
  background-color: #ffffff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 200px; /* Adjust based on expected content height */
  padding: 15px 25px 25px 25px;
}

.page-login__faq-answer p {
  margin: 0;
  line-height: 1.6;
  color: #555555;
}

.page-login__faq-cta {
  text-align: center;
  margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 60px 0;
  }
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__button {
    width: 80%;
    max-width: 300px;
  }
  .page-login__section-title {
    font-size: 1.8em;
    margin-top: 40px;
  }
  .page-login__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__form-wrapper {
    flex-direction: column;
    padding: 30px;
  }
  .page-login__form-illustration {
    order: -1; /* Move illustration above form on mobile */
    margin-bottom: 30px;
    max-width: 100%;
  }
  .page-login__login-form {
    width: 100%;
  }
  .page-login__process-item::before {
    font-size: 1.2em;
    width: 40px;
    height: 40px;
    top: -10px;
  }
  .page-login__process-step-title {
    font-size: 1.3em;
  }
  .page-login__security-grid {
    grid-template-columns: 1fr;
  }
  .page-login__security-icon {
    width: 200px;
    height: auto;
  }
  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__hero-description {
    font-size: 0.9em;
  }
  .page-login__button {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__login-form {
    padding: 20px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-login__forgot-password, .page-login__register-link {
    font-size: 0.9em;
  }
}