.page-login {
  padding-top: var(--header-offset, 120px);
  background-color: #f8f8f8;
  color: #333333;
  font-family: Arial, sans-serif;
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-login__hero-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

.page-login__main-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-login__intro-text {
  font-size: 1.2em;
  max-width: 800px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-login__hero-button {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 10px;
  border: 2px solid #FFD700;
}

.page-login__hero-button:hover {
  background-color: #e0b800;
  color: #6a0000;
}

.page-login__hero-button--secondary {
  background-color: #8B0000;
  color: #FFD700;
  border: 2px solid #8B0000;
}

.page-login__hero-button--secondary:hover {
  background-color: #6a0000;
  color: #FFD700;
}

.page-login__content-area {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-login__form-wrapper {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

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

.page-login__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #555555;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 0 auto;
  gap: 20px;
}

.page-login__input-group {
  text-align: left;
}

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

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__submit-button {
  background-color: #8B0000;
  color: #FFD700;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-login__submit-button:hover {
  background-color: #6a0000;
}

.page-login__form-links {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 0.95em;
}

.page-login__forgot-password, .page-login__register-link {
  color: #8B0000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover, .page-login__register-link:hover {
  color: #FFD700;
}

.page-login__section {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-login__section--steps .page-login__section-title,
.page-login__section--security .page-login__section-title,
.page-login__section--faq .page-login__section-title {
  color: #8B0000;
  margin-bottom: 30px;
}

.page-login__login-steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  max-width: 800px;
  margin: 0 auto;
}

.page-login__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.page-login__step-number {
  counter-increment: step-counter;
  width: 40px;
  height: 40px;
  background-color: #FFD700;
  color: #8B0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.3em;
  flex-shrink: 0;
  margin-right: 15px;
}

.page-login__step-text {
  font-size: 1.1em;
  line-height: 1.6;
  color: #333333;
  text-align: left;
}

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

.page-login__security-card {
  background-color: #fefefe;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__security-icon {
  width: 250px; /* Min size 200px, so 250px is good */
  height: 187px; /* Maintain aspect ratio for 400x300 request */
  margin-bottom: 20px;
  object-fit: contain;
}

.page-login__security-card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-login__security-card-text {
  font-size: 1em;
  line-height: 1.5;
  color: #555555;
}

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

.page-login__faq-item {
  background-color: #fefefe;
  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: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f5f5f5;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-question::marker {
  display: none; /* Hide default marker for details summary */
}

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

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

.page-login__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  background-color: #ffffff;
}

.page-login__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-login__floating-button {
  display: block;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-login__floating-button--login {
  background-color: #FFD700;
  color: #8B0000;
}

.page-login__floating-button--login:hover {
  background-color: #e0b800;
  transform: translateY(-3px);
}

.page-login__floating-button--register {
  background-color: #8B0000;
  color: #FFD700;
}

.page-login__floating-button--register:hover {
  background-color: #6a0000;
  transform: translateY(-3px);
}

/* 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__intro-text {
    font-size: 1em;
  }

  .page-login__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-login__content-area {
    padding: 15px;
    gap: 30px;
  }

  .page-login__form-wrapper, .page-login__section {
    padding: 25px;
  }

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

  .page-login__security-grid {
    grid-template-columns: 1fr;
  }

  .page-login__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-login__step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-login__step-text {
    text-align: center;
  }

  .page-login__security-icon {
    width: 200px; /* Ensure min size 200px */
    height: auto;
  }

  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-login__faq-answer {
    padding: 10px 20px 15px;
  }

  .page-login__floating-buttons {
    flex-direction: row;
    bottom: 15px;
    right: 50%;
    transform: translateX(50%);
    width: calc(100% - 30px);
    justify-content: space-around;
  }

  .page-login__floating-button {
    flex: 1;
    margin: 0 5px;
    font-size: 1em;
    padding: 12px 15px;
  }
  
  /* Ensure all images within .page-login are responsive and don't overflow */
  .page-login img {
    max-width: 100%;
    height: auto;
  }
}

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

  .page-login__hero-button {
    margin: 5px;
  }

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

  .page-login__form-wrapper, .page-login__section {
    padding: 20px;
  }

  .page-login__floating-button {
    padding: 10px 12px;
    font-size: 0.9em;
  }
}