.page-login {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #f8f9fa;
}

.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, #003366, #1a4a7e); /* Dark blue gradient */
  color: #ffffff;
  overflow: hidden;
}

.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-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-login__hero-image {
  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%;
  max-width: 500px;
  background-color: rgba(0, 51, 102, 0.85); /* Slightly transparent brand dark blue */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(-50px); /* Overlap with image slightly */
  margin-bottom: -50px; /* Adjust for overlap */
}

.page-login__main-heading {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #FFD700; /* Gold color for heading */
  line-height: 1.2;
}

.page-login__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-login__form-wrapper {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px; /* Limit form width */
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-login__form-group {
  text-align: left;
}

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input:focus {
  border-color: #003366;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.2);
}

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

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

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

.page-login__remember-me {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #555555;
}

.page-login__checkbox {
  margin-right: 5px;
}

.page-login__submit-button {
  width: 100%;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__btn-primary {
  background: #003366;
  color: #ffffff;
}

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

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

.page-login__register-link {
  color: #FFD700;
  font-weight: bold;
  text-decoration: none;
}

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

.page-login__floating-button {
  display: none; /* Hidden by default, shown on mobile */
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 90%;
  width: auto;
}

.page-login__floating-login-btn {
  background: #FFD700;
  color: #003366;
  bottom: 80px;
}

.page-login__floating-login-btn:hover {
  background: #e6c200;
  transform: translateX(-50%) translateY(-2px);
}

.page-login__floating-register-btn {
  background: #003366;
  color: #ffffff;
  bottom: 20px;
}

.page-login__floating-register-btn:hover {
  background: #002244;
  transform: translateX(-50%) translateY(-2px);
}

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

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

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

.page-login__dark-section {
  background-color: #003366;
  color: #ffffff;
  padding: 60px 0;
}

.page-login__dark-section .page-login__section-title {
  color: #FFD700;
}

.page-login__dark-section .page-login__section-description {
  color: #e0e0e0;
}

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

.page-login__benefit-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-login__card-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-login__card-title {
  font-size: 1.4em;
  color: #003366;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-login__troubleshooting-section {
  padding: 60px 0;
  background-color: #f0f2f5;
}

.page-login__troubleshoot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-login__troubleshoot-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.page-login__troubleshoot-item:hover {
  transform: translateY(-5px);
}

.page-login__item-title {
  font-size: 1.3em;
  color: #003366;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__item-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #003366;
  background-color: transparent;
  color: #003366;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #003366;
  color: #ffffff;
}

.page-login__security-section {
  padding: 60px 0;
}

.page-login__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-login__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

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

.page-login__feature-text {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-login__faq-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

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

.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;
  background: #fdfdfd;
  color: #555555;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #fdfdfd;
  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;
  color: #333333;
}

.page-login__faq-item.active .page-login__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #003366;
}

.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;
  pointer-events: none;
  color: #003366;
}

.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #003366;
  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: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #f0f0f0;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Change to X or rotate */
  color: #FFD700;
  background-color: #003366;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-image-wrapper {
    max-height: 400px;
  }
  .page-login__main-heading {
    font-size: 2em;
  }
  .page-login__intro-text {
    font-size: 1em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 0.95em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__hero-image-wrapper {
    margin-bottom: 30px;
  }
  .page-login__hero-content {
    transform: translateY(-30px);
    margin-bottom: -30px;
    padding: 20px;
  }
  .page-login__main-heading {
    font-size: 1.8em;
    margin-bottom: 10px;
  }
  .page-login__intro-text {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-login__form-wrapper {
    padding: 20px;
  }
  .page-login__form-input {
    padding: 10px 12px;
  }
  .page-login__submit-button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-login__container {
    padding: 30px 15px;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }
  .page-login__benefits-section .page-login__grid,
  .page-login__troubleshoot-grid,
  .page-login__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__benefit-card,
  .page-login__troubleshoot-item,
  .page-login__feature-item {
    padding: 25px;
  }
  .page-login__card-title,
  .page-login__item-title,
  .page-login__feature-title {
    font-size: 1.2em;
  }
  .page-login__card-text,
  .page-login__item-text,
  .page-login__feature-text {
    font-size: 0.9em;
  }
  
  /* FAQ Mobile */
  .page-login__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-login__faq-question h3 {
    font-size: 1em;
    width: calc(100% - 40px);
  }
  .page-login__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-login__faq-answer {
    padding: 0 15px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px !important;
  }
  
  /* Mobile image handling */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form-wrapper,
  .page-login__login-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Mobile button handling */
  .page-login__submit-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .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__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-login__floating-button {
    display: inline-block; /* Show floating buttons on mobile */
    width: calc(100% - 40px); /* Adjust width for padding */
    max-width: none !important;
    left: 20px;
    transform: translateX(0%);
    bottom: 20px;
  }
  .page-login__floating-login-btn {
    bottom: 80px;
  }
}

/* Color Contrast Fixes (if needed, applied proactively) */
.page-login__light-bg {
  background: #ffffff;
  color: #333333;
}
.page-login__dark-bg {
  background: #003366;
  color: #ffffff;
}

/* Ensure all links and interactive elements have good contrast */
a {
  color: #003366;
}
a:hover {
  color: #FFD700;
}

/* Form elements contrast */
.page-login__form-input {
  color: #333333;
  background-color: #ffffff;
}
.page-login__form-input::placeholder {
  color: #888888;
}