.page-login {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from shared.css, dark background */
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  box-sizing: border-box;
  overflow: hidden;
}

.page-login__hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-login__background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken background image for better text contrast */
  display: block;
}

.page-login__form-wrapper {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.75); /* Darker overlay for form */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.page-login__main-title {
  font-size: 2.2em;
  color: #FFD700; /* Primary color for title */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.page-login__description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.5;
}

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  color: #FFD700; /* Primary color for labels */
  font-weight: 600;
}

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #8B0000; /* Auxiliary color for border */
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__input::placeholder {
  color: #ccc;
}

.page-login__input:focus {
  border-color: #FFD700; /* Primary color on focus */
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
  outline: none;
}

.page-login__options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.95em;
}

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #FFD700; /* Primary color for checkbox */
}

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

.page-login__forgot-password {
  color: #FFD700; /* Primary color for link */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-login__button {
  width: 100%;
  padding: 14px 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-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-login__button--primary {
  background-color: #FFD700; /* Primary color for button */
  color: #1a1a2e; /* Dark text for primary button */
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-login__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.page-login__register-link {
  margin-top: 25px;
  color: #f0f0f0;
  font-size: 1em;
}

.page-login__register-button {
  color: #FFD700; /* Primary color for register link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-button:hover {
  color: #fff;
}

.page-login__security-info {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 0.9em;
}

.page-login__security-icon {
  width: 24px; /* Adjust icon size */
  height: 24px;
  margin-right: 10px;
  vertical-align: middle;
  filter: invert(80%) sepia(100%) saturate(1000%) hue-rotate(0deg) brightness(1.2); /* Make icon gold-ish */
}

.page-login__security-text {
  margin: 0;
  line-height: 1.4;
}

/* Why Choose Us Section */
.page-login__why-choose-us {
  padding: 80px 20px;
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff;
  text-align: center;
  box-sizing: border-box;
}

.page-login__why-choose-us .page-login__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-login__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Primary color */
  margin-bottom: 50px;
  font-weight: bold;
}

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

.page-login__feature-item {
  background: rgba(0, 0, 0, 0.6); /* Slightly lighter dark background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-login__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__description {
    font-size: 1em;
  }
  .page-login__form-wrapper {
    padding: 30px;
  }
  .page-login__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    min-height: auto;
  }

  .page-login__form-wrapper {
    padding: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__main-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

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

  .page-login__input {
    padding: 10px 12px;
    font-size: 0.95em;
  }

  .page-login__options {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .page-login__forgot-password {
    margin-top: 10px;
  }

  .page-login__button {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__register-link {
    font-size: 0.95em;
  }

  .page-login__security-info {
    flex-direction: column;
    text-align: center;
    margin-top: 20px;
  }

  .page-login__security-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .page-login__why-choose-us {
    padding: 60px 15px;
  }

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

  .page-login__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__feature-item {
    padding: 25px;
  }

  .page-login__feature-image {
    max-width: 200px;
  }

  /* General image and container responsive rules */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__container,
  .page-login__hero-section,
  .page-login__form-wrapper,
  .page-login__why-choose-us,
  .page-login__features-grid,
  .page-login__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-login__why-choose-us .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__form-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.5em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__feature-title {
    font-size: 1.3em;
  }
  .page-login__feature-description {
    font-size: 0.9em;
  }
}