/* style/login.css */

/* Base Styles */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color 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: #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;
}

.page-login__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__card-title {
  font-size: 1.5em;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #FFFF00; /* Yellow for card titles on dark bg */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Desktop padding-top */
  overflow: hidden;
  background-color: #1a1a2e; /* Dark background for hero section */
}

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

.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: 2;
}

.page-login__hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

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

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

/* Login Form */
.page-login__login-form-wrapper {
  background: #FFFFFF; /* White background for the form itself */
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 0 auto;
  text-align: left;
}

.page-login__form-title {
  font-size: 2em;
  color: #017439; /* Brand green for form title */
  margin-bottom: 30px;
  text-align: center;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1em;
  color: #333333; /* Dark text for labels on white background */
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333;
}

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

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.page-login__btn-login,
.page-login__btn-register {
  display: block;
  width: 100%;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-login {
  background-color: #C30808; /* Custom red for login button */
  color: #FFFF00; /* Custom yellow for login button text */
  border: none;
}

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

.page-login__btn-register {
  background-color: #017439; /* Brand green for register button */
  color: #FFFFFF;
  border: none;
}

.page-login__btn-register:hover {
  background-color: #005a2d;
  transform: translateY(-2px);
}

.page-login__forgot-password {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #017439; /* Brand green for forgot password link */
  text-decoration: none;
  font-size: 0.95em;
}

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

/* Advantages Section */
.page-login__advantages-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background for this section */
  color: #ffffff;
}

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

.page-login__advantage-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter card background on dark section */
}

.page-login__advantage-icon {
  width: 100%;
  height: auto;
  max-width: 250px; /* Adjust size for content images */
  margin-bottom: 15px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* How-To-Login Section */
.page-login__how-to-login-section {
  padding: 80px 0;
  background-color: #017439; /* Brand green background */
  color: #FFFFFF;
}

.page-login__how-to-login-section .page-login__section-title,
.page-login__how-to-login-section .page-login__section-description {
  color: #FFFFFF;
}

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

.page-login__step-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.15); /* Lighter card on brand green background */
  padding: 30px;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-login__step-number {
  background: #FFFF00; /* Yellow step number */
  color: #017439; /* Brand green text on yellow */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.page-login__step-card .page-login__card-title {
  color: #FFFFFF; /* White title on brand green section */
}

.page-login__step-card .page-login__card-text {
  color: #f0f0f0;
}

.page-login__troubleshooting-box {
  background: #FFFFFF; /* White background for troubleshooting box */
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-login__troubleshooting-box .page-login__card-title {
  color: #C30808; /* Red for troubleshooting title */
  margin-bottom: 20px;
}

.page-login__troubleshooting-list {
  list-style: disc;
  padding-left: 20px;
  color: #333333;
}

.page-login__troubleshooting-list li {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-login__list-strong {
  color: #017439; /* Brand green for strong text */
}

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

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  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-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
  font-weight: normal;
}

.page-login__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFFF00; /* Yellow toggle icon */
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

.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-out, padding 0.3s ease-out;
  background-color: rgba(255, 255, 255, 0.03);
}

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

.page-login__faq-text {
  color: #f0f0f0;
  font-size: 1em;
  margin: 0;
}

/* Call to Action Section */
.page-login__cta-section {
  padding: 80px 0;
  background-color: #C30808; /* Custom red background for CTA */
  text-align: center;
  color: #FFFFFF;
}

.page-login__cta-section .page-login__section-title {
  color: #FFFF00; /* Yellow title on red background */
}

.page-login__cta-section .page-login__section-description {
  color: #FFFFFF;
  margin-bottom: 50px;
}

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

.page-login__btn-register-cta,
.page-login__btn-promotions-cta {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-register-cta {
  background-color: #FFFF00; /* Yellow background for register CTA */
  color: #C30808; /* Red text on yellow background */
  border: none;
}

.page-login__btn-register-cta:hover {
  background-color: #e6e600;
  transform: translateY(-2px);
}

.page-login__btn-promotions-cta {
  background-color: #017439; /* Brand green for promotions CTA */
  color: #FFFFFF;
  border: none;
}

.page-login__btn-promotions-cta:hover {
  background-color: #005a2d;
  transform: translateY(-2px);
}

/* Links within content */
.page-login a {
  color: #FFFF00; /* Yellow for links on dark backgrounds */
  text-decoration: underline;
}

.page-login a:hover {
  color: #e6e600;
}

.page-login__troubleshooting-box a {
  color: #C30808; /* Red for links within troubleshooting box (light background) */
  text-decoration: underline;
}

.page-login__troubleshooting-box a:hover {
  color: #a00606;
}

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

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 600px;
  }
  .page-login__hero-title {
    font-size: 2.5em;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 1em;
  }
  .page-login__advantages-grid,
  .page-login__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
  }

  /* Images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All content containers responsive */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-form-wrapper,
  .page-login__troubleshooting-box,
  .page-login__faq-item,
  .page-login__cta-section,
  .page-login__advantages-section,
  .page-login__how-to-login-section,
  .page-login__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive */
  .page-login__btn-login,
  .page-login__btn-register,
  .page-login__btn-register-cta,
  .page-login__btn-promotions-cta,
  .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; /* Ensure text doesn't hit edges */
    padding-right: 15px; /* Ensure text doesn't hit edges */
  }

  .page-login__cta-buttons {
    flex-direction: column; /* Stack CTA buttons vertically */
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__form-title {
    font-size: 1.8em;
  }
  .page-login__login-form-wrapper {
    padding: 25px;
  }
  .page-login__faq-question {
    padding: 15px 15px;
  }
  .page-login__faq-answer {
    padding: 15px 15px;
  }
}