.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f4f7f6; /* Inherited from shared.css body */
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, #1A237E, #FFC107);
  color: #ffffff;
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  margin-top: -80px; /* Overlap with image slightly for visual effect */
}

.page-login__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1A237E; /* Dark blue for contrast on light background */
  line-height: 1.2;
}

.page-login__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  text-align: center;
}

.page-login__btn-primary {
  background: #1A237E;
  color: #ffffff;
  border: 2px solid #1A237E;
}

.page-login__btn-primary:hover {
  background: #283593;
  border-color: #283593;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-login__btn-secondary {
  background: #FFC107;
  color: #1A237E;
  border: 2px solid #FFC107;
}

.page-login__btn-secondary:hover {
  background: #FFD54F;
  border-color: #FFD54F;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-login__section {
  padding: 80px 20px;
  text-align: center;
}

.page-login__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1A237E;
}

.page-login__section-title--white {
  color: #ffffff;
}

.page-login__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-login__section-description--white {
  color: #f0f0f0;
}

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

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-login__dark-bg {
  background-color: #1A237E;
  color: #ffffff;
}

.page-login__form-section {
  padding-top: 120px; /* Adjusted for visual balance below hero */
}

.page-login__login-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  text-align: left;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333333;
  font-size: 1em;
}

.page-login__form-input {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input:focus {
  border-color: #FFC107;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
  outline: none;
}

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

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

.page-login__checkbox {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #1A237E;
}

.page-login__checkbox-label {
  font-size: 0.95em;
  color: #555555;
}

.page-login__forgot-password {
  color: #1A237E;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #FFC107;
  text-decoration: underline;
}

.page-login__submit-button {
  width: 100%;
  padding: 18px;
  font-size: 1.2em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__submit-button.page-login__btn-primary {
  background: #1A237E;
  color: #ffffff;
}

.page-login__submit-button.page-login__btn-primary:hover {
  background: #283593;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

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

.page-login__register-link:hover {
  color: #1A237E;
  text-decoration: underline;
}

.page-login__security-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

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

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.page-login__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
}

.page-login__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1A237E;
}

.page-login__feature-title--white {
  color: #ffffff;
}

.page-login__feature-description {
  font-size: 1em;
  color: #555555;
}

.page-login__feature-description--white {
  color: #f0f0f0;
}

.page-login__faq-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.page-login__faq-list {
  max-width: 800px;
  margin: 50px auto 0 auto;
  text-align: left;
}

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

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #555555;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important; /* 🚨 Using !important and large value */
  padding: 20px !important;
  opacity: 1;
  background: #fdfdfd;
  border-top: 1px solid #eeeeee;
  border-radius: 0 0 8px 8px;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-login__faq-question:active {
  background: #eeeeee;
}

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #1A237E;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-login__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: #FFC107;
  transform: rotate(45deg);
}

.page-login__new-user-cta {
  padding-top: 100px;
  padding-bottom: 100px;
  text-align: center;
}

.page-login__info-block {
  padding-top: 100px;
  padding-bottom: 100px;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-content {
    padding: 30px;
  }
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2.2em;
  }
  .page-login__login-form {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
    padding-bottom: 40px;
  }
  .page-login__hero-content {
    margin-top: -50px;
    padding: 25px;
  }
  .page-login__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-login__intro-text {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__cta-button {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 1em;
  }
  .page-login__section {
    padding: 60px 15px;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-login__login-form {
    padding: 25px;
  }
  .page-login__form-input {
    padding: 12px 15px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
  }
  .page-login__submit-button {
    padding: 15px;
    font-size: 1.1em;
    width: 100% !important; /* Ensure button full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__security-features {
    grid-template-columns: 1fr;
  }
  .page-login__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-login__feature-title {
    font-size: 1.3em;
  }
  .page-login__faq-question {
    padding: 15px;
  }
  .page-login__faq-question h3 {
    font-size: 1em;
  }
  .page-login__faq-toggle {
    font-size: 1.5em;
    width: 25px;
    height: 25px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px !important;
  }
  /* All images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-form,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__feature-item {
    padding: 20px;
  }
}