/* style/login.css */

/* Base Styles for page-login */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #1a1a2e; /* Inherited from shared, but for safety in case of override */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-login__section-title {
  font-size: 2.5em;
  color: #ffffff;
  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 {
  background-color: #1a1a2e;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-login__hero-section > .page-login__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.page-login__hero-content {
  flex: 1;
  text-align: left;
}

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

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

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 400px;
}

.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: #ffffff;
  font-weight: bold;
}

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

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

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.page-login__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Custom color for Login */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
}

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

.page-login__login-button {
  flex-grow: 1;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__forgot-password {
  color: #26A9E0;
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

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

.page-login__register-prompt {
  color: #cccccc;
  font-size: 0.9em;
  text-align: center;
}

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

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

.page-login__hero-image-wrapper {
  flex: 1;
  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.3);
  display: block;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background from body */
  color: #ffffff; /* Light text for dark background */
}

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

.page-login__benefit-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-login__benefit-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

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

/* Guide Section */
.page-login__guide-section {
  padding: 80px 0;
  background-color: #24243e; /* Slightly lighter dark background */
}

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

.page-login__step-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.page-login__step-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

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

.page-login__large-button {
  padding: 15px 35px;
  font-size: 1.1em;
  min-width: 200px;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.page-login__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background from body */
}

.page-login__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom: 1px solid #26A9E0;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #cccccc;
  background-color: rgba(255, 255, 255, 0.03);
}

/* CTA Download Section */
.page-login__cta-download {
  padding: 80px 0;
  background-color: #24243e; /* Slightly lighter dark background */
}

.page-login__cta-download > .page-login__container {
  display: flex;
  align-items: center;
  gap: 40px;
  background: rgba(255, 255, 255, 0.08); /* Card-like background for the container */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__cta-content {
  flex: 1;
  text-align: left;
}

.page-login__cta-download .page-login__section-title {
  text-align: left;
  color: #ffffff;
}

.page-login__cta-download .page-login__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-login__download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-login__download-button,
.page-login__explore-button {
  padding: 15px 30px;
  font-size: 1.1em;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__app-mockup {
  flex: 1;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-login__hero-section > .page-login__container,
  .page-login__cta-download > .page-login__container {
    flex-direction: column;
    text-align: center;
  }

  .page-login__hero-content,
  .page-login__cta-content {
    text-align: center;
  }

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

  .page-login__subtitle {
    font-size: 1.1em;
  }

  .page-login__login-form-wrapper {
    max-width: 100%;
  }

  .page-login__hero-image-wrapper,
  .page-login__cta-image {
    order: -1; /* Move image above content on smaller screens */
    margin-bottom: 30px;
  }

  .page-login__cta-download .page-login__section-title,
  .page-login__cta-download .page-login__section-description {
    text-align: center;
  }

  .page-login__download-buttons {
    justify-content: center;
  }
}

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

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

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

  .page-login__subtitle {
    font-size: 1em;
  }

  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__faq-section,
  .page-login__cta-download {
    padding: 40px 0;
  }

  .page-login__container {
    padding: 0 15px;
  }

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

  /* Image containers responsive */
  .page-login__hero-image-wrapper,
  .page-login__benefit-icon,
  .page-login__app-mockup {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  /* Buttons responsive */
  .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;
  }
  
  /* Button containers responsive */
  .page-login__form-actions,
  .page-login__cta-buttons,
  .page-login__download-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0; /* Already handled by container padding */
    padding-right: 0; /* Already handled by container padding */
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  .page-login__login-form-wrapper {
    padding: 20px;
  }

  .page-login__cta-download > .page-login__container {
    padding: 20px;
  }

  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

/* Color Contrast Enforcement (Dark Body Background: #1a1a2e) */
/* All text is already light, ensuring contrast */

/* Login button color */
.page-login__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
}
.page-login__btn-primary:hover {
  background-color: #d16e06;
}

/* Background color for sections/cards when needed */
.page-login__dark-bg {
  background-color: #1a1a2e; /* Explicitly set dark background */
  color: #ffffff; /* Ensure light text */
}

/* Example of a card on a dark background */
.page-login__benefit-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  color: #ffffff;
}

/* Ensure no image filters */
.page-login img {
  filter: none !important;
}