/* style/login.css */

/* Base styles for the login page, ensuring light text on dark body background */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text on dark body background (#000000 from shared) */
  line-height: 1.6;
  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;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top spacing, body handles header offset */
  text-align: center;
  overflow: hidden;
  background-color: #000000; /* Ensure dark background for this section */
}

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #ffffff;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__intro-text {
  font-size: 1.1rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Form Container */
.page-login__form-container {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.page-login__form-title {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 25px;
  font-weight: 600;
}

.page-login__input-group {
  margin-bottom: 20px;
  text-align: left;
}

.page-login__label {
  display: block;
  margin-bottom: 8px;
  color: #f0f0f0;
  font-size: 0.95rem;
}

.page-login__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: 1rem;
  box-sizing: border-box;
}

.page-login__input::placeholder {
  color: #cccccc;
  opacity: 0.7;
}

.page-login__input:focus {
  outline: none;
  border-color: #EA7C07;
  box-shadow: 0 0 0 3px rgba(234, 124, 7, 0.3);
}

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

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

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

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

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

.page-login__register-prompt {
  margin-top: 25px;
  font-size: 0.95rem;
  color: #f0f0f0;
}

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

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

/* General Section Styling */
.page-login__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.2;
}

.page-login__section-description {
  font-size: 1.05rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  opacity: 0.85;
}

/* Light Background Sections */
.page-login__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text on light background */
  padding: 80px 0;
}

.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__card-title {
  color: #000000;
}

.page-login__light-bg .page-login__btn-secondary {
  color: #ffffff;
  background-color: #26A9E0;
  border: 2px solid #26A9E0;
}

/* Dark Background Sections */
.page-login__dark-bg {
  background-color: #000000; /* Ensure dark background */
  color: #ffffff; /* Light text on dark background */
  padding: 80px 0;
}

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__card-title {
  color: #ffffff;
}

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

.page-login__card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* Default light text */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__light-bg .page-login__card {
  background-color: #f8f8f8; /* Light background for cards in light sections */
  color: #333333; /* Dark text */
  border: 1px solid #e0e0e0;
}

.page-login__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__card-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.page-login__card-text {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* How-To-Login Section */
.page-login__login-steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-login__step-item {
  background-color: #f8f8f8;
  border-left: 5px solid #26A9E0;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__step-title {
  font-size: 1.6rem;
  color: #000000;
  margin-bottom: 10px;
}

.page-login__step-text {
  font-size: 1rem;
  line-height: 1.6;
}

/* Troubleshooting Section */
.page-login__troubleshooting-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-login__troubleshooting-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #EA7C07;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__item-title {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-login__item-text {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
}

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

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

.page-login__btn-secondary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid #26A9E0;
  cursor: pointer;
  display: inline-block;
  margin-top: 30px;
  box-sizing: border-box;
  text-align: center;
}

.page-login__btn-secondary:hover {
  background-color: #1e87b7;
  transform: translateY(-2px);
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
}

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

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

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

.page-login__faq-item summary::marker {
  display: none;
}

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

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

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

.page-login__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #f0f0f0;
  opacity: 0.8;
}

.page-login__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-login__container {
    padding: 0 15px;
  }

  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Body handles header offset */
  }

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

  .page-login__intro-text {
    font-size: 1rem;
  }

  .page-login__form-container {
    padding: 25px;
  }

  .page-login__form-title {
    font-size: 1.5rem;
  }

  .page-login__input {
    padding: 10px 12px;
  }

  .page-login__form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .page-login__btn-primary,
  .page-login__forgot-password {
    width: 100%;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-login__benefits-grid,
  .page-login__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__card {
    padding: 25px;
  }

  .page-login__card-title {
    font-size: 1.3rem;
  }

  .page-login__section-title {
    font-size: 1.8rem;
  }

  .page-login__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-login__step-item,
  .page-login__troubleshooting-item {
    padding: 20px;
  }

  .page-login__step-title,
  .page-login__item-title {
    font-size: 1.4rem;
  }

  .page-login__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-login__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-login__faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 0.9rem;
  }

  /* Image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure width is 100% of container */
    height: auto !important;
    display: block !important;
  }
  
  .page-login__hero-image {
    filter: brightness(0.3) !important; /* Make hero image darker on mobile */
  }

  /* Container responsiveness */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-content,
  .page-login__form-container,
  .page-login__benefits-grid,
  .page-login__security-grid,
  .page-login__login-steps,
  .page-login__troubleshooting-list,
  .page-login__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-login__hero-content {
    padding-left: 0;
    padding-right: 0;
  }

  .page-login__form-container {
    margin-left: 0;
    margin-right: 0;
  }

  .page-login__form-actions {
    padding-left: 0;
    padding-right: 0;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    padding-left: 15px;
    padding-right: 15px;
  }
}