/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #121212; /* Inherited from body or set explicitly for consistency */
  line-height: 1.6;
}

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

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

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

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  padding-bottom: 60px;
}

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for better text contrast */
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8));
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  max-width: 900px;
}

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

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

.page-login__form-wrapper {
  background: rgba(0, 0, 0, 0.8);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid #CC0000;
}

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

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: #333;
  color: #f0f0f0;
  font-size: 1em;
}

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

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

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

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

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

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

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

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #CC0000; /* Primary brand color */
  color: #ffffff; /* White text for contrast */
  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;
  text-align: center;
}

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

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

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

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

/* Benefits Section */
.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-login__benefit-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

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

/* Guide Section */
.page-login__guide-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

.page-login__guide-step-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  flex: 1 1 calc(33% - 40px); /* Three columns on desktop */
  max-width: calc(33% - 20px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__step-number {
  font-size: 2.5em;
  color: #CC0000; /* Primary red for step numbers */
  font-weight: bold;
  margin-bottom: 15px;
}

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

.page-login__step-text {
  color: #cccccc;
}

.page-login__troubleshoot-section {
  margin-top: 60px;
  background: rgba(204, 0, 0, 0.2); /* Light red background for attention */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #CC0000;
}

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

.page-login__troubleshoot-text {
  color: #f0f0f0;
  font-size: 1.1em;
}

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

.page-login__link:hover {
  text-decoration: underline;
}

/* Security Section */
.page-login__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__feature-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-login__feature-text {
  color: #cccccc;
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  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(204, 0, 0, 0.3); /* Slightly transparent red for questions */
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(204, 0, 0, 0.5);
}

.page-login__faq-q-title {
  color: #ffffff;
  margin: 0;
  font-size: 1em;
}

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

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
  /* content: '−'; Handled by JS */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
}

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

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

/* CTA Section */
.page-login__cta-section {
  text-align: center;
  background: linear-gradient(45deg, #CC0000, #FFD700);
  padding: 80px 0;
  border-radius: 10px;
  margin: 60px auto;
  max-width: 1000px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-login__cta-section .page-login__section-title {
  color: #ffffff;
  margin-bottom: 25px;
}

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

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

.page-login__btn-secondary {
  display: block;
  padding: 15px 25px;
  background-color: #ffffff; /* White background */
  color: #CC0000; /* Primary red text */
  border: 2px solid #CC0000;
  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;
  text-align: center;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #e60000;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2.2em;
  }
  .page-login__guide-step-item {
    flex: 1 1 calc(50% - 20px); /* Two columns */
    max-width: calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__hero-title {
    font-size: 2.5em;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 1em;
  }
  .page-login__section-padding {
    padding: 60px 0;
  }
  .page-login__guide-step-item,
  .page-login__benefit-item,
  .page-login__feature-item {
    flex: 1 1 100%; /* Single column */
    max-width: 100%;
  }
  .page-login__form-wrapper {
    padding: 30px 20px;
  }
  .page-login__form-title {
    font-size: 1.8em;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: calc(100% - 30px) !important; /* Adjust for padding in container */
    max-width: 100% !important;
    margin: 0 auto;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Image and Video responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__hero-image {
    height: 100% !important;
    object-fit: cover !important;
  }
  .page-login__container,
  .page-login__section-padding,
  .page-login__form-wrapper,
  .page-login__benefits-grid,
  .page-login__guide-steps,
  .page-login__troubleshoot-section,
  .page-login__security-features,
  .page-login__faq-list,
  .page-login__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-login__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__faq-question, .page-login__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 2em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__form-title {
    font-size: 1.5em;
  }
  .page-login__hero-section {
    min-height: 500px;
  }
  .page-login__form-wrapper {
    padding: 25px 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 1em;
    padding: 12px 15px;
  }
}