/* style/login.css */
/* body background is var(--background-color, #121212) which is dark. Text should be light. */

.page-login {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  min-height: 600px;
}

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

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

.page-login__login-form-wrapper {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto;
  color: #333333; /* Dark text for light background */
}

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

.page-login__form-group {
  text-align: left;
}

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

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

.page-login__form-input::placeholder {
  color: #999;
}

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

.page-login__remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-login__checkbox {
  width: 16px;
  height: 16px;
}

.page-login__checkbox-label {
  color: #333333;
}

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

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

.page-login__btn-primary {
  background: #EA7C07; /* Custom color for Login button */
  color: #FFFFFF;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

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

.page-login__login-button {
  margin-top: 10px;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95rem;
  color: #333333;
}

.page-login__register-prompt p {
  margin-bottom: 10px;
  color: #333333;
}

.page-login__btn-secondary {
  background: #26A9E0;
  color: #FFFFFF;
  padding: 10px 20px;
  border: 2px solid #26A9E0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

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

.page-login__dark-bg {
  background-color: var(--background-color, #121212); /* Dark background from shared */
  color: #ffffff; /* Light text for dark background */
}

.page-login__light-bg {
  background-color: #FFFFFF; /* White background */
  color: #333333; /* Dark text for light background */
}

.page-login__dark-section {
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff; /* White text for brand color background */
  padding: 60px 20px;
  text-align: center;
}

.page-login__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-login__section-description {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 40px;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 20px;
  text-align: center;
}

.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: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
  min-height: 350px; /* Ensure cards have similar height */
}

.page-login__benefit-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-login__card-text {
  font-size: 1rem;
  color: #555555;
}

/* Security Section */
.page-login__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 300px; /* Ensure items have similar height */
}

.page-login__feature-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-login__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-login__feature-text {
  font-size: 1rem;
  color: #f0f0f0;
}

/* How to Login Section */
.page-login__how-to-login-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-login__step-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 300px; /* Ensure cards have similar height */
}

.page-login__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  display: block;
}

.page-login__troubleshooting {
  margin-top: 60px;
  text-align: left;
  background: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  color: #333333;
}

.page-login__sub-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-login__troubleshooting ul {
  list-style: disc;
  padding-left: 25px;
}

.page-login__troubleshooting li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-login__troubleshooting li strong {
  color: #000000;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 20px;
  text-align: center;
}

.page-login__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-login__faq-item {
  background: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: #333333;
}

.page-login__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #f2f2f2;
  color: #333333;
  border-bottom: 1px solid #eee;
}

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

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

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

.page-login__faq-item[open] .page-login__faq-toggle {
  content: '−';
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #555555;
  line-height: 1.7;
  border-top: 1px solid #eee;
}

.page-login__faq-item[open] summary {
  border-bottom: none;
}

/* Call to Action Section */
.page-login__cta-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-login__large-button {
  padding: 15px 35px;
  font-size: 1.2rem;
  min-width: 250px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-content {
    padding: 25px;
  }

  .page-login__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }

  .page-login__section-title {
    font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  }

  .page-login__large-button {
    min-width: unset;
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  /* All images must be responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All image containers must be responsive */
  .page-login__hero-image-wrapper,
  .page-login__benefit-card,
  .page-login__feature-item,
  .page-login__step-card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__how-to-login-section,
  .page-login__faq-section,
  .page-login__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* All buttons must be responsive */
  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    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;
  }
  
  /* Button containers mobile adaptation */
  .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;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    min-height: 500px;
  }

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

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

  .page-login__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-login__login-form-wrapper {
    padding: 20px;
  }

  .page-login__form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__how-to-login-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 50px 15px;
  }

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

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

  .page-login__benefit-card,
  .page-login__feature-item,
  .page-login__step-card {
    min-height: unset;
    padding: 25px;
  }

  .page-login__sub-title {
    font-size: 1.4rem;
  }

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

  .page-login__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  .page-login__large-button {
    font-size: 1.1rem;
  }
}