/* style/login.css */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text is light */
  background-color: #121212; /* Matches shared.css body background */
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-login__hero-login-section {
  padding-top: var(--header-offset, 120px); /* Use CSS variable for header offset, with fallback */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #0A2342, #1a3a60);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.page-login__login-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__main-title {
  font-size: 2.2em;
  color: #E0B400; /* Gold for main title */
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.page-login__description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.5;
}

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  color: #f0f0f0;
  font-weight: 600;
  font-size: 0.95em;
}

.page-login__input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #0A2342;
  border-radius: 8px;
  background-color: #0d2a4a; /* Darker blue for input background */
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__input::placeholder {
  color: #a0a0a0;
}

.page-login__input:focus {
  border-color: #E0B400;
  box-shadow: 0 0 0 3px rgba(224, 180, 0, 0.3);
  outline: none;
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #E0B400;
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  position: relative;
}

.page-login__checkbox:checked {
  background-color: #E0B400;
  border-color: #E0B400;
}

.page-login__checkbox:checked::before {
  content: '✓';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0A2342;
  font-size: 14px;
  font-weight: bold;
}

.page-login__label-checkbox {
  color: #f0f0f0;
  cursor: pointer;
}

.page-login__forgot-password-link {
  color: #E0B400;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-login__btn-submit {
  width: 100%;
  padding: 15px;
  background-color: #E0B400; /* Gold button */
  color: #0A2342; /* Dark blue text for contrast */
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

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

.page-login__btn-submit a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}

.page-login__register-prompt {
  margin-top: 30px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__register-text {
  margin-bottom: 10px;
}

.page-login__btn-register {
  display: inline-block;
  padding: 10px 25px;
  background-color: #0A2342; /* Dark blue button */
  color: #E0B400; /* Gold text */
  border: 1px solid #E0B400;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.page-login__btn-register:hover {
  background-color: #E0B400;
  color: #0A2342;
  transform: translateY(-2px);
}

.page-login__section-title {
  font-size: 2.2em;
  color: #E0B400;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #1a3a60; /* Darker blue for contrast */
}

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

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

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.page-login__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(224, 180, 0, 0.5));
}

.page-login__benefit-title {
  font-size: 1.4em;
  color: #E0B400;
  margin-bottom: 15px;
  font-weight: 600;
}

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

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background-color: #121212;
}

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

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

.page-login__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.page-login__security-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(10, 35, 66, 0.5));
}

.page-login__security-title {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-login__security-text {
  font-size: 0.95em;
  color: #cccccc;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 80px 0;
  background-color: #0A2342;
}

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

.page-login__step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-login__step-title {
  font-size: 1.3em;
  color: #E0B400;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

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

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

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

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

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #E0B400;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

.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 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.03);
  color: #cccccc;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 0;
  background-color: #1a3a60;
  text-align: center;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background-color: #E0B400;
  color: #0A2342;
  border: 2px solid #E0B400;
}

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

.page-login__btn-secondary {
  background-color: #0A2342;
  color: #E0B400;
  border: 2px solid #E0B400;
}

.page-login__btn-secondary:hover {
  background-color: #E0B400;
  color: #0A2342;
  transform: translateY(-3px);
}

/* Copyright Section */
.page-login__copyright-section {
  padding: 30px 0;
  background-color: #0d1e37;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-login__copyright-text {
  font-size: 0.9em;
  color: #999999;
  margin: 0;
}

/* General image styling for responsiveness */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__benefits-grid,
  .page-login__security-features,
  .page-login__troubleshooting-steps {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__container {
    padding: 0 15px;
  }

  .page-login__hero-login-section {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
    padding-bottom: 40px;
    min-height: auto;
  }

  .page-login__login-card {
    padding: 30px 20px;
  }

  .page-login__main-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

  .page-login__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-login__input {
    padding: 12px 15px;
  }

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

  .page-login__forgot-password-link {
    margin-top: 5px;
  }

  .page-login__btn-submit {
    padding: 14px;
    font-size: 1em;
  }

  .page-login__btn-register {
    padding: 10px 20px;
  }

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

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

  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__troubleshooting-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 50px 0;
  }

  .page-login__benefits-grid,
  .page-login__security-features,
  .page-login__troubleshooting-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__benefit-item,
  .page-login__security-item,
  .page-login__step-item {
    padding: 25px;
  }

  .page-login__benefit-icon,
  .page-login__security-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .page-login__benefit-title {
    font-size: 1.2em;
  }

  .page-login__security-title,
  .page-login__step-title {
    font-size: 1.1em;
  }

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

  .page-login__faq-question {
    padding: 15px 20px;
  }

  .page-login__faq-question h3 {
    font-size: 1em;
  }

  .page-login__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 20px !important;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 25px;
    font-size: 1em;
  }

  .page-login__copyright-section {
    padding: 20px 0;
  }

  .page-login__copyright-text {
    font-size: 0.85em;
  }

  /* Ensure all containers and elements with images are responsive */
  .page-login__hero-login-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__troubleshooting-section,
  .page-login__faq-section,
  .page-login__cta-section,
  .page-login__copyright-section,
  .page-login__login-card,
  .page-login__benefit-item,
  .page-login__security-item,
  .page-login__step-item,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Dark background general styles */
.page-login__dark-section {
  color: #ffffff;
}

/* Color contrast fixes (if needed, though primary colors are chosen for contrast) */
.page-login__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-login__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}