/* style/login.css */
.page-login {
  color: #ffffff; /* Light text for dark body background */
  background-color: #000000; /* Ensure consistency, though body is handled by shared */
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
}

.page-login__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability, not changing color */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text */
  padding: 30px;
  border-radius: 10px;
}

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

.page-login__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-login__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-login__cta-button--primary {
  background-color: #FFD700; /* Gold primary button */
  color: #8B0000; /* Deep red text */
  border: 2px solid #FFD700;
}

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

.page-login__cta-button--secondary {
  background-color: #8B0000; /* Deep red secondary button */
  color: #FFD700; /* Gold text */
  border: 2px solid #8B0000;
}

.page-login__cta-button--secondary:hover {
  background-color: #6a0000;
  transform: translateY(-2px);
}

.page-login__content-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-login__content-section:nth-of-type(odd) {
  flex-direction: row-reverse;
}

.page-login__section-heading {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  width: 100%;
  margin-bottom: 40px;
}

.page-login__text-block {
  flex: 1;
  min-width: 300px;
  font-size: 1.1em;
}

.page-login__text-block p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-login__section-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 600px; /* Ensure images are not too wide */
  height: auto;
}

/* Login Process Specific Styles */
.page-login__process-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-login__process-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #FFD700;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-login__process-step-title {
  color: #FFD700;
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
}

/* Security Tips Specific Styles */
.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-login__security-item {
  background-color: rgba(139, 0, 0, 0.2);
  border-left: 5px solid #FFD700;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-login__security-tip-title {
  color: #FFD700;
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
}

/* FAQ Specific Styles */
.page-login__faq-list {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
}

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

.page-login__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

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

.page-login__faq-cta {
  margin-top: 30px;
  text-align: center;
  width: 100%;
}

/* CTA Banner Section */
.page-login__cta-banner {
  position: relative;
  margin: 60px auto;
  max-width: 1200px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.page-login__cta-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-login__cta-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.6); /* Overlay for text readability */
  border-radius: 8px;
  max-width: 800px;
}

.page-login__cta-banner-heading {
  color: #FFD700;
  font-size: 2.2em;
  margin-bottom: 15px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-heading {
    font-size: 2.8em;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__section-heading {
    font-size: 2em;
  }
  .page-login__text-block p {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-login {
    padding-top: var(--header-offset, 120px); /* Ensure mobile also has offset */
  }
  .page-login__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }
  .page-login__main-heading {
    font-size: 2.2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__cta-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-login__content-section {
    flex-direction: column;
    margin: 40px auto;
    padding: 0 15px;
    gap: 30px;
  }
  .page-login__content-section:nth-of-type(odd) {
    flex-direction: column;
  }
  .page-login__section-heading {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-login__text-block, .page-login__section-image {
    min-width: unset;
    width: 100%;
  }
  .page-login__section-image {
    max-width: 100%;
    height: auto; /* Important for mobile responsiveness */
  }
  .page-login__process-item, .page-login__security-item {
    padding: 15px;
  }
  .page-login__process-step-title, .page-login__security-tip-title {
    font-size: 1.2em;
  }
  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-login__faq-answer {
    padding: 0 15px 15px;
    font-size: 1em;
  }
  .page-login__cta-banner {
    margin: 40px auto;
    min-height: 200px;
  }
  .page-login__cta-banner-heading {
    font-size: 1.8em;
  }
  .page-login__cta-banner-text {
    font-size: 1em;
  }
  .page-login__cta-banner-content {
    padding: 20px;
  }
  /* Ensure all content area images are responsive and do not cause overflow */
  .page-login img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-login__main-heading {
    font-size: 1.8em;
  }
  .page-login__section-heading {
    font-size: 1.5em;
  }
  .page-login__cta-banner-heading {
    font-size: 1.5em;
  }
}