/* style/login.css */

/* Global page-login styles */
.page-login {
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Rely on body background from shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: #1a1a2e; /* Ensure background for hero content if image doesn't cover fully */
  color: #ffffff;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure image wrapper is responsive */
  margin-bottom: 20px; /* Space between image and text */
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-login__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

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

.page-login__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  max-width: 100%; /* Ensure button doesn't exceed container */
}

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

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

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

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

/* Common container for content sections */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Section Titles and Descriptions */
.page-login__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff; /* Default for dark body background */
}

.page-login__section-description {
  font-size: 1.05em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0; /* Slightly lighter for description */
}

/* Login Form Section */
.page-login__form-section {
  padding: 80px 20px;
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff;
}

.page-login__form-wrapper {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-login__form-group {
  display: flex;
  flex-direction: column;
}

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

.page-login__form-input {
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1em;
  outline: none;
  transition: border-color 0.3s ease;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-login__form-input:focus {
  border-color: #26A9E0;
}

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

.page-login__checkbox-label {
  display: flex;
  align-items: center;
  color: #f0f0f0;
  cursor: pointer;
}

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

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

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

.page-login__submit-button {
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background-color: #EA7C07; /* Custom color for login button */
}

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

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

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

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 20px;
  background-color: #20203a; /* Slightly lighter dark background */
  color: #ffffff;
}

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

.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent card background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

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

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

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

.page-login__benefit-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1; /* Make text fill available space */
}

/* Security Section */
.page-login__security-section {
  padding: 80px 20px;
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff;
}

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

.page-login__security-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
}

.page-login__security-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

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

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 20px;
  background-color: #20203a; /* Slightly lighter dark 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-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__faq-item summary {
  list-style: none; /* Remove default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-login__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none; /* Hide for Webkit browsers */
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-login__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-login__faq-answer p {
  margin: 0;
}

.page-login__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

.page-login__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Download Section */
.page-login__cta-download-section {
  padding: 80px 20px;
  background-color: #1a1a2e;
  text-align: center;
  color: #ffffff;
}

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

.page-login__cta-download-section .page-login__section-description {
  color: #f0f0f0;
}

.page-login__cta-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding for mobile */
  }

  .page-login__main-title {
    font-size: clamp(2em, 7vw, 2.5em); /* Adjust for mobile */
  }

  .page-login__description {
    font-size: 1em;
  }

  .page-login__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-download-section {
    padding: 40px 15px;
  }

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

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

  .page-login__section-description {
    font-size: 0.95em;
  }

  .page-login__benefits-grid,
  .page-login__security-content {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

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

  .page-login__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  /* Image responsive styles */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Container responsiveness for mobile */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-download-section,
  .page-login__form-wrapper,
  .page-login__benefits-grid,
  .page-login__security-content,
  .page-login__faq-list,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-login__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-login__hero-image-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Ensure no filter on images */
.page-login img {
  filter: none !important;
}

/* Specific dark/light background classes for contrast system */
.page-login__dark-bg {
  background: #1a1a2e; /* Example dark background */
  color: #ffffff; /* White text */
}

.page-login__light-bg {
  background: #ffffff; /* Example light background */
  color: #333333; /* Dark text */
}

.page-login__medium-bg {
  background: #f0f0f0; /* Example medium background */
  color: #333333; /* Dark text */
}

/* Ensure paragraph and list item colors are readable */
.page-login p,
.page-login li {
  color: #f0f0f0; /* Light text for dark backgrounds */
}

/* Override for specific elements if needed, ensuring contrast */
.page-login__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark bg */
  color: #ffffff;
}