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

.page-login__dark-bg {
  background-color: var(--primary-color, #0A2463);
  color: #ffffff;
}

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

/* 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); /* Ensures content is not hidden by fixed header */
  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;
  z-index: 1;
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.page-login__hero-image img {
  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%;
}

.page-login__main-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--secondary-color, #FFD700);
}

.page-login__description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-login__cta-button,
.page-login__secondary-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__cta-button {
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #0A2463);
  border: 2px solid var(--secondary-color, #FFD700);
}

.page-login__cta-button:hover {
  background: #fff;
  color: var(--primary-color, #0A2463);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__secondary-button {
  background: transparent;
  color: var(--secondary-color, #FFD700);
  border: 2px solid var(--secondary-color, #FFD700);
}

.page-login__secondary-button:hover {
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #0A2463);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

.page-login__section-title {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: var(--primary-color, #0A2463);
  font-weight: bold;
}

.page-login__section-subtitle {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #555555;
}

.page-login__login-form {
  background: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
}

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

.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: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

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

.page-login__checkbox-label {
  font-size: 0.95em;
  color: #555555;
}

.page-login__forgot-password {
  color: var(--primary-color, #0A2463);
  text-decoration: none;
  font-size: 0.95em;
}

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

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  background: var(--primary-color, #0A2463);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__submit-button:hover {
  background: #071a47;
  transform: translateY(-2px);
}

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

.page-login__register-link {
  color: var(--secondary-color, #FFD700);
  text-decoration: none;
  font-weight: bold;
}

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 20px;
  text-align: center;
}

.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: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-login__benefit-card img {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-login__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color, #FFD700);
  font-weight: bold;
  text-align: center;
}

.page-login__card-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-login__trouble-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  color: #333333;
}

.page-login__trouble-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: var(--primary-color, #0A2463);
  font-weight: bold;
}

.page-login__trouble-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

.page-login__support-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #0A2463);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__support-button:hover {
  background: #e0bb00;
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 20px;
  text-align: center;
}

.page-login__cta-content {
  max-width: 900px;
}

.page-login__button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.page-login__btn-primary {
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #0A2463);
  border: 2px solid var(--secondary-color, #FFD700);
}

.page-login__btn-primary:hover {
  background: #fff;
  color: var(--primary-color, #0A2463);
}

.page-login__btn-secondary {
  background: transparent;
  color: var(--secondary-color, #FFD700);
  border: 2px solid var(--secondary-color, #FFD700);
}

.page-login__btn-secondary:hover {
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #0A2463);
}

/* About agbong88 Section */
.page-login__about-agbong88 {
  padding: 80px 20px;
  text-align: center;
}

.page-login__about-agbong88 .page-login__section-subtitle {
  text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-login__cta-button,
  .page-login__secondary-button,
  .page-login__submit-button,
  .page-login__support-button,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important;
  }

  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__troubleshooting-section,
  .page-login__cta-section,
  .page-login__about-agbong88 {
    padding: 40px 15px;
  }

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

  .page-login__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-login__login-form {
    padding: 25px;
  }

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

  .page-login__benefit-card,
  .page-login__trouble-item {
    padding: 25px;
  }

  .page-login__card-title,
  .page-login__trouble-title {
    font-size: 1.2em;
  }

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

  .page-login__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure all content images meet minimum size requirements */
.page-login img:not(.shared-logo):not(.shared-icon) {
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images */
.page-login img {
  filter: none !important;
}

/* Contrast fixes if needed */
.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;
}