/* Base styles for the login page */
.page-login {
  background-color: #08160F; /* Background: #08160F (dark) */
  color: #F2FFF6; /* Text Main: #F2FFF6 (light) */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 50px;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, as body handles header offset */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  width: 100%;
  height: auto;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover; /* Desktop default */
  display: block;
}

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

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

.page-login__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-login__section-subtitle {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
}

/* Form Section */
.page-login__form-section {
  padding: 50px 0;
  margin-bottom: 40px;
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-login__form {
  max-width: 400px;
  margin: 0 auto;
  padding: 30px;
  background-color: #08160F; /* Background */
  border-radius: 8px;
  border: 1px solid #2E7A4E; /* Border */
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #F2FFF6; /* Text Main */
  font-weight: 600;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 5px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  font-size: 1rem;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #A7D9B8; /* Text Secondary */
  opacity: 0.7;
}

.page-login__form-input:focus {
  outline: none;
  border-color: #57E38D; /* Glow */
  box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

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

.page-login__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  flex-grow: 1;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.6);
}

.page-login__forgot-password {
  color: #A7D9B8; /* Text Secondary */
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #57E38D; /* Glow */
}

.page-login__no-account {
  text-align: center;
  margin-top: 25px;
  color: #A7D9B8; /* Text Secondary */
}

.page-login__register-link {
  color: #F2C14E; /* Gold */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #57E38D; /* Glow */
}

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

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

.page-login__benefit-card {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  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.4);
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__card-title {
  font-size: 1.4rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-login__card-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

/* Guide Section */
.page-login__guide-section {
  padding: 60px 0;
  margin-bottom: 40px;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
}

.page-login__guide-steps {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  flex-wrap: wrap;
}

.page-login__step-item {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-login__step-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-login__step-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

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

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

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* Card B G */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

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

details.page-login__faq-item summary.page-login__faq-question:hover {
  background: #0A4B2C; /* Deep Green */
}

.page-login__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E; /* Gold */
}

.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #57E38D; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background: #08160F; /* Background */
  border-radius: 0 0 5px 5px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
}

/* CTA Section */
.page-login__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
  margin-top: 50px;
  border-radius: 10px;
}

.page-login__register-cta-button {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 40px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__register-cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 20px rgba(87, 227, 141, 0.8);
  transform: translateY(-3px);
}

/* General image styling for content area */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Styles --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-login__hero-content {
    max-width: 700px;
  }

  .page-login__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-login__description {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  }

  .page-login__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-login__section-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
  }

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

  .page-login__step-item {
    min-width: 250px;
    max-width: 320px;
  }

  .page-login__faq-qtext {
    font-size: 1rem;
  }

  .page-login__faq-answer {
    font-size: 0.95rem;
  }
}

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

  /* HERO 主图区域 */
  .page-login__hero-section {
    padding-top: 10px;
    margin-bottom: 30px;
  }

  .page-login__hero-image-wrapper {
    max-height: 300px;
  }

  .page-login__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__hero-content {
    padding: 0 15px;
  }

  .page-login__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-login__description {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    margin-bottom: 20px;
  }

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

  .page-login__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 10px;
  }

  .page-login__section-subtitle {
    font-size: clamp(0.8rem, 3.5vw, 0.9rem);
    margin-bottom: 30px;
  }

  /* Form Section */
  .page-login__form {
    padding: 20px;
  }

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

  .page-login__btn-primary,
  .page-login__register-cta-button,
  .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: 12px 15px;
  }

  /* Benefits Grid */
  .page-login__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__benefit-card {
    padding: 20px;
  }

  .page-login__benefit-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Guide Steps */
  .page-login__guide-steps {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .page-login__step-item {
    max-width: 100%;
    width: 100%;
    padding: 25px 15px;
  }

  /* FAQ Section */
  details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px;
  }

  .page-login__faq-qtext {
    font-size: 1rem;
  }

  .page-login__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 15px 15px;
  }

  /* General images in content area */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure no horizontal scroll */
  body {
    overflow-x: hidden;
  }
}

/* Additional rules for content area images to meet 200px minimum */
.page-login__benefit-icon {
  min-width: 200px;
  min-height: 200px;
}

.page-login__guide-section img {
  min-width: 200px;
  min-height: 200px;
}