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

.page-login {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--page-bg); /* Page background color */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  background-color: var(--deep-green);
  overflow: hidden;
}

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle overlay */
  display: block;
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

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

/* Login Form */
.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main);
  font-weight: bold;
  font-size: 0.95em;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card-bg);
  color: var(--text-main);
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-input:focus {
  outline: none;
  border-color: var(--glow-color);
  box-shadow: 0 0 8px rgba(var(--glow-color), 0.5);
}

.page-login__btn-primary, .page-login__btn-secondary {
  display: inline-block;
  padding: 14px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__login-button {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(var(--primary-color), 0.4);
}

.page-login__login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-color), 0.6);
  opacity: 0.9;
}

.page-login__form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.page-login__forgot-password {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9em;
}

.page-login__forgot-password:hover {
  color: var(--glow-color);
  text-decoration: underline;
}

.page-login__register-text {
  color: var(--text-main);
  font-size: 0.9em;
}

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

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

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

.page-login__section-title {
  font-size: 2.5em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-login__section-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Benefits Section */
.page-login__benefits-section {
  background-color: var(--deep-green);
  padding: 60px 0;
}

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

.page-login__benefit-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(var(--glow-color), 0.2);
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__benefit-text {
  font-size: 0.95em;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

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

.page-login__step-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__step-number {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-login__step-text {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.5;
}

.page-login__call-to-action-text {
  font-size: 1.2em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 30px;
}

.page-login__support-button {
  background: none;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.page-login__support-button:hover {
  background-color: var(--glow-color);
  color: var(--deep-green);
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  background-color: var(--deep-green);
  padding: 60px 0;
}

.page-login__troubleshooting-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-login__list-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-login__list-text {
  font-size: 0.95em;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

.page-login__faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-login__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__faq-item[open] {
  border-color: var(--glow-color);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--card-bg);
  color: var(--text-main);
  font-size: 1.1em;
  font-weight: 600;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-login__faq-question:hover {
  background-color: rgba(var(--primary-color), 0.1);
}

.page-login__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent text selection from interfering with toggle */
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color);
  pointer-events: none; /* Prevent toggle from interfering with summary click */
}

.page-login__faq-answer {
  padding: 15px 25px 20px;
  background-color: rgba(var(--primary-color), 0.05);
  color: var(--text-secondary);
  font-size: 0.95em;
  line-height: 1.6;
  border-top: 1px solid var(--divider-color);
}

/* Responsive Styles */
/* All images basic responsive styles */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General containers for mobile */
  .page-login__container,
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__troubleshooting-section,
  .page-login__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  /* Buttons responsive */
  .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-footer {
    flex-direction: column;
    align-items: center;
  }

  .page-login__forgot-password,
  .page-login__register-text {
    width: 100%;
    text-align: center;
  }

  .page-login__support-button {
    width: 100%;
  }

  /* Card layouts for mobile */
  .page-login__benefits-grid,
  .page-login__guide-steps,
  .page-login__troubleshooting-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__benefit-card,
  .page-login__step-card,
  .page-login__list-item {
    padding: 20px;
  }

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

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

  .page-login__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding for mobile */
  }
}