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

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

.page-login__hero-section {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(139, 0, 0, 0.1));
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-login__hero-title {
  font-size: 3.2em;
  color: #8B0000; /* Burgundy Red */
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

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

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
  min-width: 200px; /* Enforce min-width */
  min-height: 200px; /* Enforce min-height */
}

.page-login__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Burgundy Red */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  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: #FFD700; /* Golden */
  border-radius: 2px;
}

.page-login__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #666666;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-form-section {
  background-color: #ffffff;
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}

.page-login__form {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}

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

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

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

.page-login__form-input:focus {
  border-color: #FFD700; /* Golden */
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 0.95em;
}

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  transform: scale(1.2);
}

.page-login__checkbox-label {
  color: #555;
}

.page-login__forgot-password {
  color: #8B0000; /* Burgundy Red */
  text-decoration: none;
  font-weight: bold;
}

.page-login__forgot-password:hover {
  text-decoration: underline;
  color: #FFD700; /* Golden */
}

.page-login__submit-btn {
  width: 100%;
  padding: 15px;
  background-color: #FFD700; /* Golden */
  color: #8B0000; /* Burgundy Red */
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.page-login__submit-btn:hover {
  background-color: #e6c200; /* Darker Golden */
  transform: translateY(-2px);
}

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

.page-login__register-link {
  color: #8B0000; /* Burgundy Red */
  text-decoration: none;
  font-weight: bold;
}

.page-login__register-link:hover {
  text-decoration: underline;
  color: #FFD700; /* Golden */
}

.page-login__login-process-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

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

.page-login__process-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  counter-increment: step-counter;
  position: relative;
  text-align: center;
  border-top: 5px solid #FFD700;
}

.page-login__process-item::before {
  content: "Step " counter(step-counter);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #8B0000; /* Burgundy Red */
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9em;
  box-shadow: 0 2px 10px rgba(139, 0, 0, 0.3);
}

.page-login__process-step-title {
  font-size: 1.5em;
  color: #8B0000; /* Burgundy Red */
  margin-top: 20px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-login__security-section {
  padding: 60px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
}

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

.page-login__security-item {
  background: #fdfdfd;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  text-align: center;
}

.page-login__security-item-title {
  font-size: 1.4em;
  color: #FFD700; /* Golden */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__security-item-description {
  color: #666;
  font-size: 1em;
}

.page-login__security-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-top: 40px;
  min-width: 200px; /* Enforce min-width */
  min-height: 200px; /* Enforce min-height */
}

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

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #8B0000; /* Burgundy Red */
  cursor: pointer;
  background-color: #fff;
  transition: background-color 0.3s ease;
}

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

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFD700; /* Golden */
  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;
  color: #666;
  font-size: 1em;
  line-height: 1.8;
}

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

.page-login__faq-answer a {
  color: #8B0000;
  text-decoration: underline;
}

.page-login__faq-answer a:hover {
  color: #FFD700;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-login__hero-title {
    font-size: 2.8em;
  }

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

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

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

@media (max-width: 768px) {
  .page-login {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }

  .page-login__hero-section {
    padding: 60px 0;
  }

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

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

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

  .page-login__section-intro {
    font-size: 0.95em;
  }

  .page-login__form {
    padding: 30px 20px;
  }

  .page-login__submit-btn {
    font-size: 1.1em;
    padding: 12px;
  }

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

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

  /* Mobile content area images must not cause horizontal scroll */
  .page-login__hero-image,
  .page-login__security-image,
  .page-login__container img {
    max-width: 100%;
    height: auto;
  }

  /* Ensure content area images are not tiny */
  .page-login__hero-image,
  .page-login__security-image {
      min-width: 200px;
      min-height: 200px;
      width: 100%; /* Override any specific width to ensure responsiveness */
  }
}

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

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

  .page-login__form {
    padding: 25px 15px;
  }

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