/* style/login.css */

/* Base styles for the login page content */
.page-login {
  background-color: #0A0A0A; /* Matches custom background color */
  color: #FFF6D6; /* Matches custom text main color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-login__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for small screens, row for larger */
  align-items: center;
  gap: 40px;
  padding-top: var(--header-offset, 120px); /* Desktop: Fixed header spacing */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #0A0A0A 0%, #111111 100%); /* Dark background, subtle gradient */
  position: relative;
  overflow: hidden;
}

.page-login__hero-content {
  text-align: center;
  max-width: 700px;
  z-index: 1;
}

.page-login__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Clamp for responsive sizing */
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFF6D6;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: rgba(255, 246, 214, 0.8);
}

.page-login__login-card {
  background-color: #111111; /* Card BG */
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  width: 100%;
  border: 1px solid #3A2A12; /* Border color */
  position: relative;
  z-index: 1;
}

.page-login__card-title {
  font-size: 2em;
  color: #F2C14E; /* Main color */
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-size: 1em;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__form-input:focus {
  border-color: #F2C14E;
  box-shadow: 0 0 8px rgba(242, 193, 78, 0.6);
}

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

.page-login__remember-me {
  color: rgba(255, 246, 214, 0.8);
  display: flex;
  align-items: center;
  gap: 5px;
}

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

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

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for light button */
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.page-login__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  color: rgba(255, 246, 214, 0.8);
  font-size: 0.95em;
}

.page-login__register-link {
  color: #FFD36B; /* Glow color for link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #F2C14E;
  text-decoration: underline;
}

.page-login__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* Behind content */
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15; /* Subtly visible */
  filter: grayscale(80%); /* Make it less distracting */
}

/* General Section Styles */
.page-login__section {
  padding: 80px 0;
  text-align: center;
}

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #F2C14E;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-login__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: rgba(255, 246, 214, 0.8);
}

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

.page-login__feature-item {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #3A2A12;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-login__feature-icon {
  width: 100%; /* Ensure image fills card width */
  height: auto;
  max-height: 200px; /* Limit height */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  filter: brightness(0.8) contrast(1.2); /* Enhance visual for dark background */
}

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

.page-login__feature-text {
  color: rgba(255, 246, 214, 0.7);
  font-size: 0.95em;
}

/* Seamless Process Section */
.page-login__process-section {
  background-color: #F8F8F8; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-login__process-section .page-login__section-title,
.page-login__process-section .page-login__section-description {
  color: #333333; /* Ensure dark text on light background */
}

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

.page-login__step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-login__step-number {
  display: inline-flex;
  width: 45px;
  height: 45px;
  background-color: #F2C14E;
  color: #111111;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

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

.page-login__step-text {
  color: #555555;
  font-size: 0.95em;
}

.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
}

.page-login__cta-button {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box; /* Important for mobile responsiveness */
  max-width: 100%; /* Important for mobile responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-login__btn-secondary:hover {
  background-color: #F2C14E;
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

/* Security Section */
.page-login__security-section {
  background-color: #0A0A0A;
}

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

.page-login__security-item {
  background-color: #111111;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #3A2A12;
}

.page-login__security-icon {
  width: 100%; /* Fill card width */
  height: auto;
  max-height: 150px; /* Limit height */
  object-fit: contain; /* Ensure full icon is visible */
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(242, 193, 78, 0.6)); /* Add a glow effect */
}

.page-login__security-title {
  font-size: 1.5em;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-login__security-text {
  color: rgba(255, 246, 214, 0.7);
  font-size: 0.95em;
}

.page-login__read-more-btn {
  margin-top: 40px;
}

/* Offerings Section */
.page-login__offerings-section {
  background-color: #0A0A0A; /* Use background color */
  padding-bottom: 100px;
}

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

.page-login__offering-card {
  background-color: #111111;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #3A2A12;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__offering-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-login__offering-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  filter: brightness(0.9);
}

.page-login__offering-card h3 {
  font-size: 1.4em;
  color: #F2C14E;
  margin: 20px 20px 10px 20px;
}

.page-login__offering-card p {
  color: rgba(255, 246, 214, 0.7);
  margin: 0 20px 20px 20px;
  font-size: 0.95em;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: #F8F8F8; /* Light background */
  color: #333333; /* Dark text */
}

.page-login__faq-section .page-login__section-title,
.page-login__faq-section .page-login__section-description {
  color: #333333;
}

.page-login__faq-list {
  max-width: 800px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.page-login__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: #f0f0f0;
}

.page-login__faq-q-title {
  font-size: 1.2em;
  color: #333333;
  margin: 0;
}

.page-login__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #F2C14E;
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Change to X or - */
  color: #FFD36B;
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #555555;
  font-size: 0.95em;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 25px;
}

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

/* CTA Section */
.page-login__cta-section {
  background-color: #0A0A0A;
  padding-top: 60px;
}

/* Copyright */
.page-login__copyright {
  padding: 30px 0;
  background-color: #000000;
  text-align: center;
  font-size: 0.9em;
  color: rgba(255, 246, 214, 0.6);
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-login__hero-section {
    flex-direction: row;
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 20px;
  }
  .page-login__hero-content {
    text-align: left;
  }
  .page-login__main-title {
    font-size: clamp(2.5em, 4vw, 3.8em); /* Clamp for larger screens */
  }
  .page-login__hero-image-container {
    position: relative;
    width: 50%; /* Image takes half width */
    height: auto;
    max-height: 600px;
  }
  .page-login__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: Ensure padding for fixed header */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__login-card {
    padding: 30px;
  }
  .page-login__section {
    padding: 60px 0;
  }
  .page-login__section-title {
    font-size: 2em;
    padding: 0 15px;
  }
  .page-login__section-description {
    padding: 0 15px;
    margin-bottom: 30px;
  }

  /* Images responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-card,
  .page-login__feature-item,
  .page-login__security-item,
  .page-login__offering-card,
  .page-login__faq-item,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsiveness */
  .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; /* Add internal padding */
    padding-right: 15px; /* Add internal padding */
  }

  /* Button containers for multiple buttons */
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__faq-question {
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px 20px;
  }
}

/* Ensure images are not filtered */
.page-login img {
  filter: none; /* Override any potential global filters, keep original color */
}

/* Contrast fix if needed, though colors are chosen for contrast */
.page-login__text-contrast-fix {
  color: #333333; /* For light backgrounds */
}

.page-login__dark-bg {
  background-color: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
}

.page-login__light-bg {
  background-color: #F8F8F8;
  color: #333333;
}