/* style/login.css */

/* --- Base Styles & Typography --- */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is 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: #E44D26; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0; /* Slightly off-white for body text */
}

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

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

/* --- Buttons --- */
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Ensure padding/border included in width */
}

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

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

.page-login__btn-secondary {
  background-color: transparent;
  color: #E44D26;
  border: 2px solid #E44D26;
}

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

/* --- Hero Section --- */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  overflow: hidden;
  text-align: center;
  color: #ffffff;
}

.page-login__hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: -1;
}

.page-login__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #E44D26; /* Ensure contrast */
}

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

/* --- Login Card --- */
.page-login__login-card {
  background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent light background for contrast */
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 40px auto;
  text-align: left;
  position: relative;
  z-index: 1;
}

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

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

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

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

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

.page-login__form-input:focus {
  border-color: #E44D26;
  outline: none;
  box-shadow: 0 0 0 3px rgba(228, 77, 38, 0.3);
}

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

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

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

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

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

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

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  background-color: #E44D26;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

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

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

.page-login__social-login {
  margin-top: 30px;
  text-align: center;
}

.page-login__social-text {
  color: #f0f0f0;
  margin-bottom: 15px;
  position: relative;
}

.page-login__social-text::before,
.page-login__social-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background-color: #555;
}

.page-login__social-text::before {
  left: 0;
}

.page-login__social-text::after {
  right: 0;
}

.page-login__social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.page-login__social-btn {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.page-login__social-btn--facebook {
  background-color: #3b5998;
}

.page-login__social-btn--facebook:hover {
  background-color: #2d4373;
}

.page-login__social-btn--google {
  background-color: #dd4b39;
}

.page-login__social-btn--google:hover {
  background-color: #c23321;
}

/* --- Benefits Section --- */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background for this section */
  color: #ffffff;
}

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

.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark card */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-login__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 200px; /* Constrain icon size */
  margin: 0 auto 20px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
  min-width: 200px;
}

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

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

.page-login__section-footer {
  text-align: center;
  margin-top: 50px;
  font-size: 1.1em;
  color: #f0f0f0;
}

/* --- Why Choose Section --- */
.page-login__why-choose-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-login__why-choose-section .page-login__section-title {
  color: #333333;
}

.page-login__why-choose-section .page-login__section-description {
  color: #555555;
}

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

.page-login__why-choose-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-login__why-choose-icon {
  width: 100%;
  height: auto;
  max-width: 180px; /* Constrain icon size */
  margin: 0 auto 20px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
  min-width: 200px;
}

.page-login__why-choose-title {
  font-size: 1.4em;
  color: #E44D26;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__why-choose-text {
  font-size: 1em;
  color: #555555;
}

.page-login__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

.page-login__cta-text {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 30px;
}

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

.page-login__app-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-login__app-text-block {
  flex: 1;
  min-width: 300px;
}

.page-login__app-text-block .page-login__section-title {
  text-align: left;
}

.page-login__app-text-block .page-login__section-description {
  text-align: left;
  margin-bottom: 30px;
}

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

.page-login__app-features li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-login__app-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #E44D26;
  font-weight: bold;
  font-size: 1.2em;
}

.page-login__app-image-block {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-login__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-height: 200px; /* Minimum size requirement */
  min-width: 200px;
}

/* --- FAQ Section --- */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background */
  color: #333333; /* Dark text */
}

.page-login__faq-section .page-login__section-title {
  color: #333333;
}

.page-login__faq-section .page-login__section-description {
  color: #555555;
}

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

.page-login__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

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

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

.page-login__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #E44D26;
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
}

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

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 25px;
}

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

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

.page-login__cta-final-section .page-login__section-title {
  color: #E44D26;
}

.page-login__cta-final-section .page-login__section-description {
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


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

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

  /* Fixed header offset for mobile, if needed - shared.css should handle body padding */
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile hero */
  }

  .page-login__hero-title {
    font-size: 2.2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }

  .page-login__login-card {
    padding: 30px 20px;
    max-width: 90%;
    margin: 20px auto;
  }

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

  .page-login__social-btn {
    width: 100%;
    justify-content: center;
  }

  .page-login__benefits-section,
  .page-login__why-choose-section,
  .page-login__app-section,
  .page-login__faq-section,
  .page-login__cta-final-section {
    padding: 60px 0;
  }

  .page-login__benefits-grid,
  .page-login__why-choose-grid {
    grid-template-columns: 1fr;
  }

  .page-login__app-content {
    flex-direction: column;
  }

  .page-login__app-text-block,
  .page-login__app-image-block {
    min-width: unset;
    width: 100%;
    text-align: center;
  }

  .page-login__app-text-block .page-login__section-title,
  .page-login__app-text-block .page-login__section-description {
    text-align: center;
  }

  .page-login__app-features {
    padding: 0 15px;
  }

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

  /* --- Mobile Image, Video, Button Responsive Rules (IMPORTANT) --- */
  /* All images */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All image containers (sections, divs, cards) */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__why-choose-section,
  .page-login__app-section,
  .page-login__faq-section,
  .page-login__cta-final-section,
  .page-login__login-card,
  .page-login__benefit-card,
  .page-login__why-choose-item,
  .page-login__app-content,
  .page-login__app-text-block,
  .page-login__app-image-block,
  .page-login__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to prevent content touching edges */
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* All video elements */
  .page-login video,
  .page-login__video { /* Assuming a class for video if used */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All video containers */
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* All buttons */
  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"],
  .page-login__submit-button,
  .page-login__social-btn {
    max-width: 100% !important;
    width: 100% !important; /* Ensure full width on mobile */
    box-sizing: border-box !important;
    white-space: normal !important; /* Allow text to wrap */
    word-wrap: break-word !important; /* Break long words */
    padding-left: 15px;
    padding-right: 15px;
  }
}