/* style/login.css */

/* Custom Colors */
:root {
  --page-login-primary-color: #11A84E;
  --page-login-secondary-color: #22C768;
  --page-login-card-bg: #11271B;
  --page-login-background: #08160F;
  --page-login-text-main: #F2FFF6;
  --page-login-text-secondary: #A7D9B8;
  --page-login-border-color: #2E7A4E;
  --page-login-glow-color: #57E38D;
  --page-login-glow-color-rgb: 87, 227, 141; /* RGB values for rgba */
  --page-login-gold-color: #F2C14E;
  --page-login-divider-color: #1E3A2A;
  --page-login-deep-green: #0A4B2C;
  --page-login-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-login {
  color: var(--page-login-text-main); /* Default text color for dark body background */
  background-color: var(--page-login-background); /* Ensure consistency if body bg is not fully applied */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--page-login-deep-green); /* A darker green for hero background */
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px; /* Space between image and content */
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  filter: none !important; /* Ensure no image filters */
}

.page-login__hero-content {
  width: 100%;
  max-width: 700px;
  background-color: var(--page-login-card-bg); /* Darker background for content block */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-login-border-color);
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1 */
  color: var(--page-login-text-main);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-login__description {
  font-size: 1.1em;
  color: var(--page-login-text-secondary);
  margin-bottom: 30px;
}

.page-login__login-form-wrapper {
  background-color: var(--page-login-background); /* Even darker for form */
  padding: 25px;
  border-radius: 6px;
  border: 1px solid var(--page-login-divider-color);
}

.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: 8px;
  color: var(--page-login-text-main);
  font-weight: bold;
}

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid var(--page-login-border-color);
  border-radius: 5px;
  background-color: #0A1E15; /* Darker input background */
  color: var(--page-login-text-main);
  font-size: 1em;
}

.page-login__form-input::placeholder {
  color: var(--page-login-text-secondary);
  opacity: 0.7;
}

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: block;
  padding: 14px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-login__btn-primary {
  background: var(--page-login-button-gradient);
  color: #ffffff; /* White text for primary button */
  border: none;
}

.page-login__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: var(--page-login-glow-color); /* Glow color text for secondary button */
  border: 2px solid var(--page-login-glow-color);
}

.page-login__btn-secondary:hover {
  background-color: rgba(var(--page-login-glow-color-rgb), 0.1); /* Use RGB for rgba */
  transform: translateY(-2px);
}

.page-login__form-links {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  font-size: 0.95em;
}

.page-login__forgot-password-link,
.page-login__need-help-link {
  color: var(--page-login-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover,
.page-login__need-help-link:hover {
  color: var(--page-login-glow-color);
  text-decoration: underline;
}

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

.page-login__section-title {
  font-size: 2.2em;
  color: var(--page-login-text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-login__section-description {
  font-size: 1.1em;
  color: var(--page-login-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__dark-section {
  background-color: var(--page-login-card-bg); /* Darker background for sections */
  padding: 80px 0;
  border-top: 1px solid var(--page-login-divider-color);
  border-bottom: 1px solid var(--page-login-divider-color);
}

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

.page-login__benefit-card {
  background-color: var(--page-login-background); /* Even darker for cards */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--page-login-border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__benefit-icon {
  width: 100%; /* Ensure images take full width of card */
  height: auto;
  max-height: 200px; /* Limit height for uniform look */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 4px;
  filter: none !important; /* Ensure no image filters */
}

.page-login__card-title {
  font-size: 1.4em;
  color: var(--page-login-text-main);
  margin-bottom: 10px;
}

.page-login__card-text {
  color: var(--page-login-text-secondary);
  font-size: 0.95em;
}

/* Guide Section */
.page-login__guide-section {
  padding: 80px 0;
  background-color: var(--page-login-background);
}

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

.page-login__step-item {
  background-color: var(--page-login-card-bg);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--page-login-border-color);
  position: relative;
  padding-top: 70px; /* Space for step number */
}

.page-login__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--page-login-button-gradient);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 3px solid var(--page-login-background);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__step-title {
  font-size: 1.3em;
  color: var(--page-login-text-main);
  margin-bottom: 15px;
}

.page-login__step-text {
  color: var(--page-login-text-secondary);
  font-size: 0.95em;
  margin-bottom: 15px;
}

.page-login__btn-text-link {
  color: var(--page-login-glow-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__btn-text-link:hover {
  color: var(--page-login-gold-color);
  text-decoration: underline;
}

.page-login__cta-block {
  text-align: center;
}

.page-login__cta-text {
  font-size: 1.2em;
  color: var(--page-login-text-main);
  margin-bottom: 25px;
}

.page-login__btn-large {
  padding: 16px 35px;
  font-size: 1.2em;
  min-width: 200px;
}

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

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

.page-login__tip-card {
  background-color: var(--page-login-background);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--page-login-border-color);
  transition: box-shadow 0.3s ease;
}

.page-login__tip-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: var(--page-login-background);
}

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

.page-login__faq-item {
  background-color: var(--page-login-card-bg);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--page-login-border-color);
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--page-login-text-main);
  cursor: pointer;
  background-color: var(--page-login-deep-green); /* Slightly different background for question */
  border-bottom: 1px solid var(--page-login-border-color);
}

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom: 1px solid var(--page-login-divider-color);
}

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

.page-login__faq-question::marker {
  display: none;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-login-glow-color);
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--page-login-text-secondary);
  background-color: var(--page-login-background); /* Answer background */
}

