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

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

.page-login__section-title {
  color: #0A2463;
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-login__intro-text,
.page-login__post-list-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1em;
}

.page-login__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure no extra space below image */
}

.page-login__image--centered {
  margin: 0 auto 30px;
}

/* Hero Section */
.page-login__hero-section {
  background-color: #0A2463;
  color: #f0f0f0;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
  box-shadow: none;
  border-radius: 0;
}

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

.page-login__hero-title {
  color: #FFD700;
  font-size: 3.2em;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-login__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-size: 1.1em;
}

.page-login__button--primary {
  background-color: #FFD700;
  color: #0A2463;
  border: 2px solid #FFD700;
}

.page-login__button--primary:hover {
  background-color: #e6c200;
}

.page-login__button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-login__button--secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
}

/* Form Section */
.page-login__form-section {
  padding: 60px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.page-login__form-container {
  max-width: 500px;
  margin: 30px auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-login__login-form {
  text-align: left;
}

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

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

.page-login__form-input {
  width: calc(100% - 24px); /* Account for padding */
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  color: #333333;
}

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.page-login__form-link {
  color: #0A2463;
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.page-login__form-link:hover {
  color: #FFD700;
}

.page-login__form-register-prompt {
  margin-top: 20px;
  font-size: 0.95em;
  color: #555555;
}

/* Process Section */
.page-login__process-section {
  padding: 60px 20px;
  background-color: #f0f0f0;
}

.page-login__numbered-list {
  list-style-type: decimal;
  padding-left: 25px;
  max-width: 900px;
  margin: 0 auto 30px;
}

.page-login__list-item {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #444444;
}

.page-login__list-item strong {
  color: #0A2463;
}

/* Security Section */
.page-login__security-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.page-login__bullet-list {
  list-style-type: disc;
  padding-left: 25px;
  max-width: 900px;
  margin: 0 auto 30px;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 20px;
  background-color: #f8f8f8;
}

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

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

.page-login__faq-question {
  display: block;
  padding: 18px 25px;
  background-color: #f0f0f0;
  color: #0A2463;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  line-height: 1;
  color: #FFD700;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: '-'; /* This is a CSS trick, JS will handle actual content */
}

.page-login__faq-answer {
  padding: 15px 25px 20px;
  line-height: 1.6;
  color: #555;
  border-top: 1px solid #eee;
}

/* Promo Section */
.page-login__promo-section {
  background-color: #FFD700;
  color: #0A2463;
  text-align: center;
  padding: 60px 20px;
}

.page-login__promo-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #0A2463;
}

.page-login__promo-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #333333;
}

.page-login__promo-button {
  background-color: #0A2463;
  color: #FFD700;
  border: 2px solid #0A2463;
}

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

/* Resources Section */
.page-login__resources-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.page-login__resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 30px auto;
}

.page-login__resource-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-login__resource-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.page-login__resource-content {
  padding: 20px;
}

.page-login__resource-title {
  font-size: 1.3em;
  color: #0A2463;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-login__resource-description {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 20px;
}

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

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 400px;
    padding: 60px 20px;
  }
  .page-login__hero-title {
    font-size: 2.2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__intro-text,
  .page-login__post-list-text {
    font-size: 1em;
  }
  .page-login__form-container {
    padding: 30px;
  }
  .page-login__form-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__promo-title {
    font-size: 2em;
  }
  .page-login__promo-description {
    font-size: 1em;
  }
  .page-login__resource-grid {
    grid-template-columns: 1fr;
  }
  .page-login img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-login__hero-section {
    padding: 40px 15px;
    min-height: 350px;
  }
  .page-login__hero-title {
    font-size: 1.8em;
  }
  .page-login__hero-description {
    font-size: 0.9em;
  }
  .page-login__button {
    width: 90%;
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__intro-text,
  .page-login__post-list-text {
    font-size: 0.95em;
  }
  .page-login__form-container {
    padding: 20px;
  }
  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 0.95em;
  }
  .page-login__faq-toggle {
    font-size: 1.2em;
    right: 20px;
  }
  .page-login__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.9em;
  }
  .page-login__promo-title {
    font-size: 1.8em;
  }
  .page-login__promo-description {
    font-size: 0.95em;
  }
}