/* style/login.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-login {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Light text on dark body background (#121212) */
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

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

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

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

.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: 800px;
  padding: 40px;
  border-radius: 10px;
  box-sizing: border-box;
}

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

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

.page-login__login-form-wrapper {
  background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white for form background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 0 auto;
  color: #333333; /* Dark text on light form background */
}

.page-login__form-title {
  font-size: 2em;
  color: #0A2463;
  margin-bottom: 30px;
  text-align: center;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #0A2463;
}

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

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

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

/* Primary Button */
.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: #FFD700; /* Gold button */
  color: #0A2463; /* Dark blue text on gold */
  text-align: center;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

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

/* Secondary Button */
.page-login__btn-secondary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: #0A2463; /* Dark blue button */
  color: #ffffff; /* White text on dark blue */
  text-align: center;
  border: 1px solid #FFD700; /* Gold border */
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
  transform: translateY(-2px);
}

.page-login__forgot-password {
  text-align: center;
  margin-top: 15px;
}

.page-login__link {
  color: #0A2463; /* Dark blue link on light background */
  text-decoration: none;
  font-weight: bold;
}

.page-login__link:hover {
  text-decoration: underline;
  color: #FFD700; /* Gold hover effect */
}

/* General Section Styles */
.page-login__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main titles */
  line-height: 1.2;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

.page-login__dark-section {
  background-color: #0A2463; /* Dark blue section */
  padding: 80px 0;
  color: #ffffff; /* White text on dark blue */
}

.page-login__dark-section .page-login__section-title {
  color: #FFD700; /* Gold title on dark blue */
}

.page-login__dark-section .page-login__section-description {
  color: #f0f0f0;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
}

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

.page-login__benefit-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for items */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
}

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

.page-login__benefit-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

.page-login__security-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__security-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: contain; /* Ensure image content is visible */
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-login__security-text {
  font-size: 1em;
  color: #e0e0e0;
}

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

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 80px 0;
  background-color: #0A2463; /* Dark blue background */
}

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

.page-login__troubleshooting-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-login__troubleshooting-text {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

/* Register CTA Section */
.page-login__register-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a1a, #0A2463); /* Gradient background */
  text-align: center;
}

.page-login__register-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-login__register-button {
  width: auto;
  min-width: 250px;
  display: inline-block; /* Center the button */
}

/* Mobile App Section */
.page-login__mobile-app-section {
  padding: 80px 0;
}

.page-login__mobile-app-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-login__mobile-app-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-login__mobile-app-text .page-login__section-title,
.page-login__mobile-app-text .page-login__section-description {
  text-align: left;
}

.page-login__mobile-app-features {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-login__mobile-app-features li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-login__mobile-app-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFD700;
  font-weight: bold;
  font-size: 1.2em;
}

.page-login__mobile-app-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  text-align: center;
}

.page-login__mobile-app-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-login__download-button {
  width: auto;
  min-width: 250px;
  display: inline-block;
}

/* Promotions Section */
.page-login__promotions-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-login__promotion-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-login__promotion-card:hover {
  transform: translateY(-5px);
}

.page-login__promotion-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-login__promotion-card h3,
.page-login__promotion-card p,
.page-login__promotion-card a {
  padding: 0 25px;
}

.page-login__promotion-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-login__promotion-text {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-login__promotion-card .page-login__btn-secondary {
  width: calc(100% - 50px);
  margin: 0 25px 25px 25px;
  font-size: 0.95em;
  padding: 12px 20px;
}


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

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

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px 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.05);
  transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
  font-size: 1.2em;
  color: #FFD700;
  margin: 0;
}

.page-login__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

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

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

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px 25px;
}

.page-login__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  color: #e0e0e0;
}

/* Final CTA Section */
.page-login__cta-final-section {
  padding: 80px 0;
  background: linear-gradient(45deg, #1a1a1a, #0A2463); /* Another gradient */
  text-align: center;
}

.page-login__cta-final-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-login__cta-final-section .page-login__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-login__cta-final-section .page-login__btn-primary,
.page-login__cta-final-section .page-login__btn-secondary {
  width: auto;
  min-width: 200px;
  display: inline-block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__hero-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
  }

  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__description {
    font-size: 1em;
  }
  .page-login__login-form-wrapper {
    padding: 30px;
  }
  .page-login__form-title {
    font-size: 1.8em;
  }

  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__troubleshooting-section,
  .page-login__register-cta-section,
  .page-login__mobile-app-section,
  .page-login__promotions-section,
  .page-login__faq-section,
  .page-login__cta-final-section {
    padding: 50px 0;
  }

  .page-login__container {
    padding: 0 15px;
  }

  .page-login__mobile-app-flex {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__mobile-app-text,
  .page-login__mobile-app-image-wrapper {
    max-width: 100%;
    text-align: center;
  }

  .page-login__mobile-app-text .page-login__section-title,
  .page-login__mobile-app-text .page-login__section-description {
    text-align: center;
  }
  .page-login__mobile-app-features {
    text-align: left; /* Keep list left-aligned */
    margin: 20px auto;
    max-width: 350px; /* Constrain list width for better readability */
  }

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

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }

  /* Image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-content,
  .page-login__login-form-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific image containers */
  .page-login__security-image,
  .page-login__mobile-app-image,
  .page-login__promotion-image {
    width: 100% !important;
    height: auto !important; /* Allow height to adjust */
    max-height: 250px;
    object-fit: cover;
  }
}

/* Ensure content area images are not too small (min 200px) */
.page-login img:not(.page-login__hero-image) {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Maintain aspect ratio and cover space */
}

/* Video responsiveness (placeholder for future use, not used in this page) */
.page-login video,
.page-login__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-login__video-section,
.page-login__video-container,
.page-login__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .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__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  
  .page-login__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}