/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0d0d0d; /* Ensure consistency with body background */
}

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

.page-login__section {
  padding: 60px 0;
}

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

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-login__hero-background-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);
  z-index: 2;
}

.page-login__login-card {
  position: relative;
  z-index: 3;
  background: rgba(51, 51, 51, 0.9); /* Darker background for card */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  width: 100%;
  box-sizing: border-box;
}

.page-login__main-title {
  font-size: 2.2em;
  color: #E44D26;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__intro-text {
  font-size: 1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #f0f0f0;
}

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

.page-login__input::placeholder {
  color: #aaaaaa;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.95em;
}

.page-login__checkbox-container {
  display: block;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  user-select: none;
  color: #f0f0f0;
}

.page-login__checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.page-login__checkbox-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #555555;
  border-radius: 3px;
}

.page-login__checkbox:checked ~ .page-login__checkbox-checkmark {
  background-color: #E44D26;
}

.page-login__checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.page-login__checkbox:checked ~ .page-login__checkbox-checkmark:after {
  display: block;
}

.page-login__checkbox-container .page-login__checkbox-checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.page-login__forgot-password {
  color: #E44D26;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #ff7f4e;
}

.page-login__button {
  display: block;
  width: 100%;
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-primary {
  background-color: #E44D26;
  color: #ffffff;
}

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

.page-login__register-text {
  margin-top: 25px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__register-link {
  color: #E44D26;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #ff7f4e;
}

/* Why Login Section */
.page-login__why-login {
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

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

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark-bg */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-login__feature-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Guide Section */
.page-login__guide-section {
  background-color: #0d0d0d;
  color: #ffffff;
}

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

.page-login__guide-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-login__guide-step-title {
  font-size: 1.4em;
  color: #E44D26;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__guide-step-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-login__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-login__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-login__troubleshooting-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

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

.page-login__troubleshooting-link {
  color: #E44D26;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__troubleshooting-link:hover {
  color: #ff7f4e;
}

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

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #E44D26;
  cursor: pointer;
  background-color: #333333;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: #444444;
}

.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 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: 15px 25px;
}

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

/* Call to Action Section */
.page-login__call-to-action {
  background-color: #E44D26; /* Brand color as background */
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-login__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__cta-description {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__section-title {
    font-size: 2.2em;
  }
  .page-login__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section {
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }

  .page-login__login-card {
    padding: 30px 20px;
    max-width: 90%;
  }

  .page-login__main-title {
    font-size: 1.8em;
  }

  .page-login__intro-text {
    font-size: 0.95em;
  }

  .page-login__section {
    padding: 40px 0;
  }

  .page-login__section-title {
    font-size: 1.8em;
  }

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

  .page-login__features-grid,
  .page-login__guide-steps,
  .page-login__troubleshooting-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__feature-item,
  .page-login__guide-item,
  .page-login__troubleshooting-item {
    padding: 20px;
  }

  .page-login__feature-title,
  .page-login__guide-step-title,
  .page-login__troubleshooting-title {
    font-size: 1.3em;
  }

  .page-login__cta-title {
    font-size: 2em;
  }

  .page-login__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

  /* Mobile image and video responsiveness */
  .page-login img {
    max-width: 100% !important;
    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-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
    height: 0 !important;
    overflow: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: auto;
    margin-right: auto;
  }

  .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;
  }
  
  /* Mobile button responsiveness */
  .page-login__button,
  .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;
  }
  
  .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;
  }
}