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

.page-login__hero-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  overflow: hidden;
  background-color: #0056b3; /* A darker shade of primary blue for fallback */
}

.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;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  width: 100%;
}

.page-login__hero-content {
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 500px;
}

.page-login__main-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #ffc107; /* Auxiliary gold color for emphasis */
  line-height: 1.2;
}

.page-login__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-login__form-wrapper {
  background: #ffffff; /* White background for the form */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #333333;
  text-align: left;
}

.page-login__form-title {
  font-size: 1.8em;
  margin-bottom: 25px;
  color: #007bff;
  text-align: center;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
}

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555555;
}

.page-login__input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
}

.page-login__input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.page-login__login-button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #007bff; /* Primary blue */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

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

.page-login__links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 0.9em;
}

.page-login__forgot-password-link,
.page-login__register-link {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-login__section-wrapper {
  margin-bottom: 60px;
}

.page-login__section-title {
  font-size: 2.2em;
  color: #007bff;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-login__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #ffc107;
  border-radius: 2px;
}

.page-login__grid-container {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-login__grid-container--reverse {
  flex-direction: row-reverse;
}

.page-login__text-content {
  flex: 1;
}

.page-login__text-content p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #444444;
}

.page-login__login-steps {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
}

.page-login__step-item {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #444444;
}

.page-login__step-item strong {
  color: #007bff;
}

.page-login__image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-login__cta-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #ffc107; /* Auxiliary gold color */
  color: #333333;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-login__cta-button:hover {
  background-color: #e0a800; /* Darker gold on hover */
  transform: translateY(-2px);
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-login__list-item {
  background: #f8f9fa;
  border-left: 5px solid #007bff;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.05em;
  color: #444444;
}

.page-login__list-item strong {
  color: #0056b3;
}

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

.page-login__faq-item {
  background: #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;
  font-size: 1.15em;
  font-weight: bold;
  color: #007bff;
  cursor: pointer;
  position: relative;
  background-color: #f0f8ff; /* Light blue background for questions */
  border-bottom: 1px solid #e0e0e0;
}

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

.page-login__faq-question::-webkit-details-marker {
  display: none;
}

.page-login__faq-question .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.2s 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;
  line-height: 1.7;
  background-color: #fdfdfd;
}

.page-login__cta-area {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: #007bff;
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__cta-text {
  font-size: 1.2em;
  margin-bottom: 25px;
}

.page-login__cta-button--secondary {
  background-color: #ffc107; /* Auxiliary gold color */
  color: #333333;
}

.page-login__cta-button--secondary:hover {
  background-color: #e0a800;
}

.page-login__download-cta {
  text-align: center;
  padding: 80px 20px;
  background-color: #f0f0f0;
  margin-top: 40px;
}

.page-login__download-title {
  font-size: 2.5em;
  color: #007bff;
  margin-bottom: 20px;
}

.page-login__download-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__download-button {
  display: inline-block;
  padding: 18px 40px;
  background-color: #ffc107;
  color: #333333;
  border-radius: 8px;
  font-size: 1.3em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-login__download-button:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__grid-container {
    flex-direction: column;
  }
  .page-login__grid-container--reverse {
    flex-direction: column;
  }
  .page-login__image {
    width: 100%; /* Ensure images are responsive */
    max-width: 400px; /* Cap size for smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 400px;
    padding: 30px 15px;
  }
  .page-login__hero-content {
    padding: 20px;
  }
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__intro-text {
    font-size: 1em;
  }
  .page-login__form-title {
    font-size: 1.5em;
  }
  .page-login__input {
    padding: 10px;
  }
  .page-login__login-button {
    padding: 12px 15px;
    font-size: 1em;
  }
  .page-login__content-area {
    padding: 40px 15px;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__image {
    max-width: 100%; /* Important: prevent overflow */
    height: auto; /* Important: maintain aspect ratio */
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px; /* Enforce minimum image size */
  }
  .page-login__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-login__download-title {
    font-size: 2em;
  }
  .page-login__download-description {
    font-size: 1em;
  }
  .page-login__download-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-login__text-content,
  .page-login__image-container {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-login__hero-content {
    padding: 15px;
  }
  .page-login__main-title {
    font-size: 1.5em;
  }
  .page-login__form-title {
    font-size: 1.3em;
  }
  .page-login__links {
    flex-direction: column;
    gap: 10px;
  }
  .page-login__section-title {
    font-size: 1.4em;
  }
  .page-login__download-title {
    font-size: 1.8em;
  }
}