/* style/login.css */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Ensure content background matches body if not explicitly set by sections */
}

/* Hero Section */
.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); /* Fixed header offset */
  min-height: 70vh;
  overflow: hidden;
  background-color: #0A2463; /* Main brand color for hero */
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-login__hero-title {
  font-size: 3em;
  color: #E0B73D; /* Gold accent for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-login__form-container {
  background: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 0 auto;
}

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

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

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

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

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

.page-login__checkbox-group {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #E0B73D;
}

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

.page-login__forgot-password {
  color: #E0B73D;
  text-decoration: none;
}

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

.page-login__btn-primary {
  display: inline-block;
  background-color: #E0B73D;
  color: #0A2463;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary:hover {
  background-color: #d4a72d;
  transform: translateY(-2px);
}

.page-login__register-text {
  color: #ffffff;
  margin-top: 20px;
  font-size: 0.95em;
}

.page-login__register-link {
  color: #E0B73D;
  text-decoration: none;
}

.page-login__register-link:hover {
  text-decoration: underline;
}

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

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

/* Common Section Styles */
.page-login__content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.2;
}

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

/* Background color specific styles */
.page-login__dark-bg {
  background-color: #0A2463;
  color: #ffffff;
}

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

.page-login__light-bg .page-login__section-title {
  color: #0A2463;
}

.page-login__light-bg .page-login__section-description {
  color: #555555;
}

.page-login__medium-bg {
  background-color: #E0B73D;
  color: #0A2463; /* Dark text for gold background */
}

.page-login__section-title--alt-color {
  color: #0A2463;
}

.page-login__section-description--alt-color {
  color: #333333;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
}

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

.page-login__benefit-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
}

.page-login__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 250px; /* Ensures min size of 200px is met, and not a small icon */
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 8px;
}

.page-login__benefit-title {
  font-size: 1.4em;
  color: #0A2463;
  margin-bottom: 10px;
}

.page-login__benefit-text {
  font-size: 1em;
  color: #555555;
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  text-align: center;
}

.page-login__security-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  margin: 40px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__security-features {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 600px;
  text-align: left;
}

.page-login__security-features li {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 5px solid #E0B73D;
  border-radius: 5px;
  font-size: 1.1em;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
}

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

.page-login__faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #0A2463;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: #0A2463;
}

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

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

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

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

.page-login__cta-support {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #333333;
}

.page-login__link-support {
  color: #0A2463;
  text-decoration: none;
  font-weight: bold;
}

.page-login__link-support:hover {
  text-decoration: underline;
}

/* Register CTA Section */
.page-login__register-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #E0B73D;
  color: #0A2463; /* Dark text for gold background */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__register-cta-content {
  max-width: 800px;
}

.page-login__register-button {
  margin-top: 30px;
  background-color: #0A2463; /* Dark blue button on gold background */
  color: #ffffff;
}

.page-login__register-button:hover {
  background-color: #1a3c7c;
}

.page-login__register-cta-image {
  max-width: 1000px;
  width: 100%;
  height: auto;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 2.5em;
  }

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

  .page-login__hero-image {
    filter: brightness(0.5);
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

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

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

  .page-login__benefit-card {
    padding: 20px;
  }

  .page-login__security-image,
  .page-login__register-cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__content-wrapper,
  .page-login__register-cta-content {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__hero-image {
    filter: brightness(0.6) !important;
  }

  /* Button responsiveness */
  .page-login__btn-primary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__login-button {
    width: 100%;
  }
}

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

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

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