/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

.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;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken background image for text readability */
}

.page-login__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-form-wrapper {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    margin: 40px auto 20px auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

.page-login__form-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

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

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

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

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

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

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

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

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

.page-login__checkbox {
    accent-color: #017439;
}

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

.page-login__submit-button {
  background-color: #C30808; /* Login button color */
  color: #ffffff; /* Prioritize WCAG AA contrast over specific #FFFF00 */
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 15px;
}

.page-login__submit-button:hover {
  background-color: #a00606;
}

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

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

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

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

.page-login__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-login__btn-register {
  background-color: #C30808; /* Register button color */
  color: #ffffff; /* Prioritize WCAG AA contrast over specific #FFFF00 */
  border: 2px solid #C30808;
}

.page-login__btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-login__btn-download {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-login__btn-download:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

/* Features Section */
.page-login__features-section {
  padding: 80px 0;
  background-color: #017439; /* Brand color for dark section */
  color: #ffffff;
}

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

.page-login__feature-card {
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__feature-icon {
  width: 100%; /* Ensure large image */
  max-width: 400px; /* Example max-width for feature icons */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

/* How-To Login Section */
.page-login__how-to-login-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

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

.page-login__step-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__step-number {
  width: 60px;
  height: 60px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-login__step-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-login__step-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 8px;
    margin-top: 15px;
}

.page-login__troubleshooting {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin-top: 60px;
}

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

.page-login__troubleshooting-text {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 25px;
}

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  padding: 12px 25px;
  border: 2px solid #017439;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.page-login__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #005a2d;
}

/* Register Promo Section */
.page-login__register-promo-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-login__register-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-login__register-text-block {
  flex: 1;
}

.page-login__register-text-block p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-login__register-benefits {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-login__register-benefits li {
  font-size: 1em;
  margin-bottom: 10px;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.page-login__register-benefits li::before {
  content: '✅';
  margin-right: 10px;
  font-size: 1.2em;
}

.page-login__register-image {
  flex: 1;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
}

/* Mobile App Section */
.page-login__mobile-app-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-login__app-download-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-login__app-info {
  flex: 1;
}

.page-login__app-info p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-login__app-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-login__app-features li {
  font-size: 1em;
  margin-bottom: 10px;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.page-login__app-features li::before {
  content: '📱';
  margin-right: 10px;
  font-size: 1.2em;
}

.page-login__app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.page-login__app-image {
  flex: 1;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
}

/* Security and Support Section */
.page-login__security-support-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-login__security-support-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.page-login__security-block, .page-login__support-block {
    background: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__block-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__security-block p, .page-login__support-block p {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-login__security-features, .page-login__support-channels {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-login__security-features li, .page-login__support-channels li {
    font-size: 1em;
    margin-bottom: 10px;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.page-login__security-features li::before {
    content: '🔒';
    margin-right: 10px;
    font-size: 1.2em;
}

.page-login__support-channels li::before {
    content: '💬';
    margin-right: 10px;
    font-size: 1.2em;
}


/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-login__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-login__faq-qtext {
    flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
}

.page-login__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Final CTA Section */
.page-login__cta-final-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

.page-login__final-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.page-login__btn-primary {
  background-color: #C30808; /* Primary button color */
  color: #ffffff; /* Prioritize WCAG AA contrast over specific #FFFF00 */
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__register-content,
  .page-login__app-download-grid {
    flex-direction: column;
    text-align: center;
  }
  .page-login__register-image,
  .page-login__app-image {
    max-width: 80%;
    margin: 20px auto;
  }
  .page-login__register-text-block,
  .page-login__app-info {
    text-align: center;
  }
  .page-login__register-benefits,
  .page-login__app-features {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 400px; /* Constrain list width for better readability */
  }
  .page-login__security-support-content {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 500px;
    padding: 80px 0;
  }
  .page-login__hero-title {
    font-size: 2.5em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 0.9em;
  }
  .page-login__login-form-wrapper {
      margin: 20px auto;
      padding: 20px;
  }
  .page-login__form-title {
      font-size: 1.5em;
  }
  .page-login__cta-buttons,
  .page-login__final-cta-buttons,
  .page-login__app-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }
  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login__btn-register,
  .page-login__btn-download,
  .page-login__btn-secondary,
  .page-login__submit-button,
  .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__container {
    padding: 0 15px;
  }
  .page-login__features-grid,
  .page-login__steps-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile image responsiveness */
  .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__register-content,
  .page-login__app-download-grid,
  .page-login__security-support-content,
  .page-login__faq-list {
    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__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }
  
  /* Content area images CSS dimensions lower limit */
  .page-login__feature-icon, .page-login__step-image, .page-login__register-image, .page-login__app-image {
      min-width: 200px; /* Ensure images are not too small */
      min-height: 200px;
  }
  
  /* Ensure no width/height override below 200px */
  .page-login img:not(.shared-header img):not(.shared-footer img) {
      width: auto; /* Reset to auto to prevent small fixed widths */
      height: auto;
      max-width: 100%;
      min-width: 200px; /* Explicitly ensure minimum size */
      min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 2em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-login__step-title {
      font-size: 1.3em;
  }
  .page-login__block-title {
      font-size: 1.5em;
  }
  .page-login__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
}