/* style/login.css */
.page-login {
  color: #ffffff; /* Light text for dark background */
  background-color: #1A1A1A; /* Dark background from shared.css */
  padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.page-login__hero-content {
  max-width: 900px;
  z-index: 1;
}

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

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

.page-login__cta-button {
  display: inline-block;
  background-color: #DC143C; /* Deep Red for CTA button */
  color: #ffffff;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__cta-button:hover {
  background-color: #ff3355; /* Lighter red on hover */
  transform: translateY(-2px);
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 1600px;
  margin-top: 40px;
  overflow: hidden;
}

.page-login__hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

.page-login__section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-login__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for section titles */
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-login__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #DC143C;
  border-radius: 2px;
}

.page-login__content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  align-items: center;
}

.page-login__entry-explanation p,
.page-login__security-list p {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

.page-login__secondary-cta {
  display: inline-block;
  background-color: #FFD700; /* Gold for secondary CTA */
  color: #1A1A1A;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__secondary-cta:hover {
  background-color: #e6c200; /* Darker gold on hover */
  transform: translateY(-2px);
}

.page-login__login-process .page-login__content-wrapper,
.page-login__security-tips .page-login__content-wrapper {
  flex-direction: row;
  justify-content: space-between;
  text-align: left;
  gap: 60px;
}

.page-login__login-process .page-login__section-image,
.page-login__security-tips .page-login__section-image {
  width: 50%;
  min-width: 200px; /* Enforce minimum size */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.page-login__process-list,
.page-login__security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-login__process-item,
.page-login__security-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for list items */
  border-left: 5px solid #FFD700; /* Gold accent */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.page-login__process-item:hover,
.page-login__security-item:hover {
  transform: translateY(-5px);
}

.page-login__process-step-title,
.page-login__security-point-title {
  font-size: 1.4em;
  color: #FFD700; /* Gold for step titles */
  margin-bottom: 10px;
}

.page-login__process-item p,
.page-login__security-item p {
  font-size: 1em;
  line-height: 1.6;
}

/* FAQ Section */
.page-login__faq-section {
  text-align: center;
}

.page-login__faq-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for FAQ container */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-login__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.page-login__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

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

.page-login__faq-question:hover {
  color: #e6c200; /* Darker gold on hover */
}

.page-login__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-login__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: #f0f0f0;
  text-align: left;
}

.page-login__faq-answer.active {
  max-height: 200px; /* Adjust as needed */
  padding-top: 10px;
}

.page-login__faq-answer p {
  padding: 0 10px 10px 0;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__login-process .page-login__content-wrapper,
  .page-login__security-tips .page-login__content-wrapper {
    flex-direction: column;
    gap: 40px;
  }
  .page-login__login-process .page-login__section-image,
  .page-login__security-tips .page-login__section-image {
    width: 100%;
    max-width: 600px; /* Constrain image width on smaller screens */
  }
  .page-login__process-list,
  .page-login__security-list {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-login__section {
    margin: 40px auto;
  }
  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-login__entry-explanation p {
    font-size: 1em;
  }
  .page-login__process-step-title,
  .page-login__security-point-title {
    font-size: 1.2em;
  }
  .page-login__faq-question {
    font-size: 1.1em;
    padding: 12px 0;
  }
  /* Mobile content area image constraint */
  .page-login img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__section {
    padding: 0 15px;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__faq-container {
    padding: 20px;
  }
  .page-login__faq-question {
    font-size: 1em;
  }
}