/* style/login.css */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000;
}

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

.page-login__section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-login__dark-bg {
  background-color: #000;
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #0d0d0d; /* Slightly lighter dark for contrast in sections */
  color: #ffffff;
}

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

.page-login__section-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  box-sizing: border-box;
}

.page-login__video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-login__video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  display: block; /* Ensure it behaves as a block element */
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.page-login__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 2;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  position: relative;
  z-index: 2;
  color: #f0f0f0;
}

.page-login__form-wrapper {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #FFD700;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #FFD700;
}

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

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

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

.page-login__btn-primary {
  background: #FFD700;
  color: #000000;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: block;
  width: 100%;
  text-decoration: none;
  box-sizing: border-box;
}

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

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

.page-login__register-link {
  color: #FFD700;
  text-decoration: none;
}

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

/* Why Login Section */
.page-login__why-login {
  background-color: #0d0d0d;
}

.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.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-login__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

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

.page-login__feature-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Guide Section */
.page-login__guide {
  background-color: #000;
}

.page-login__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-login__guide-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-left: 5px solid #FFD700;
}

.page-login__guide-step-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-login__guide-item p {
  font-size: 1.1em;
  color: #f0f0f0;
  line-height: 1.6;
}

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

.page-login__btn-secondary {
  background: transparent;
  color: #FFD700;
  padding: 15px 30px;
  border: 2px solid #FFD700;
  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: #000000;
  transform: translateY(-2px);
}

/* Troubleshooting Section */
.page-login__troubleshooting {
  background-color: #8B0000; /* Use secondary brand color for a darker section */
}

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

.page-login__troubleshooting-grid .page-login__card {
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

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

.page-login__troubleshooting-grid .page-login__card p {
  font-size: 1em;
  line-height: 1.6;
}

/* Security Section */
.page-login__security {
  background-color: #0d0d0d;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-login__security-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-left: 4px solid #FFD700;
}

.page-login__security-subtitle {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-login__security-item p {
  font-size: 1.1em;
  color: #f0f0f0;
  line-height: 1.6;
}

/* FAQ Section */
.page-login__faq {
  background-color: #000;
}

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

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

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

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

.page-login__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1.2em;
}

.page-login__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(0, 0, 0, 0.4);
  color: #f0f0f0;
}

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

.page-login__faq-answer p {
  margin: 0;
  line-height: 1.6;
  font-size: 1em;
}

/* 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: 2.5em;
  }
  .page-login__section-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 80vh;
  }
  .page-login__hero-title {
    font-size: 2.2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__form-wrapper {
    padding: 30px 20px;
    max-width: 90%;
  }
  .page-login__form-title {
    font-size: 1.8em;
  }
  .page-login__section {
    padding: 60px 0;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__section-description {
    font-size: 0.95em;
  }
  .page-login__features-grid, .page-login__troubleshooting-grid {
    grid-template-columns: 1fr;
  }
  .page-login__feature-item, .page-login__troubleshooting-grid .page-login__card {
    padding: 20px;
  }
  .page-login__feature-title {
    font-size: 1.5em;
  }
  .page-login__guide-item {
    padding: 20px;
  }
  .page-login__guide-step-title {
    font-size: 1.5em;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary, .page-login__btn-secondary {
    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__security-subtitle {
    font-size: 1.4em;
  }
  .page-login__faq-question h3 {
    font-size: 1.1em;
  }
  .page-login__faq-toggle {
    font-size: 1.5em;
  }

  /* Mobile image and video responsive adaptation */
  .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__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 {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset applies */
  }
}