/* style/login.css */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--black-color); /* Inherited from shared.css */
}

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

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background-color: #000000; /* Fallback for dark-bg */
}

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

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

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text */
  border-radius: 10px;
  margin-top: 20px; /* Separates from image, not overlaying */
}

.page-login__main-title {
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* No fixed large font-size, rely on responsive scaling */
  font-size: clamp(2em, 4vw, 3.5em);
}

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

.page-login__form-container {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  margin: 0 auto;
  color: #333333;
  text-align: left;
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.page-login__btn-primary {
  background-color: #EA7C07; /* Custom color for Login */
  color: #ffffff;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
}

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

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

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

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

.page-login__btn-secondary {
  background-color: #26A9E0; /* Main brand color for secondary CTA */
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  width: 100%;
  max-width: 200px;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #1e87b7;
}

.page-login__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  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;
}

/* Sections */
.page-login__benefits-section,
.page-login__guide-section,
.page-login__faq-section {
  padding: 60px 0;
  color: #333333;
  background-color: #ffffff; /* Light background */
}

.page-login__security-section,
.page-login__cta-section {
  padding: 60px 0;
  color: #ffffff;
  background-color: #26A9E0; /* Dark background with brand color */
}

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

.page-login__benefit-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
}

.page-login__benefit-icon {
  width: 100%; /* Ensure images fill card width */
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

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

/* Security Features */
.page-login__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  color: #ffffff;
}

.page-login__feature-item {
  background: rgba(0, 0, 0, 0.2); /* Semi-transparent background */
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__feature-icon {
  width: 100%;
  height: auto;
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

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

/* Guide List */
.page-login__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  max-width: 800px;
  margin: 40px auto;
}

.page-login__guide-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 30px;
}

.page-login__guide-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #26A9E0;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-login__guide-step-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333333;
}

.page-login__subsection-title {
  font-size: 1.8em;
  font-weight: bold;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
  color: #333333;
}

.page-login__issues-list {
  list-style: disc;
  max-width: 700px;
  margin: 0 auto 40px auto;
  padding-left: 30px;
  color: #333333;
}

.page-login__issues-item {
  margin-bottom: 10px;
}

/* CTA Buttons */
.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-login__cta-buttons .page-login__btn-primary,
.page-login__cta-buttons .page-login__btn-secondary {
  min-width: 200px;
  max-width: 300px;
  width: auto; /* Allow natural width on desktop */
  padding: 15px 30px;
  font-size: 1.2em;
}

/* FAQ Section */
.page-login__faq-list {
  max-width: 800px;
  margin: 40px auto;
}

.page-login__faq-item {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333333;
  list-style: none; /* For details/summary */
}

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

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

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

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

.page-login__faq-item[open] .page-login__faq-question {
  background-color: #e0e0e0;
}

.page-login__text-link {
  color: #26A9E0;
  text-decoration: none;
}

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

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

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

@media (max-width: 768px) {
  .page-login__container {
    padding: 0 15px !important;
  }

  .page-login__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    min-height: 500px;
  }

  .page-login__hero-content {
    padding: 20px;
    margin-top: 0;
  }

  .page-login__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
    margin-bottom: 15px;
  }

  .page-login__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-login__form-container {
    padding: 20px;
    max-width: 100%;
  }

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

  .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__benefits-section,
  .page-login__security-section,
  .page-login__guide-section,
  .page-login__cta-section,
  .page-login__faq-section {
    padding: 40px 0;
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

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

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

  .page-login__guide-list {
    margin: 30px auto;
  }

  .page-login__guide-item {
    padding-left: 50px;
  }

  .page-login__guide-item::before {
    width: 35px;
    height: 35px;
    font-size: 1em;
  }

  .page-login__guide-step-title {
    font-size: 1.1em;
  }

  .page-login__subsection-title {
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-login__issues-list {
    padding-left: 20px;
  }

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

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

  .page-login__faq-answer {
    padding: 0 20px 15px;
  }

  /* Image responsive */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__hero-image-wrapper,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__guide-section,
  .page-login__cta-section,
  .page-login__faq-section,
  .page-login__benefit-card,
  .page-login__feature-item,
  .page-login__cta-buttons,
  .page-login__login-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}