/* style/login.css */

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh; /* Ensure it takes up sufficient viewport height */
  text-align: center;
  overflow: hidden;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  box-sizing: border-box;
}

.page-login__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken background image for text readability */
  /* NO filter for color change, only for brightness/contrast for readability */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text */
  border-radius: 10px;
}

.page-login__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__subtitle {
  font-size: clamp(1em, 1.5vw, 1.1em);
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Login Form */
.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.1); /* Lighter background for the form */
  padding: 30px;
  border-radius: 8px;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

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

.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-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}

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

.page-login__remember-me input[type="checkbox"] {
  accent-color: #26A9E0; /* Brand color for checkbox */
}

.page-login__forgot-password {
  color: #26A9E0; /* Brand color */
  text-decoration: none;
}

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

.page-login__login-button {
  background-color: #EA7C07; /* Custom Login button color */
  color: #ffffff;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  width: 100%; /* Ensure button fills container */
  box-sizing: border-box;
}

.page-login__login-button:hover {
  background-color: #e06a00;
}

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

.page-login__register-link {
  color: #26A9E0; /* Brand color */
  text-decoration: none;
  font-weight: bold;
}

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

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

.page-login__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter than body background */
  color: #ffffff;
  text-align: center;
}

.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.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 250px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__benefit-title {
  font-size: 1.4em;
  color: #26A9E0; /* Brand color for titles */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__benefit-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

.page-login__faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-login__faq-item[open] {
  background: rgba(255, 255, 255, 0.15);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffffff;
  list-style: none; /* For details/summary */
}

.page-login__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

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

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

.page-login__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
  text-align: left;
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  text-align: center;
}

.page-login__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: clamp(1.8em, 4vw, 3em);
  }

  .page-login__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.2em);
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 70vh;
    padding: 10px 15px 40px;
  }

  .page-login__hero-content {
    padding: 15px;
  }

  .page-login__main-title {
    font-size: clamp(1.6em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-login__subtitle {
    font-size: clamp(0.9em, 2.5vw, 1em);
    margin-bottom: 20px;
  }

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

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__benefits-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 50px 0;
  }

  .page-login__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 30px;
  }

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

  .page-login__benefit-card {
    padding: 25px;
  }

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

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

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

  /* Mobile responsive for images and containers */
  .page-login img {
    max-width: 100% !important;
    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__benefits-section,
  .page-login__faq-section,
  .page-login__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons mobile responsiveness */
  .page-login__login-button,
  .page-login__btn-primary {
    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,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Ensure no filter for color change on images */
.page-login img {
  filter: none; /* Reset any potential filters */
}

/* Specific filter for hero image for readability, not color change */
.page-login__hero-image {
  filter: brightness(0.4); /* Only for darkening, not color change */
}

/* Color contrast enforcement */
.page-login__dark-section {
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter than body background */
  color: #ffffff;
}

.page-login__cta-section {
  background: #26A9E0; /* Brand color */
  color: #ffffff;
}

.page-login__login-button {
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
}

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

.page-login__forgot-password,
.page-login__register-link,
.page-login__benefit-title {
  color: #26A9E0;
}

.page-login__form-label,
.page-login__remember-me {
  color: #ffffff;
}

.page-login__faq-toggle {
  color: #26A9E0;
}