/* style/login.css */

/* Base Styles & Color Contrast */
.page-login {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #000000; /* Ensure consistency with body background */
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-login__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  height: 700px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  /* No filter property to change color */
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

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

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

.page-login__hero-description {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #000000; /* Black text for contrast */
  border: 2px solid #FFD700;
}

.page-login__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  color: #000000;
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold */
  border: 2px solid #FFD700;
}

.page-login__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000;
}

/* Login Form Section */
.page-login__form-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
}

.page-login__form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap-reverse;
}

.page-login__form-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.page-login__form-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  /* No filter property to change color */
}

.page-login__login-form {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white for form background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-login__form-group {
  margin-bottom: 25px;
}

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #8B0000; /* Dark red border */
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-input:focus {
  border-color: #FFD700; /* Gold focus */
  outline: none;
}

.page-login__form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 25px;
}

.page-login__forgot-password {
  color: #FFD700; /* Gold link */
  text-decoration: none;
  font-size: 0.95em;
}

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

.page-login__form-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
  border-radius: 8px;
  cursor: pointer;
  border: none;
}

.page-login__register-text {
  text-align: center;
  margin-top: 20px;
  color: #f0f0f0;
}

.page-login__register-text a {
  color: #FFD700; /* Gold link */
  text-decoration: none;
  font-weight: bold;
}

.page-login__register-text a:hover {
  text-decoration: underline;
}

/* Why Login Section */
.page-login__why-login-section {
  padding: 80px 0;
  background-color: #000000;
}

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

.page-login__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #f0f0f0;
}

.page-login__feature-card:hover {
  transform: translateY(-10px);
}

.page-login__feature-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  /* No filter property to change color */
}

.page-login__feature-title {
  font-size: 1.5em;
  color: #FFD700; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__feature-description {
  font-size: 1em;
  color: #ccc;
}

.page-login__cta-text {
  text-align: center;
  margin-top: 60px;
  font-size: 1.2em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFD700; /* Gold for questions */
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-question h3 {
  margin: 0;
  color: #FFD700;
  font-size: 1em; /* Adjust to fit within the question div */
}

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

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 25px;
}

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

/* CTA Section */
.page-login__cta-section {
  padding: 80px 0;
  background-color: #8B0000; /* Dark red background for strong CTA */
  text-align: center;
}

.page-login__cta-section .page-login__section-title {
  color: #ffffff; /* White title on dark red */
}

.page-login__cta-section .page-login__section-intro {
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 3em;
  }
  .page-login__hero-description {
    font-size: 1.2em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__form-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-login__form-image-wrapper,
  .page-login__login-form {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__hero-section {
    height: 600px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
  }
  .page-login__hero-title {
    font-size: 2.5em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-intro {
    font-size: 1em;
  }
  .page-login__form-section,
  .page-login__why-login-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 60px 0;
  }
  .page-login__container {
    padding: 0 15px;
  }
  .page-login__form-wrapper {
    padding: 0;
  }
  .page-login__login-form {
    padding: 30px;
  }
  .page-login__feature-card {
    padding: 20px;
  }
  .page-login__faq-question,
  .page-login__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px;
  }
  /* Mobile image and video responsive fix */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Content area image size constraint */
  .page-login__form-image, .page-login__feature-icon {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 2em;
  }
  .page-login__hero-description {
    font-size: 0.9em;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-login__form-submit-btn {
    font-size: 1.1em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__feature-title {
    font-size: 1.3em;
  }
  .page-login__faq-question h3 {
    font-size: 0.9em;
  }
}