.page-login {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #FFFFFF; /* Explicitly set background for page content */
}

.page-login__hero-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Dark background for hero section */
  color: #FFFFFF; /* Light text for dark background */
  position: relative;
  overflow: hidden;
}

.page-login__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45; /* Highlight title with accent color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-login__login-card {
  background-color: #1a1a1a; /* Darker background for the login card */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  margin: 40px auto;
  padding: 40px;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.page-login__login-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 0;
  border-radius: 15px;
}

.page-login__login-form {
  position: relative;
  z-index: 1;
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #000000;
  color: #FFFFFF;
  font-size: 1em;
}

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

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

.page-login__forgot-password {
  color: #FCBC45;
  text-decoration: none;
  font-size: 0.9em;
}

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

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

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

.page-login__checkbox-label {
  color: #CCC;
  font-size: 0.9em;
}

.page-login__submit-button {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  cursor: pointer;
}

.page-login__submit-link {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for login button */
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: 1px solid #FCBC45;
}

.page-login__submit-link:hover {
  background-color: #e0a73b;
  border-color: #e0a73b;
}

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

.page-login__register-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__section-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #000000;
  text-align: center;
}

.page-login__section-description {
  max-width: 900px;
  margin: 0 auto 30px auto;
  text-align: center;
  color: #555;
}

.page-login__explanation-section,
.page-login__process-section,
.page-login__security-section,
.page-login__faq-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-login__explanation-image,
.page-login__security-image,
.page-login__faq-image {
  display: block;
  margin: 40px auto;
  width: 100%;
  max-width: 800px; /* Ensure images are not too wide */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-login__process-item {
  background-color: #f9f9f9;
  border-left: 5px solid #FCBC45;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-login__process-step-title {
  color: #000000;
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-login__process-step-description {
  color: #555;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-login__security-item {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #333;
}

.page-login__security-item strong {
  color: #000000;
}

.page-login__faq-container {
  margin-top: 30px;
}

.page-login__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  color: #000000;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: #e0e0e0;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  color: #555;
}

.page-login__faq-answer p {
  margin: 0;
}

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

  .page-login__description {
    font-size: 1em;
  }

  .page-login__login-card {
    margin: 20px auto;
    padding: 30px;
  }

  .page-login__submit-link {
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-login__explanation-section,
  .page-login__process-section,
  .page-login__security-section,
  .page-login__faq-section {
    margin: 40px auto;
    padding: 30px 15px;
  }

  .page-login__explanation-image,
  .page-login__security-image,
  .page-login__faq-image {
    max-width: 100%;
    height: auto;
  }

  /* Critical: Ensure content images are responsive and don't overflow */
  .page-login img {
    max-width: 100%;
    height: auto;
  }

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

/* Ensure all content images within .page-login are at least 200px wide when not in mobile view */
.page-login img:not(.page-login__login-card-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Override default form input focus style to match theme */
.page-login__form-input:focus {
  outline: none;
  border-color: #FCBC45;
  box-shadow: 0 0 0 3px rgba(252, 188, 69, 0.3);
}