/* style/login.css */

/* --- Base Styles --- */
.page-login {
  color: #ffffff; /* Body background is #000000 (dark), so text should be light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #000000; /* Ensuring the main background is dark as per shared.css body background */
}

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

.page-login__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Using brand color for titles */
}

.page-login__text-content {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1em;
}

/* --- Hero Section --- */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image block above text block */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  box-sizing: border-box;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

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

.page-login__hero-content {
  text-align: center;
  max-width: 900px;
  width: 100%; /* Ensure content block takes full width up to max-width */
  z-index: 1; /* Ensure text is above any subtle background elements */
  padding: 0 20px;
  box-sizing: border-box;
}

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

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

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
}

.page-login__cta-buttons--centered {
  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;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  text-align: center;
  min-width: 200px; /* Minimum width for buttons */
}

.page-login__btn-primary {
  background-color: #EA7C07; /* Login button color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

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

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

/* --- Benefits Section --- */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
}

.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.05); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  background-color: rgba(38, 169, 224, 0.1); /* Hover with brand color tint */
}

.page-login__benefit-icon {
  width: 200px; /* Min image size */
  height: 150px; /* Min image size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

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

.page-login__card-description {
  color: #f0f0f0;
}

/* --- How-To-Login Section --- */
.page-login__how-to-login-section {
  padding: 80px 0;
  background-color: #000000;
}

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

.page-login__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-sizing: border-box;
}

.page-login__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #FFFFFF;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-login__step-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.page-login__step-description {
  color: #f0f0f0;
}

.page-login__note {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #f0f0f0;
}

/* --- Troubleshoot Section --- */
.page-login__troubleshoot-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-login__solution-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
  color: #f0f0f0;
}

.page-login__solution-list li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
}

.page-login__solution-list li strong {
  color: #26A9E0;
}

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

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

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

.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-size: 1.2em;
  font-weight: bold;
  color: #FFFFFF;
  transition: background-color 0.3s ease;
}

.page-login__faq-item summary:hover {
  background-color: rgba(38, 169, 224, 0.1);
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none; /* Hide Chrome/Safari marker */
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

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

/* --- Call To Action Section --- */
.page-login__call-to-action-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

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

  .page-login__container,
  .page-login__hero-content,
  .page-login__cta-buttons,
  .page-login__benefits-grid,
  .page-login__steps,
  .page-login__solution-list,
  .page-login__faq-list {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-login__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-login__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
    padding: 0 5px;
  }

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

  .page-login__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }

  .page-login__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    min-width: unset; /* Remove min-width for mobile */
  }

  .page-login__benefits-grid,
  .page-login__steps {
    grid-template-columns: 1fr; /* Single column layout */
  }

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

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

  /* Image containers responsive */
  .page-login__hero-image-wrapper,
  .page-login__benefit-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Content area image size lower bound check */
  .page-login__benefit-icon {
    width: 200px !important; /* Ensure min 200px */
    height: auto !important; /* Adjust height automatically */
    max-width: 100% !important;
  }
}

/* Ensure all images adhere to the minimum size and no small icons */
.page-login img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* or contain, depending on context */
}