/* style/login.css */
/* 
  Body background is #0a0a0a (dark).
  All main text on the body directly should be #ffffff.
  Elements with light backgrounds (e.g., form section, CTA section) should have dark text (#333333).
  Elements with dark backgrounds (e.g., benefits section, FAQ section) should have light text (#ffffff).
*/

/* Base styles for the login page content */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body handles the background color */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background-color: #0a0a0a; /* Ensure a dark background for the hero content */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Limit image width */
  margin-bottom: 30px; /* Space between image and text */
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-login__hero-content {
  max-width: 900px;
  color: #ffffff; /* Light text on dark background */
}

.page-login__main-title {
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  /* No fixed font-size for H1, let it be responsive by default */
}

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

/* General Section Styling */
.page-login__section-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 25px;
  text-align: center;
  line-height: 1.3;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Login Form Section */
.page-login__form-section {
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text on light background */
  padding: 60px 20px;
}

.page-login__form-section .page-login__section-title,
.page-login__form-section .page-login__form-intro {
  color: #333333;
}

.page-login__login-form {
  background-color: #f8f8f8;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
}

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

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

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

.page-login__form-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 10px;
}

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

.page-login__link:hover {
  text-decoration: underline;
}

.page-login__no-account-text {
  color: #333333;
  margin: 0;
}

/* Buttons */
.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  margin-top: 20px;
  border: none;
  background-color: #EA7C07; /* Custom color for Login button */
  color: #ffffff; /* White text for contrast */
}

.page-login__btn-primary:hover {
  background-color: #d46b00; /* Slightly darker orange on hover */
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  border: 2px solid #26A9E0;
  background-color: transparent;
  color: #26A9E0; /* Brand color for secondary button text */
  margin-top: 15px;
}

.page-login__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-login__btn-large {
  max-width: 300px; /* Limit width for large buttons in CTA */
  margin-left: auto;
  margin-right: auto;
}

/* Benefits Section */
.page-login__benefits-section {
  background-color: #26A9E0; /* Brand primary color, dark type */
  color: #ffffff; /* White text for contrast */
  padding: 60px 20px;
}

.page-login__benefits-section .page-login__section-title,
.page-login__benefits-section .page-login__section-description {
  color: #ffffff;
}

.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-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-login__benefit-icon {
  width: 100%; /* Occupy card main visual area */
  height: auto;
  max-height: 200px; /* Example max height */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 5px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

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

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

/* Security Section */
.page-login__security-section {
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for contrast */
  padding: 60px 20px;
}

.page-login__security-section .page-login__section-title,
.page-login__security-section .page-login__section-description {
  color: #333333;
}

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

.page-login__security-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-login__security-icon {
  width: 100%; /* Occupy card main visual area */
  height: auto;
  max-height: 200px; /* Example max height */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 5px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

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

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

/* FAQ Section */
.page-login__faq-section {
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff; /* White text for contrast */
  padding: 60px 20px;
}

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

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

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  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 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  list-style: none; /* Remove default marker for summary */
}

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

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

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

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

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

.page-login__cta-section .page-login__section-title,
.page-login__cta-section .page-login__section-description {
  color: #333333;
}

.page-login__cta-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
}

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

  .page-login__hero-section,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 30px 15px !important; /* Mobile padding */
  }

  /* Images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Allow smaller sizes for responsiveness, but still > 200px from HTML attributes if needed */
    min-height: unset !important;
  }
  
  /* All containers for images, videos, buttons */
  .page-login__hero-image-wrapper,
  .page-login__benefit-card,
  .page-login__security-card,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-section,
  .page-login__container {
    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-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
  }

  .page-login__main-title {
    font-size: 1.8em;
  }

  .page-login__section-title {
    font-size: 1.6em;
  }

  .page-login__form-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    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-content {
    gap: 15px;
  }

  .page-login__btn-large {
    max-width: 100% !important;
  }

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

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.5em;
  }
  .page-login__section-title {
    font-size: 1.4em;
  }
  .page-login__login-form {
    padding: 25px;
  }
}