.page-login {
  color: #ffffff; /* Light text on dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #1a1a1a; /* Body background from shared.css */
}

.page-login__hero-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Fallback for hero image */
}

.page-login__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.page-login__main-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold primary color */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-login__intro-text {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-login__form-wrapper {
  position: relative;
  max-width: 450px;
  margin: 40px auto 0;
  padding: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  background-color: rgba(0, 0, 0, 0.8);
}

.page-login__form-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 0;
  border-radius: 10px;
}

.page-login__form {
  position: relative;
  z-index: 1;
  text-align: left;
}

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

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #8B0000;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

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

.page-login__form-input:focus {
  border-color: #FFD700;
  outline: none;
}

.page-login__login-button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #FFD700; /* Primary gold color */
  color: #1a1a1a;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 25px;
}

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

.page-login__form-footer {
  text-align: center;
  margin-top: 20px;
  color: #ccc;
}

.page-login__register-link,
.page-login__forgot-password-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

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

.page-login__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
}

.page-login__section-description {
  font-size: 1.1em;
  line-height: 1.7;
  color: #e0e0e0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-login__login-steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 60px;
}

.page-login__step-item {
  position: relative;
  font-size: 1.15em;
  line-height: 1.8;
  color: #f0f0f0;
  margin-bottom: 25px;
  padding-left: 50px;
}

.page-login__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  background-color: #8B0000; /* Auxiliary red color */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
}

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

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

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

.page-login__security-icon {
  width: 250px; /* Enforcing minimum size */
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.page-login__security-heading {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-login__security-text {
  font-size: 1em;
  color: #ccc;
  line-height: 1.6;
}

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

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__faq-question {
  background-color: #8B0000; /* Auxiliary red color */
  color: #ffffff;
  width: 100%;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  text-align: left;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle-icon {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-login__faq-question[aria-expanded="true"] .page-login__faq-toggle-icon {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  padding: 0 25px;
  background-color: rgba(255, 255, 255, 0.03);
  color: #e0e0e0;
  font-size: 1em;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-login__faq-answer.page-login__faq-answer--expanded {
  max-height: 300px; /* Adjust as needed for content length */
  padding: 15px 25px 25px;
}

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

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

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

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

  .page-login__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }

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

  .page-login__form-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-login__content-area {
    padding: 40px 15px;
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-login__login-steps {
    margin-bottom: 40px;
  }

  .page-login__step-item {
    font-size: 1em;
    padding-left: 45px;
    margin-bottom: 20px;
  }

  .page-login__step-item::before {
    width: 30px;
    height: 30px;
    font-size: 1.1em;
  }

  .page-login__security-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 50px;
  }
  
  .page-login__security-icon {
    max-width: 100%; 
    height: auto;
    min-width: 200px;
    min-height: 200px;
    object-fit: contain;
  }

  .page-login__security-heading {
    font-size: 1.3em;
  }

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

  .page-login__faq-answer {
    padding: 0 20px;
  }

  .page-login__faq-answer.page-login__faq-answer--expanded {
    padding: 10px 20px 20px;
  }

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

  /* Ensure all images in content area are responsive and not too small */
  .page-login img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}

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

  .page-login__intro-text {
    font-size: 0.9em;
  }

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

  .page-login__form-input {
    padding: 10px;
  }

  .page-login__login-button {
    padding: 12px 15px;
    font-size: 1em;
  }

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

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

  .page-login__faq-answer {
    font-size: 0.9em;
  }
}