.page-login__cta-faq {
  text-align: center;
  margin-top: 40px;
}

/* Download App Section */
.page-login__download-app-section {
  padding: 80px 0;
  background-color: var(--page-login-card-bg);
}

.page-login__download-app-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-login__download-text .page-login__section-title,
.page-login__download-text .page-login__section-description {
  text-align: left;
}

.page-login__download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap */
}

.page-login__download-image {
  flex: 0 0 auto;
  max-width: 400px;
}

.page-login__download-mockup {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  filter: none !important; /* Ensure no image filters */
}

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

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

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

  .page-login__download-app-content {
    flex-direction: column;
    text-align: center;
  }

  .page-login__download-text {
    text-align: center;
  }

  .page-login__download-text .page-login__section-title,
  .page-login__download-text .page-login__section-description {
    text-align: center;
  }

  .page-login__download-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

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

  .page-login__description {
    font-size: 1em;
  }

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

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

  .page-login__form-links {
    flex-direction: column;
    gap: 10px;
  }

  .page-login__dark-section,
  .page-login__guide-section,
  .page-login__faq-section,
  .page-login__download-app-section {
    padding: 50px 0;
  }

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

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

  .page-login__container {
    padding: 0 15px;
  }

  .page-login__benefits-grid,
  .page-login__guide-steps,
  .page-login__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  /* Mobile specific image handling */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: none !important; /* Ensure no image filters */
  }
  
  /* Mobile specific container handling */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__login-form-wrapper,
  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__security-tips-section,
  .page-login__faq-section,
  .page-login__download-app-section,
  .page-login__download-app-content,
  .page-login__download-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Remove specific padding for sections that already have it from container */
  .page-login__hero-section,
  .page-login__dark-section,
  .page-login__guide-section,
  .page-login__faq-section,
  .page-login__download-app-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-login__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }
  
  /* Ensure download buttons wrap */
  .page-login__download-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

/* Ensure images don't use filters (redundant, but for strictness) */
.page-login img {
  filter: none !important;
}

/* Ensure body background color is respected for text color */
/* Body background is #08160F (dark), so text should be light */
.page-login h1,
.page-login h2,
.page-login h3,
.page-login h4,
.page-login h5,
.page-login h6 {
  color: var(--page-login-text-main);
}
.page-login p,
.page-login li,
.page-login span,
.page-login label {
  color: var(--page-login-text-secondary);
}
.page-login__main-title,
.page-login__section-title,
.page-login__card-title,
.page-login__step-title {
  color: var(--page-login-text-main);
}
.page-login__description,
.page-login__section-description,
.page-login__card-text,
.page-login__step-text,
.page-login__form-label {
  color: var(--page-login-text-secondary);
}
.page-login__btn-primary {
  color: #ffffff;
}
.page-login__btn-secondary {
  color: var(--page-login-glow-color);
}
.page-login__forgot-password-link,
.page-login__need-help-link,
.page-login__btn-text-link {
  color: var(--page-login-text-secondary);
}
.page-login__faq-question {
  color: var(--page-login-text-main);
}
.page-login__faq-answer {
  color: var(--page-login-text-secondary);
}
.page-login__faq-toggle {
  color: var(--page-login-glow-color);
}