


body.auth-body {
  background: var(--bg-white);
}


.auth-topbar {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.auth-back {
  display: flex;
  align-items: center;
  color: var(--text-dark);
  font-size: 20px;
  text-decoration: none;
}


.auth-page {
  padding: 36px 24px 40px;
}


.auth-hero {
  margin-bottom: 36px;
}

.auth-hero-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.45;
  margin: 0 0 6px;
}

.auth-hero-sub {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}


.auth-field-wrap {
  position: relative;
  margin-bottom: 14px;
}

.auth-input {
  display: block;
  width: 100%;
  height: 52px;
  border: 1px solid var(--border-color-dark);
  border-radius: var(--border-radius-sm);
  padding: 0 16px;
  font-size: 16px;
  font-family: var(--font-ui);
  color: var(--text-dark);
  background: var(--bg-white);
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease;
}

.auth-input:focus {
  border-color: var(--primary-color);
}

.auth-input::placeholder {
  color: var(--text-light);
}


input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--bg-white) inset !important;
  -webkit-text-fill-color: var(--text-dark) !important;
  transition: background-color 5000s ease-in-out 0s;
}


.auth-field-password .auth-input {
  padding-right: 48px;
}

.auth-eye-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  color: var(--text-light);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
}


.auth-forgot-row {
  text-align: right;
  margin-top: -6px;
  margin-bottom: 20px;
}

.auth-forgot {
  font-size: 13px;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-forgot:hover {
  color: var(--primary-dark);
}


.auth-captcha-wrap {
  display: flex;
  gap: 10px;
}

.auth-captcha-wrap .auth-input {
  flex: 1;
}

.auth-send-code-btn {
  height: 52px;
  padding: 0 14px;
  min-width: 100px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-color-dark);
  border-radius: var(--border-radius-sm);
  color: var(--text-muted);
  background: var(--bg-light);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.auth-send-code-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.auth-send-code-btn:disabled {
  color: var(--text-light);
  cursor: not-allowed;
}


.auth-agreement-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.auth-check {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  border: 1px solid var(--border-color-dark);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  accent-color: var(--primary-color);
}

.auth-agreement-row a {
  color: var(--primary-color);
  text-decoration: none;
}


.auth-btn-primary {
  display: block;
  width: 100%;
  height: 52px;
  background: var(--primary-color);
  color: var(--bg-white);
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
  margin-bottom: 8px;
}

.auth-btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

.auth-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-btn-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
}


.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 24px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-divider span {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
}



.auth-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-wechat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;              
  min-width: 0;             
  gap: 6px;
  padding: 12px 10px;
  border: 1px solid var(--border-color-dark);
  border-radius: var(--border-radius-sm);
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.auth-wechat-btn:hover {
  border-color: #07C160;
  color: #07C160;
}

.auth-wechat-icon {
  font-size: 20px;
  color: #07C160;
  flex-shrink: 0;
}

.auth-wechat-btn span {
  white-space: nowrap;
}


.auth-social-secondary {
  margin-top: 10px;
}


.auth-wechat-btn-plain {
  color: var(--text-muted, #666);
  font-weight: 400;
}

.auth-wechat-btn:disabled {
  opacity: 0.6;
  cursor: default;
}


.auth-footer-links {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.auth-footer-links a:hover {
  color: var(--primary-dark);
}


@media (max-width: 375px) {
  .auth-page {
    padding: 28px 20px 40px;
  }

  .auth-hero-title {
    font-size: 22px;
  }

  .auth-send-code-btn {
    min-width: 88px;
    padding: 0 10px;
    font-size: 13px;
  }
}
