/* style/login.css */
.page-login {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #333; /* Dark background to contrast with light text */
  color: #ffffff; /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(255, 215, 0, 0.2)); /* Red and gold gradient overlay */
  position: relative;
  overflow: hidden;
}

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-login__main-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold main title */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-login__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-login__button--primary {
  background-color: #FFD700; /* Gold button */
  color: #8B0000; /* Dark red text */
}

.page-login__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-login__button--secondary {
  background-color: #8B0000; /* Dark red button */
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-login__button--secondary:hover {
  background-color: #a30000;
  transform: translateY(-2px);
}

.page-login__features-section,
.page-login__process-section,
.page-login__security-section,
.page-login__faq-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.6); /* Slightly transparent dark background for sections */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold section titles */
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-login__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-login__feature-item {
  background-color: rgba(139, 0, 0, 0.4); /* Dark red translucent background */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-login__feature-icon {
  width: 250px; /* Enforce min size */
  height: 167px; /* Enforce min size */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 5px;
  border: 2px solid #FFD700;
}

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

.page-login__feature-text {
  color: #f0f0f0;
}

.page-login__process-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__process-list {
  list-style: none;
  counter-reset: login-step;
  padding: 0;
}

.page-login__process-item {
  background-color: rgba(255, 215, 0, 0.1); /* Gold translucent background */
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 8px;
  position: relative;
  padding-left: 70px;
  border-left: 5px solid #FFD700;
}

.page-login__process-item::before {
  counter-increment: login-step;
  content: "Step " counter(login-step);
  position: absolute;
  left: 20px;
  top: 20px;
  background-color: #FFD700;
  color: #8B0000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

.page-login__process-step-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

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

.page-login__security-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
}

.page-login__security-list-item {
  background-color: rgba(139, 0, 0, 0.4); /* Dark red translucent background */
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  color: #f0f0f0;
  position: relative;
  padding-left: 40px;
}

.page-login__security-list-item::before {
  content: '🔒';
  position: absolute;
  left: 15px;
  top: 15px;
}

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

.page-login__faq-item {
  background-color: rgba(255, 215, 0, 0.1); /* Gold translucent background */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-login__faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #8B0000; /* Dark red for question header */
  color: #FFD700; /* Gold text */
  border: none;
  text-align: left;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-question[aria-expanded="true"] {
  background-color: #FFD700; /* Gold when expanded */
  color: #8B0000; /* Dark red text */
}

.page-login__faq-icon {
  display: block;
  width: 20px;
  height: 20px;
  position: relative;
}

.page-login__faq-icon::before,
.page-login__faq-icon::after {
  content: '';
  position: absolute;
  background-color: #FFD700; /* Gold icon color */
  transition: transform 0.3s ease;
}

.page-login__faq-question[aria-expanded="true"] .page-login__faq-icon::before,
.page-login__faq-question[aria-expanded="true"] .page-login__faq-icon::after {
  background-color: #8B0000; /* Dark red icon color when expanded */
}

.page-login__faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.page-login__faq-icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.page-login__faq-question[aria-expanded="true"] .page-login__faq-icon::after {
  transform: translateX(-50%) rotate(90deg); /* Rotate to form a minus sign */
}

.page-login__faq-answer {
  padding: 0 20px;
  background-color: rgba(0, 0, 0, 0.7); /* Darker background for answer */
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 200px; /* Adjust as needed for content */
  padding: 0 20px 20px; /* Add bottom padding when expanded */
}

.page-login__support-cta {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 215, 0, 0.3);
}

.page-login__support-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 40px 15px;
  }

  .page-login__main-title {
    font-size: 2.2em;
  }

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

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

  .page-login__feature-icon {
    width: 200px; /* Ensure min size for mobile */
    height: 133px; /* Ensure min size for mobile */
  }

  .page-login__process-item {
    padding-left: 60px;
  }

  .page-login__process-item::before {
    left: 10px;
    width: 35px;
    height: 35px;
    font-size: 0.8em;
  }

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

  /* Critical: prevent content overflow on mobile */
  .page-login img {
    max-width: 100%;
    height: auto;
  }
}