.page-login {
  background-color: #140C0C;
  color: #FFF1E8;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-login__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  margin-bottom: 40px;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-login__hero-content {
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(20, 12, 12, 0.8) 0%, rgba(20, 12, 12, 1) 100%);
  margin-top: -80px; /* Pull content slightly over image for visual flow, but not overlaying text on image */
  position: relative; /* Ensure it's above the image for z-index purposes if needed, though not directly overlaying */
  z-index: 1; /* Ensure content is visually above the bottom part of the hero image */
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-login__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
  color: #FFF1E8;
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__form-section {
  margin-bottom: 60px;
}

.page-login__form-section .page-login__container {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.page-login__card {
  background-color: #2A1212;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
  border: 1px solid #6A1E1E;
}

.page-login__card-title {
  font-size: 2em;
  margin-bottom: 30px;
  text-align: center;
  color: #F3C54D; /* Gold */
}

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #FFF1E8;
}

.page-login__input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #6A1E1E;
  border-radius: 6px;
  background-color: #140C0C;
  color: #FFF1E8;
  font-size: 1em;
}

.page-login__input::placeholder {
  color: rgba(255, 241, 232, 0.6);
}

.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;
  accent-color: #C61F1F;
}

.page-login__label--inline {
  color: #FFF1E8;
}

.page-login__forgot-password-link {
  color: #F3C54D; /* Gold */
  text-decoration: none;
  font-size: 0.95em;
}

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

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.page-login__submit-button:hover {
  background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
}

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

.page-login__register-link {
  color: #F3C54D; /* Gold */
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__image-wrapper {
  width: 100%;
  max-width: 550px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__form-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-login__features-section {
  background-color: #2A1212;
  padding: 60px 0;
  margin-bottom: 60px;
  border-top: 1px solid #6A1E1E;
  border-bottom: 1px solid #6A1E1E;
}

.page-login__features-title {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #F3C54D; /* Gold */
}

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

.page-login__feature-item {
  background-color: #140C0C;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #6A1E1E;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-login__feature-heading {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFF1E8;
}

.page-login__feature-description {
  font-size: 1em;
  color: #FFF1E8;
}

.page-login__cta-section {
  text-align: center;
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-login__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #F3C54D; /* Gold */
}

.page-login__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #FFF1E8;
}

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

.page-login__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.page-login__cta-button:hover {
  background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
}

.page-login__cta-button--secondary {
  background: #C61F1F; /* Deep Red */
  border: 1px solid #E53030;
}

.page-login__cta-button--secondary:hover {
  background: #E53030; /* Lighter Red */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-content {
    margin-top: -60px;
  }
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-content {
    margin-top: -40px;
    padding: 30px 15px;
  }
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__form-section .page-login__container {
    flex-direction: column;
  }
  .page-login__card {
    max-width: 100%;
  }
  .page-login__image-wrapper {
    order: -1; /* Move image above form on mobile */
    margin-bottom: 30px;
  }
  .page-login__form-image {
    width: 100%;
    max-width: 400px; /* Constrain max width for image in mobile */
  }
  .page-login__features-title {
    font-size: 2em;
  }
  .page-login__feature-item {
    padding: 20px;
  }
  .page-login__feature-icon {
    width: 100%;
    max-width: 180px; /* Allow slightly smaller for feature icons, but still >= 200px display */
    margin-left: auto;
    margin-right: auto;
  }
  .page-login__cta-title {
    font-size: 1.8em;
  }
  .page-login__cta-description {
    font-size: 1em;
  }
  .page-login__cta-buttons {
    flex-direction: column;
  }
  .page-login__cta-button {
    width: 100%;
  }

  /* Critical: Prevent horizontal overflow for all images in .page-login */
  .page-login img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-login__card-title {
    font-size: 1.8em;
  }
  .page-login__features-grid {
    grid-template-columns: 1fr;
  }
  .page-login__feature-icon {
    max-width: 150px; /* Still ensuring display is >= 200px due to HTML width/height */
  }
  .page-login__cta-title {
    font-size: 1.5em;
  }
}