/* style/login.css */
.page-login {
  color: #ffffff; /* Light text for dark body background #0a0a0a */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  min-height: 400px;
  background: linear-gradient(135deg, rgba(38, 169, 224, 0.2), rgba(10, 10, 10, 0.8)); /* Blending brand color with dark */
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

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

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

.page-login__hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-login__btn-primary {
  background-color: #EA7C07; /* Custom login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

/* Login Form Section */
.page-login__form-section {
  max-width: 500px;
  margin: 40px auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark body */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-login__section-title {
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0;
  font-size: 2em;
}

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

.page-login__form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #f0f0f0;
}

.page-login__form-group input[type="text"],
.page-login__form-group input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-group input[type="text"]::placeholder,
.page-login__form-group input[type="password"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-login__forgot-password {
  display: block;
  text-align: right;
  margin-top: -10px;
  margin-bottom: 20px;
  color: #26A9E0;
  text-decoration: none;
  font-size: 0.95em;
}

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

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

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

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

/* Security Assurance Section & Benefits Section */
.page-login__security-section,
.page-login__benefits-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.03); /* Subtle background */
  border-radius: 8px;
  color: #ffffff;
}

.page-login__security-section h2,
.page-login__benefits-section h2 {
  color: #26A9E0;
  font-size: 2.2em;
  margin-bottom: 20px;
}

.page-login__security-section p,
.page-login__benefits-section p {
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-login__security-image,
.page-login__benefits-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-login__feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.page-login__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 8px;
  flex: 1 1 calc(33% - 40px);
  min-width: 280px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__feature-item h3 {
  color: #EA7C07;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-login__feature-item p {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 0;
}

/* FAQ Section */
.page-login__faq-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-login__faq-section h2 {
  text-align: center;
  color: #26A9E0;
  font-size: 2.2em;
  margin-bottom: 30px;
}

.page-login__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.2);
}

.page-login__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  outline: none;
  font-weight: 600;
  color: #ffffff;
  font-size: 1.1em;
}

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

.page-login__faq-question {
  flex-grow: 1;
  color: #f0f0f0;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: #EA7C07;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  padding: 10px 20px 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  font-size: 0.95em;
}

/* General content area styling */
.page-login__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #ffffff; /* Ensure text is light */
}

/* All content area images must be >= 200x200 */
.page-login__content-area img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
  filter: none !important; /* Ensure no CSS filters are used on images */
}

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

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

  .page-login__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-login__hero-description {
    font-size: 1em;
  }

  .page-login__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-login__form-section,
  .page-login__security-section,
  .page-login__benefits-section,
  .page-login__faq-section {
    padding: 20px 15px;
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

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

  .page-login__security-section p,
  .page-login__benefits-section p {
    font-size: 0.95em;
  }

  .page-login__feature-list {
    flex-direction: column;
    gap: 20px;
  }

  .page-login__feature-item {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* General container adaptation for mobile */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .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;
    overflow: hidden !important;
  }

  /* Specific top padding for potential video section if it were present */
  .page-login__video-section {
    padding-top: 10px !important;
  }
}

/* Ensure no CSS filters are used on images globally */
.page-login img {
  filter: none !important;
}