.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF6D6); /* Default text color for the page content */
  background-color: var(--background, #0A0A0A); /* Page background color */
}

/* Fixed header padding for the first content section */
.page-login__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default */
  background: linear-gradient(135deg, #F2C14E, #FFD36B);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a decent height */
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #000000; /* Darker text for contrast on gradient background */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-login__hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  color: #333333; /* Darker text for contrast on gradient background */
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-form-wrapper {
  background: var(--card-bg, #111111);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  max-width: 450px;
  margin: 40px auto 0; /* Adjust margin for spacing below description */
  border: 1px solid var(--border, #3A2A12);
}

.page-login__form-title {
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center;
  color: var(--text-main, #FFF6D6);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-main, #FFF6D6);
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border, #3A2A12);
  border-radius: 5px;
  background-color: #0A0A0A;
  color: var(--text-main, #FFF6D6);
  font-size: 1rem;
  box-sizing: border-box;
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.page-login__checkbox-label {
  color: #ccc;
  cursor: pointer;
}

.page-login__forgot-password {
  color: var(--glow, #FFD36B);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 14px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #000000; /* Black text for contrast on gold button */
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #FFE87A 0%, #EAA82D 100%);
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: var(--glow, #FFD36B);
  border: 2px solid var(--glow, #FFD36B);
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background: var(--glow, #FFD36B);
  color: #000000;
  transform: translateY(-2px);
}

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

.page-login__register-link {
  color: var(--glow, #FFD36B);
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.2; /* Subtle background image */
}

/* General Section Styling */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-login__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main, #FFF6D6);
}

.page-login__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #ccc;
}

.page-login__sub-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main, #FFF6D6);
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
}

.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: var(--card-bg, #111111);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border, #3A2A12);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.page-login__benefit-icon {
  width: 200px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-login__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--glow, #FFD36B);
}

.page-login__benefit-card p {
  color: #ccc;
  font-size: 0.95rem;
}

/* Security Section */
.page-login__security-section {
  padding: 60px 0;
}

.page-login__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__security-text {
  flex: 1;
  min-width: 300px;
}

.page-login__security-text p {
  margin-bottom: 20px;
  color: #ccc;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-login__security-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23FFD36B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
  background-size: 18px;
  padding-left: 30px;
  margin-bottom: 15px;
  color: #ccc;
}

.page-login__security-list li strong {
  color: var(--text-main, #FFF6D6);
}

.page-login__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  object-fit: cover;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 60px 0;
}

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

.page-login__troubleshooting-item {
  background: var(--card-bg, #111111);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border, #3A2A12);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-login__item-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--glow, #FFD36B);
}

.page-login__troubleshooting-item p {
  color: #ccc;
  margin-bottom: 20px;
}

.page-login__text-link {
  color: var(--glow, #FFD36B);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Register CTA Section */
.page-login__register-cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #F2C14E, #FFD36B);
}

.page-login__register-cta-section .page-login__section-title {
  color: #000000; /* Dark text on light background */
}

.page-login__register-cta-section .page-login__cta-description {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #333333; /* Dark text on light background */
  font-size: 1.1rem;
}

.page-login__register-cta-button {
  max-width: 300px;
  margin: 0 auto;
  color: #000000; /* Ensure black text on button */
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
}

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

.page-login__faq-item {
  background: var(--card-bg, #111111);
  border: 1px solid var(--border, #3A2A12);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

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

.page-login__faq-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main, #FFF6D6);
  margin: 0;
}

.page-login__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--glow, #FFD36B);
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it overrides */
  padding: 15px 25px;
}

.page-login__faq-answer p {
  color: #ccc;
  font-size: 0.95rem;
  margin: 0;
}

/* App Download Section */
.page-login__app-download-section {
  padding: 60px 0;
  text-align: center;
}

.page-login__app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__app-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-login__app-text p {
  color: #ccc;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.page-login__button-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-login__button-group .page-login__btn-primary,
.page-login__button-group .page-login__btn-secondary {
  flex: 1;
  min-width: 180px; /* Ensure buttons are not too small */
  max-width: 250px;
}

.page-login__app-image {
  flex-shrink: 0;
  width: 300px;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-content {
    max-width: 700px;
  }
  .page-login__hero-image {
    opacity: 0.15;
  }
  .page-login__security-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  .page-login__security-text,
  .page-login__security-image {
    max-width: 100%;
  }
  .page-login__security-list {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 30px;
  }
  .page-login__app-content {
    flex-direction: column;
  }
  .page-login__app-text {
    text-align: center;
    max-width: 100%;
  }
  .page-login__button-group {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile: Ensure padding for fixed header */
  }
  .page-login__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .page-login__hero-description {
    font-size: 1rem;
  }
  .page-login__login-form-wrapper {
    margin-top: 20px;
    padding: 20px;
  }
  .page-login__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }
  .page-login__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-login__benefit-icon {
    width: 150px;
    height: 112px;
  }
  .page-login__security-image {
    width: 100%;
    height: auto;
  }
  .page-login__app-image {
    width: 250px;
    height: auto;
  }
  
  /* Mobile image 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-form-wrapper,
  .page-login__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Mobile button 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;
    padding-right: 15px;
    margin-bottom: 10px; /* Add some vertical spacing for stacked buttons */
  }
  .page-login__button-group {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-login__hero-content {
    padding: 15px;
  }
  .page-login__login-form-wrapper {
    padding: 15px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__forgot-password {
    align-self: flex-end;
  }
  .page-login__container {
    padding: 20px 15px;
  }
  .page-login__faq-question {
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 10px 20px;
  }
  .page-login__button-group .page-login__btn-primary,
  .page-login__button-group .page-login__btn-secondary {
    min-width: unset;
  }
}

/* Color Contrast Fixes */
.page-login__dark-section {
  background-color: var(--background, #0A0A0A);
  color: var(--text-main, #FFF6D6);
}

.page-login__card {
  background: var(--card-bg, #111111);
  color: var(--text-main, #FFF6D6);
  border: 1px solid var(--border, #3A2A12);
}

.page-login__btn-primary {
  color: #000000; /* Ensure black text on gold button for contrast */
}

.page-login__register-cta-section {
  background: linear-gradient(90deg, #F2C14E, #FFD36B);
}

.page-login__register-cta-section .page-login__section-title,
.page-login__register-cta-section .page-login__cta-description {
  color: #000000; /* Dark text for contrast on light gradient background */
}

.page-login__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}