/* 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: #0a0a0a; /* Inherited from shared, ensuring consistency */
}

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

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

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

.page-login__section-paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.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-section .page-login__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

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

.page-login__main-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 900px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-login__login-form-wrapper {
  background: rgba(0, 0, 0, 0.7);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  width: 100%;
  box-sizing: border-box;
}

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

.page-login__form-group {
  text-align: left;
}

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #0A2342;
  border-radius: 5px;
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-input:focus {
  border-color: #E5A000;
  outline: none;
  box-shadow: 0 0 0 3px rgba(229, 160, 0, 0.3);
}

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

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

.page-login__checkbox {
  width: 16px;
  height: 16px;
  accent-color: #E5A000;
}

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

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

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

.page-login__btn-primary {
  background-color: #E5A000;
  color: #0A2342;
  padding: 15px 25px;
  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;
  display: inline-block;
  text-align: center;
}

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

.page-login__btn-primary a {
  color: #0A2342;
  text-decoration: none;
  display: block;
}

.page-login__no-account-text {
  color: #f0f0f0;
  font-size: 1em;
  margin-top: 15px;
}

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

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

/* About w69 section */
.page-login__about-w69 {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

/* Why Choose w69 section */
.page-login__why-choose-w69 {
  background-color: #0a0a0a;
  color: #f0f0f0;
}

.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: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.page-login__feature-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

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

.page-login__feature-description {
  font-size: 1em;
  color: #cccccc;
  flex-grow: 1;
}

.page-login__feature-list {
  list-style: disc inside;
  text-align: left;
  color: #cccccc;
  margin-top: 10px;
  padding-left: 20px;
}

.page-login__feature-list li {
  margin-bottom: 5px;
}

/* Login Guide Section */
.page-login__login-guide {
  background-color: #0A2342;
  color: #ffffff;
}

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

.page-login__guide-step {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-top: 70px;
  height: 100%;
  box-sizing: border-box;
}

.page-login__step-number {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #E5A000;
  color: #0A2342;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

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

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

.page-login__step-list {
  list-style: disc inside;
  color: #f0f0f0;
  margin-top: 10px;
  padding-left: 20px;
}

/* Troubleshooting Section */
.page-login__troubleshooting {
  background-color: #0a0a0a;
  color: #f0f0f0;
}

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

.page-login__troubleshooting-item {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.page-login__troubleshooting-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

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

.page-login__troubleshooting-description {
  font-size: 1em;
  color: #cccccc;
  flex-grow: 1;
}

.page-login__troubleshooting-list {
  list-style: disc inside;
  text-align: left;
  color: #cccccc;
  margin-top: 10px;
  padding-left: 20px;
}

.page-login__troubleshooting-list li {
  margin-bottom: 5px;
}

/* Security Importance Section */
.page-login__security-importance {
  background-color: #0A2342;
  color: #ffffff;
}

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

.page-login__security-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  box-sizing: border-box;
}

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

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

/* CTA Register Section */
.page-login__cta-register {
  background-color: #1a1a1a;
  color: #f0f0f0;
  padding-bottom: 80px;
}

.page-login__register-cta {
  margin-top: 30px;
  display: inline-block;
}

.page-login__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

/* FAQ Section */
.page-login__faq {
  background-color: #0a0a0a;
  color: #f0f0f0;
}

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

.page-login__faq-item {
  background: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 15px;
  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;
  cursor: pointer;
  background-color: #0A2342;
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

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

.page-login__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #E5A000;
}

.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: #cccccc;
  background-color: #2a2a2a;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px;
}

.page-login__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #cccccc;
}

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

  .page-login__main-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
  }

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

  .page-login__main-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-login__login-form-wrapper {
    padding: 30px 20px;
    max-width: 100%;
  }

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

  .page-login__section-paragraph {
    font-size: 0.95em;
  }

  .page-login__features-grid,
  .page-login__guide-steps,
  .page-login__troubleshooting-grid,
  .page-login__security-points {
    grid-template-columns: 1fr;
  }

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

  .page-login__feature-title,
  .page-login__step-title,
  .page-login__troubleshooting-title,
  .page-login__security-title {
    font-size: 1.3em;
  }

  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-form-wrapper,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-login__cta-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;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-login__faq-question {
    padding: 15px;
  }

  .page-login__faq-title {
    font-size: 1.1em;
  }

  .page-login__faq-answer {
    padding: 0 15px;
  }

  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px;
  }

  .page-login__guide-step {
    padding-top: 60px;
  }
  .page-login__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }

  .page-login__main-description {
    font-size: 0.9em;
  }

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

  .page-login__form-input {
    padding: 10px 12px;
  }

  .page-login__btn-primary {
    padding: 12px 20px;
    font-size: 1em;
  }
}