/* style/login.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-login {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.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 as body handles header offset */
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__hero-content {
  text-align: center;
  max-width: 800px;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-login__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-login__cta-buttons--centered {
  margin-top: 30px;
}

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-login__btn-primary,
.page-login__submit-button {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main for contrast */
  border: none;
}

.page-login__btn-primary:hover,
.page-login__submit-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-login__btn-secondary:hover {
  background-color: #2E7A4E; /* Border */
  color: #F2FFF6;
  transform: translateY(-2px);
}

/* Section common styles */
.page-login__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  color: #F2FFF6; /* Text Main */
}

.page-login__section-description {
  font-size: 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #A7D9B8; /* Text Secondary */
}

.page-login__card-bg {
  background-color: #11271B; /* Card BG */
  padding: 60px 20px;
}

.page-login__deep-green-bg {
  background-color: #0A4B2C; /* Deep Green */
  padding: 60px 20px;
}

/* Login Form Section */
.page-login__form-section {
  padding: 60px 20px;
  text-align: center;
}

.page-login__login-form {
  max-width: 450px;
  margin: 0 auto;
  background-color: #08160F; /* Background */
  padding: 40px;
  border-radius: 12px;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-login__form-group {
  margin-bottom: 25px;
  text-align: left;
}

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #A7D9B8; /* Text Secondary */
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 6px;
  background-color: #08160F; /* Background */
  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 {
  border-color: #57E38D; /* Glow */
  outline: none;
  box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

.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;
  accent-color: #11A84E;
}

.page-login__checkbox-label {
  color: #A7D9B8; /* Text Secondary */
}

.page-login__forgot-password-link {
  color: #57E38D; /* Glow */
  text-decoration: none;
}

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

.page-login__register-text {
  margin-top: 30px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

.page-login__register-link {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: 600;
}

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

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

.page-login__feature-card,
.page-login__troubleshooting-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-login__feature-card:hover,
.page-login__troubleshooting-item:hover {
  transform: translateY(-5px);
}

.page-login__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-login__feature-title,
.page-login__troubleshooting-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2FFF6; /* Text Main */
}

.page-login__feature-text,
.page-login__troubleshooting-text {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
}

/* How-To-Login Section */
.page-login__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  max-width: 800px;
  margin: 0 auto;
}

.page-login__step-item {
  background-color: #08160F; /* Background */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  position: relative;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}