/* style/login.css */

.page-login {
  color: #ffffff; /* Light text for dark body background */
  background-color: #1A1A1A; /* Complementary dark background for sections */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-login__hero-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a minimum height */
}

.page-login__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Slightly dim the background image */
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

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

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

.page-login__hero-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-login__form-section {
  padding: 60px 20px;
  background-color: #1A1A1A;
  text-align: center;
}

.page-login__form-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-login__login-form {
  width: 100%;
  max-width: 400px;
  margin-bottom: 30px;
}

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

.page-login__form-label {
  display: block;
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 8px;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #444;
  background-color: #333;
  color: #ffffff;
  border-radius: 5px;
  font-size: 1em;
}

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

.page-login__form-button {
  display: block;
  width: 100%;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 15px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  text-align: center;
}

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

.page-login__form-links {
  margin-top: 20px;
  font-size: 0.95em;
}

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

.page-login__forgot-password:hover,
.page-login__register-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-login__separator {
  color: #f0f0f0;
  margin: 0 10px;
}

.page-login__form-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin-top: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__process-section,
.page-login__security-section,
.page-login__faq-section {
  padding: 60px 20px;
  background-color: #0d0d0d;
  text-align: center;
}

.page-login__process-container,
.page-login__security-container,
.page-login__faq-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-login__process-title,
.page-login__security-title,
.page-login__faq-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-login__process-description,
.page-login__security-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-login__process-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-login__process-step-number {
  position: absolute;
  top: 15px;
  left: 30px;
  background-color: #FFD700;
  color: #1A1A1A;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

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

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

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

.page-login__security-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

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

.page-login__security-tip-text {
  color: #f0f0f0;
}

.page-login__security-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__faq-items {
  margin-top: 40px;
  text-align: left;
}

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.page-login__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFD700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 25px;
  border: none;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: left;
}

.page-login__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-login__faq-question::after {
  content: '\25BC'; /* Down arrow */
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.page-login__faq-question.active::after {
  transform: rotate(180deg); /* Up arrow when active */
}

.page-login__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: rgba(255, 255, 255, 0.05);
}

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

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

.page-login__faq-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-top: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@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 {
    padding-top: var(--header-offset, 80px);
  }
  .page-login__hero-section {
    padding: 60px 15px;
    min-height: 450px;
  }
  .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;
  }

  .page-login__form-section,
  .page-login__process-section,
  .page-login__security-section,
  .page-login__faq-section {
    padding: 40px 15px;
  }

  .page-login__form-title,
  .page-login__process-title,
  .page-login__security-title,
  .page-login__faq-title {
    font-size: 2em;
  }

  .page-login__form-container {
    padding: 30px;
  }

  .page-login__form-image,
  .page-login__security-image,
  .page-login__faq-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
  }

  .page-login__process-list,
  .page-login__security-list {
    grid-template-columns: 1fr;
  }
  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer.active {
    padding: 10px 20px 20px;
  }

  /* Critical: 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__hero-section {
    padding: 40px 10px;
    min-height: 350px;
  }
  .page-login__hero-title {
    font-size: 1.8em;
  }
  .page-login__hero-description {
    font-size: 0.9em;
  }
  .page-login__form-title,
  .page-login__process-title,
  .page-login__security-title,
  .page-login__faq-title {
    font-size: 1.8em;
  }
  .page-login__form-container {
    padding: 20px;
  }
  .page-login__process-item,
  .page-login__security-item {
    padding: 20px;
  }
  .page-login__process-step-title,
  .page-login__security-tip-title {
    font-size: 1.3em;
  }
  .page-login__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-login__faq-answer.active {
    padding: 8px 15px 15px;
  }
}