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

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

.page-login__hero-section {
  background: linear-gradient(135deg, #26A9E0, #0a0a0a);
  padding-bottom: 80px;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh; /* Ensure hero section is tall enough */
}

.page-login__hero-content {
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  color: #ffffff;
}

.page-login__main-title {
  font-size: 3.2em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-login__form-wrapper {
  background: rgba(0, 0, 0, 0.6); /* Slightly transparent dark background for form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
  max-width: 450px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto; /* Center the form */
}

.page-login__form-title {
  font-size: 2em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.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: 25px;
  font-size: 0.9em;
}

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

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

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

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

.page-login__forgot-password:hover {
  color: #EA7C07;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.page-login__btn-primary:hover {
  background-color: #d86c06;
}

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  color: #f0f0f0;
}

.page-login__register-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #EA7C07;
}

/* Sections below the form for deep content */
.page-login__benefits-section,
.page-login__security-section,
.page-login__cta-section {
  padding: 80px 0;
}

.page-login__light-bg {
  background-color: #0a0a0a; /* Body background is dark, so light-bg content should still be dark, but with light text */
  color: #ffffff;
}

.page-login__dark-bg {
  background-color: #1a1a1a; /* Darker background for contrast */
  color: #ffffff;
}

.page-login__section-title {
  font-size: 2.8em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

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

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

.page-login__benefit-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for card background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

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

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

.page-login__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

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

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

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-login__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-login__feature-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
}

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

.page-login__cta-content {
  text-align: center;
}

.page-login__cta-title {
  font-size: 2.5em;
  color: #26A9E0;
  margin-bottom: 20px;
}

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

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

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Override primary button for CTA section to ensure visibility against light background */
.page-login__cta-buttons .page-login__btn-primary {
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-login__cta-buttons .page-login__btn-primary:hover {
  background-color: #d86c06;
  border-color: #d86c06;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2.2em;
  }
  .page-login__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: auto;
    padding-bottom: 40px;
  }
  .page-login__main-title {
    font-size: 2.2em;
    padding: 0 10px;
  }
  .page-login__intro-description {
    font-size: 1em;
    padding: 0 10px;
  }
  .page-login__form-wrapper {
    padding: 30px 20px;
  }
  .page-login__form-title {
    font-size: 1.8em;
  }
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__cta-section {
    padding: 40px 0;
  }
  .page-login__section-title {
    font-size: 1.8em;
    padding: 0 15px;
  }
  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-login__grid-container,
  .page-login__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__benefit-card, .page-login__feature-item {
    padding: 20px;
  }
  .page-login__card-image, .page-login__feature-icon {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-login__cta-title {
    font-size: 1.8em;
    padding: 0 15px;
  }
  .page-login__cta-description {
    font-size: 0.95em;
    padding: 0 15px;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .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__container {
    padding-left: 15px;
    padding-right: 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;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__form-title {
    font-size: 1.5em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__cta-title {
    font-size: 1.5em;
  }
}