/* style/login.css */

/* Base styles for the login page content */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Inherit from body or shared.css */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  color: #ffffff;
  overflow: hidden; /* Prevent content overflow */
}

.page-login__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: 1;
}

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

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

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

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

/* Form Section */
.page-login__form-section {
  padding: 80px 20px;
  background-color: #f8f9fa; /* Light background for form */
  color: #333333; /* Dark text for light background */
}

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

.page-login__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #000000;
}

.page-login__login-box {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.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: #fff;
}

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
}

.page-login__checkbox-label {
  color: #555555;
}

.page-login__forgot-password {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__submit-btn {
  background-color: #FFD700;
  color: #000000;
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  display: block; /* Ensure it behaves like a block button */
  text-align: center;
  text-decoration: none; /* Remove underline for anchor button */
}

.page-login__submit-btn:hover {
  background-color: #e6c200;
}

.page-login__register-link {
  text-align: center;
  margin-top: 25px;
  color: #555555;
}

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

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 20px;
  background-color: #000000; /* Dark background */
  color: #ffffff; /* Light text */
}

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

.page-login__benefit-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-icon {
  width: 100%; /* Ensure images take full width of their container */
  max-width: 250px; /* Max width for consistent sizing */
  height: auto;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-login__benefit-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Security Section */
.page-login__security-section {
  padding: 80px 20px;
  background-color: #f8f9fa; /* Light background */
  color: #333333; /* Dark text */
}

.page-login__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__security-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-login__security-img {
  width: 100%;
  height: auto;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-login__security-text {
  flex: 2;
  min-width: 300px;
}

.page-login__security-text p {
  margin-bottom: 15px;
  color: #555555;
}

.page-login__security-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-login__security-text li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #555555;
}

.page-login__security-text li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #FFD700;
  font-weight: bold;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 20px;
  background-color: #000000; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-login__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: 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;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFD700;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 20px;
  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; /* Sufficiently large to show content */
  padding: 15px 20px;
}

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

/* CTA Section */
.page-login__cta-section {
  padding: 80px 20px;
  background-color: #f8f9fa; /* Light background */
  color: #333333; /* Dark text */
  text-align: center;
}

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

/* Reusable Button Styles */
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

.page-login__btn-primary {
  background-color: #FFD700;
  color: #000000;
  border: 2px solid #FFD700;
}

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
  }

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

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__submit-btn,
  .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;
  }
  
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 40px 15px;
  }

  .page-login__login-box {
    padding: 30px 20px;
  }

  .page-login__security-content {
    flex-direction: column;
  }

  .page-login__security-image,
  .page-login__security-text {
    min-width: unset;
    width: 100%;
  }

  /* Responsive images and videos */
  .page-login img,
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .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;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__hero-description {
    font-size: 0.9em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__hero-section {
    min-height: 350px;
  }
}