.page-login {
  color: #ffffff; /* Light text for dark body background */
  background-color: #000000; /* Ensure main content background is dark */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-login__hero-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #0d0d0d; /* Slightly lighter black for distinction */
  border-bottom: 2px solid #FFD700;
}

.page-login__main-title {
  font-size: 3.2em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  font-weight: bold;
}

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

.page-login__hero-image-wrapper {
  margin-top: 40px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

.page-login__hero-image {
  display: block;
  width: 100%;
  height: auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  object-fit: cover;
}

/* General Section Styling */
.page-login__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin: 60px 0 20px 0;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

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

.page-login__sub-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

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

.page-login__content-block {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-login__content-block p {
  color: #e0e0e0;
  margin-bottom: 15px;
}

/* Form Section */
.page-login__form-section {
  padding: 60px 20px;
  background-color: #1a1a1a;
}

.page-login__form {
  max-width: 500px;
  margin: 40px auto 0 auto;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 10px;
  color: #FFD700;
  font-weight: bold;
  font-size: 1.1em;
}

.page-login__form-input {
  width: calc(100% - 20px); /* Account for padding */
  padding: 12px 10px;
  border: 1px solid #FFD700;
  border-radius: 5px;
  background-color: #000000;
  color: #ffffff;
  font-size: 1em;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input::placeholder {
  color: #888888;
}

.page-login__form-input:focus {
  border-color: #FFD700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

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

.page-login__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-width: 150px; /* Ensure button minimum width */
  text-align: center;
  font-size: 1.1em;
  border: none;
  cursor: pointer;
}

.page-login__button--primary {
  background-color: #FFD700;
  color: #000000;
}

.page-login__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-login__button--secondary {
  background-color: rgba(255, 215, 0, 0.2);
  color: #FFD700;
  border: 1px solid #FFD700;
}

.page-login__button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.35);
  transform: translateY(-2px);
}

.page-login__button--tertiary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid #888888;
}

.page-login__button--tertiary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.page-login__link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__link:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-login__link--forgot {
  font-size: 0.95em;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  color: #cccccc;
}

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

.page-login__process-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-login__process-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 25px;
  border-left: 5px solid #FFD700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.page-login__process-item p {
  color: #e0e0e0;
  margin-bottom: 10px;
}

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

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

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

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: block;
  padding: 20px 25px;
  color: #FFD700;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: background-color 0.3s ease;
}

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

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

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: translateY(-50%) rotate(45deg);
}

.page-login__faq-answer {
  padding: 0 25px 20px 25px;
  color: #e0e0e0;
  font-size: 1em;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 20px;
  background-color: #1a1a1a;
}

.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-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 400px; /* Ensure images are not too wide */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover; /* Cover the area, crop if needed */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-login__benefit-card p {
  color: #e0e0e0;
  flex-grow: 1; /* Allow paragraph to take available space */
  margin-bottom: 25px;
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 20px;
  background-color: #000000;
  text-align: center;
  border-top: 2px solid #FFD700;
}

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

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

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

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2.2em;
  }

  .page-login__hero-section {
    padding: 60px 15px;
  }

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

  .page-login__sub-title {
    font-size: 1.5em;
  }

  .page-login__form-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__button {
    width: 100%;
    max-width: 300px;
  }

  .page-login__hero-image,
  .page-login__benefit-icon {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }

  /* Ensure content area does not cause horizontal scroll */
  .page-login__container {
    padding: 0 15px;
  }
  .page-login {
    overflow-x: hidden;
  }

  /* Mobile image scaling */
  .page-login img {
    max-width: 100%;
    height: auto;
  }
}

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

  .page-login__hero-description {
    font-size: 1em;
  }

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

  .page-login__sub-title {
    font-size: 1.3em;
  }

  .page-login__form {
    padding: 25px;
  }

  .page-login__button {
    padding: 10px 20px;
    font-size: 1em;
  }

  .page-login__cta-buttons {
    flex-direction: column;
  }
}