/* style/login.css */

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

/* Container for consistent content width */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #ffffff; /* Light text for dark sections */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #1a1a2e; /* Fallback for hero section background */
}

.page-login__hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6); /* Darken image for better text contrast */
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 2;
}

.page-login__hero-section .page-login__container {
  position: relative;
  z-index: 3;
  color: #ffffff;
}

.page-login__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__intro-text {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-login__login-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for card */
  backdrop-filter: blur(10px); /* Frosted glass effect */
  padding: 40px;
  border-radius: 10px;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-login__form-input:focus {
  border-color: #26A9E0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.3);
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.9em;
}

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #26A9E0; /* Highlight checkbox with brand color */
}

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

.page-login__forgot-password {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #EA7C07;
}

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

.page-login__btn-primary:hover {
  background-color: #d16b06;
  transform: translateY(-2px);
}

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

.page-login__register-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #EA7C07;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff;
}

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__benefit-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-login__benefit-text {
  color: #f0f0f0;
}

/* Process Section */
.page-login__process-section {
  padding: 80px 0;
  background-color: #20203a; /* Slightly lighter dark background */
  color: #ffffff;
}

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

.page-login__step-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 5px rgba(38, 169, 224, 0.3);
}

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

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

.page-login__process-image {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff;
  text-align: center;
}

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

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__feature-icon {
  width: 100px; /* Smaller icon display size */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size for the actual image file */
  min-height: 200px; /* Enforce min size for the actual image file */
}
/* Override actual image display size to be smaller for icons, while ensuring the source image is large */
.page-login__feature-icon[width="250"][height="250"] {
  width: 100px;
  height: 100px;
  max-width: 100px;
  max-height: 100px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


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

.page-login__feature-text {
  color: #f0f0f0;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

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

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #20203a; /* Slightly lighter dark background */
  color: #ffffff;
}

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

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(38, 169, 224, 0.1); /* Light brand color tint */
  user-select: none;
  transition: background-color 0.3s ease;
}

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

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

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

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

.page-login__faq-answer {
  padding: 20px 25px;
  background-color: rgba(255, 255, 255, 0.02);
  color: #f0f0f0;
  font-size: 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-login__faq-answer p {
  margin-bottom: 10px;
}

.page-login__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
}

.page-login__faq-answer li {
  margin-bottom: 5px;
}

/* Call to Action Section */
.page-login__cta-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand primary color background */
  color: #ffffff;
  text-align: center;
}

.page-login__cta-content {
  max-width: 800px;
}

.page-login__cta-section .page-login__section-title {
  color: #ffffff;
  margin-bottom: 15px;
}

.page-login__cta-section .page-login__section-description {
  color: #ffffff;
  margin-bottom: 30px;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__intro-text {
    font-size: 1.2em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

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

  .page-login__intro-text {
    font-size: 1.1em;
  }

  .page-login__login-card {
    padding: 30px 20px;
    max-width: 90%;
  }

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

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

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

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

  .page-login__benefit-image,
  .page-login__process-image {
    height: auto;
    width: 100%;
  }

  .page-login__feature-icon[width="250"][height="250"] {
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
  }

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

  .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;
  }

  /* Mobile image and container responsiveness */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  
  .page-login__hero-section {
    padding-left: 0 !important; /* Hero section padding needs careful handling, container inside has padding */
    padding-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__intro-text {
    font-size: 1em;
  }
  .page-login__card-title {
    font-size: 1.8em;
  }
  .page-login__login-card {
    padding: 25px 15px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Ensure images meet minimum size requirements for display, while allowing responsive shrinking */
.page-login img:not(.page-login__feature-icon) {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%;
  height: auto;
}

/* Special handling for feature icons to ensure they are displayed smaller but come from large source */
.page-login__feature-icon {
  width: 100px; /* Display size */
  height: 100px; /* Display size */
  max-width: 100px; /* Restrict max display size */
  max-height: 100px; /* Restrict max display size */
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .page-login__feature-icon {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
  }
}

/* General button styling to ensure contrast */
.page-login__btn-primary {
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
}

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

/* Dark section text color */
.page-login__dark-section {
  color: #ffffff;
}
.page-login__dark-section .page-login__section-title,
.page-login__dark-section .page-login__section-description,
.page-login__dark-section .page-login__benefit-title,
.page-login__dark-section .page-login__feature-title,
.page-login__dark-section .page-login__benefit-text,
.page-login__dark-section .page-login__feature-text {
  color: #ffffff;
}
.page-login__dark-section .page-login__benefit-item,
.page-login__dark-section .page-login__feature-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.page-login__dark-section .page-login__benefit-title,
.page-login__dark-section .page-login__feature-title {
  color: #26A9E0; /* Highlight titles with brand color */
}

/* Ensure all text elements inherit appropriate color */
.page-login p,
.page-login li,
.page-login label {
  color: inherit;
}
.page-login a {
  color: #26A9E0; /* Default link color */
}
.page-login a:hover {
  color: #EA7C07; /* Hover color for links */
}