.page-login {
  color: #333333; /* Dark text for default light body background */
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Desktop padding for fixed header */
  overflow: hidden;
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  z-index: 2;
}

.page-login__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-login__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold accent for title */
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-login__hero-button {
  display: inline-block;
  background-color: #B80000; /* Main brand color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  margin: 0 10px;
}

.page-login__hero-button:hover {
  background-color: #990000;
}

.page-login__hero-button--secondary {
  background-color: #FFD700; /* Accent color */
  color: #B80000;
}

.page-login__hero-button--secondary:hover {
  background-color: #e6c200;
}

.page-login__form-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
}

.page-login__form-container {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.page-login__form-title {
  font-size: 2em;
  color: #B80000;
  margin-bottom: 15px;
}

.page-login__form-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #dddddd;
  border-radius: 5px;
  font-size: 1em;
}

.page-login__form-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;
  color: #555555;
}

.page-login__remember-me input {
  margin-right: 8px;
}

.page-login__forgot-password {
  color: #B80000;
  text-decoration: none;
}

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

.page-login__form-submit-button {
  width: 100%;
  background-color: #B80000;
  color: #ffffff;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block; /* Ensure button takes full width */
}

.page-login__form-submit-button:hover {
  background-color: #990000;
}

.page-login__form-submit-button a {
  color: inherit; /* Inherit color from button */
  text-decoration: none;
  display: block; /* Make the link fill the button */
}

.page-login__form-register-prompt {
  margin-top: 25px;
  color: #555555;
}

.page-login__form-register-link {
  color: #FFD700;
  font-weight: bold;
  text-decoration: none;
}

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

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

.page-login__process-section,
.page-login__security-section,
.page-login__faq-section {
  padding: 60px 0;
}

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

.page-login__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-login__process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-login__process-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  position: relative;
  counter-increment: process-step;
}

.page-login__process-item::before {
  content: "0" counter(process-step);
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 3.5em;
  font-weight: bold;
  color: rgba(184, 0, 0, 0.1);
  z-index: 0;
}

.page-login__process-step-title {
  font-size: 1.5em;
  color: #B80000;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.page-login__process-item p {
  color: #555555;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

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

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

.page-login__security-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too wide */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-login__security-item-title {
  font-size: 1.4em;
  color: #B80000;
  margin-bottom: 10px;
}

.page-login__security-item p {
  color: #555555;
  line-height: 1.6;
}

.page-login__security-link {
  display: inline-block;
  margin-top: 40px;
  background-color: #FFD700;
  color: #B80000;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__security-link:hover {
  background-color: #e6c200;
}

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

.page-login__faq-item {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f5f5f5;
  border-bottom: 1px solid #eeeeee;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-item[open] .page-login__faq-question {
  background-color: #ebebeb;
  border-bottom-color: transparent;
}

.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: 20px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 2.8em;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-login__hero-title {
    font-size: 2.2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__hero-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 5px;
  }
  .page-login__hero-content {
    padding: 15px;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__section-intro {
    font-size: 1em;
  }
  .page-login__form-container {
    padding: 30px;
  }
  .page-login__form-title {
    font-size: 1.8em;
  }
  .page-login__process-item::before {
    font-size: 3em;
  }
  .page-login__process-step-title {
    font-size: 1.3em;
  }
  .page-login__security-item {
    padding: 20px;
  }
  .page-login__security-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
  }
  /* Content area images must be responsive */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 1.8em;
  }
  .page-login__hero-description {
    font-size: 0.9em;
  }
  .page-login__hero-button {
    width: calc(100% - 20px);
    margin-bottom: 10px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-login__forgot-password {
    margin-top: 10px;
  }
  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 15px 20px;
  }
}