/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #000000; /* Ensure main content area has its own background if body is transparent */
}

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

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

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

.page-login__section-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-login__hero-section {
  background: linear-gradient(135deg, #8B0000, #4a0000); /* Dark red gradient */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  padding-bottom: 60px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.page-login__hero-section > .page-login__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-login__hero-content {
  flex: 1;
  min-width: 300px;
}

.page-login__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

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

.page-login__login-form {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  max-width: 400px;
  margin-top: 30px;
}

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

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

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

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  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;
  transition: color 0.3s ease;
}

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

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #FFD700;
  color: #000000;
  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;
  box-sizing: border-box;
}

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

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

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

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

.page-login__hero-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Why Choose Section */
.page-login__why-choose {
  background-color: #000000;
  color: #ffffff;
}

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

.page-login__feature-item {
  background-color: #1a1a1a;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
  border-left: 5px solid #FFD700;
}

.page-login__feature-heading {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

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

/* How To Login Section */
.page-login__how-to-login {
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-login__step-item {
  background-color: #000000;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
  border-bottom: 3px solid #FFD700;
}

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

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

/* Common Issues Section */
.page-login__common-issues {
  background-color: #000000;
  color: #ffffff;
}

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

.page-login__issue-item {
  background-color: #1a1a1a;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
  border-right: 5px solid #8B0000;
}

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

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

/* Security Section */
.page-login__security {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-login__security-content {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  line-height: 1.8;
  color: #e0e0e0;
}

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

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

.page-login__faq-item {
  background-color: #1a1a1a;
  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: 18px 25px;
  background-color: #2a2a2a;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  transition: background-color 0.3s ease;
}

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

.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); /* Change to X or - */
}

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

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

/* Call to Action Section */
.page-login__call-to-action {
  background: linear-gradient(45deg, #FFD700, #e0b800);
  color: #000000;
  padding: 80px 0;
}

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

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #8B0000;
  color: #ffffff;
  border: 2px solid #8B0000;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

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

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

@media (max-width: 768px) {
  .page-login__hero-section > .page-login__container {
    flex-direction: column;
    text-align: center;
  }
  .page-login__hero-content {
    order: 2; /* Content after image on mobile */
  }
  .page-login__hero-image-wrapper {
    order: 1;
    margin-bottom: 30px;
  }
  .page-login__login-form {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .page-login__hero-title {
    font-size: 2em;
  }
  .page-login__hero-description,
  .page-login__cta-description {
    font-size: 1em;
  }
  .page-login__section {
    padding: 40px 0;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__features-grid,
  .page-login__steps-list,
  .page-login__issues-list {
    grid-template-columns: 1fr;
  }
  .page-login__feature-item,
  .page-login__step-item,
  .page-login__issue-item {
    text-align: center;
    border-left: none;
    border-right: none;
    border-bottom: 3px solid #FFD700;
    border-top: 3px solid #FFD700;
  }
  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px 20px;
  }

  /* Mobile responsive for images */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__section,
  .page-login__container,
  .page-login__hero-section,
  .page-login__hero-image-wrapper,
  .page-login__login-form,
  .page-login__features-grid,
  .page-login__steps-list,
  .page-login__issues-list,
  .page-login__faq-list,
  .page-login__faq-item,
  .page-login__call-to-action {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .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__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}