/* 登录页 — 按设计稿 */

html, body.lt-login-page {
  height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #2b2b2b;
  overflow: hidden;
}

body.lt-login-page {
  position: relative;
}

#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #2b2b2b;
}

.lt-login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
  box-sizing: border-box;
}

.lt-login-card {
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 36px 40px 32px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

.lt-login-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.lt-login-logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  line-height: 0;
}

.lt-login-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.lt-form-item {
  margin-bottom: 14px;
}

.lt-field {
  display: flex;
  align-items: center;
  height: 46px;
  margin-bottom: 0;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lt-field:focus-within {
  border-color: #5b6cff;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.lt-form-item.is-error .lt-field,
.lt-form-item.is-error .lt-captcha-img-btn {
  border-color: #f56c6c !important;
  background: #fff1f0 !important;
  box-shadow: 0 0 0 3px rgba(245, 108, 108, 0.18), 0 0 10px rgba(245, 108, 108, 0.22);
}

.lt-form-item.is-error .lt-field:focus-within {
  border-color: #f56c6c !important;
  box-shadow: 0 0 0 3px rgba(245, 108, 108, 0.22), 0 0 12px rgba(245, 108, 108, 0.28);
}

.lt-form-item.is-error .lt-field-icon,
.lt-form-item.is-error .lt-field-toggle {
  color: #f56c6c;
}

.lt-form-item.is-error .lt-field-sep {
  background: #f5c2c0;
}

.lt-error {
  display: none;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 2px 0;
  color: #f56c6c;
  font-size: 13px;
  line-height: 1.45;
}

.lt-error.is-visible {
  display: flex;
}

.lt-error-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: #f56c6c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.lt-error-text {
  flex: 1;
}

.lt-error-form {
  margin: 0 0 10px;
}

.lt-field-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  color: #9ca3af;
  flex-shrink: 0;
}

.lt-field-sep {
  width: 1px;
  height: 22px;
  background: #e5e7eb;
  flex-shrink: 0;
}

.lt-field-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.lt-field-toggle:hover {
  color: #64748b;
}

.lt-input {
  flex: 1;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 14px;
  font-size: 14px;
  color: #333;
}

.lt-input::placeholder {
  color: #c0c4cc;
}

.lt-captcha-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 0;
}

.lt-captcha-field {
  flex: 1;
  margin-bottom: 0;
  min-width: 0;
}

.lt-captcha-img-btn {
  flex-shrink: 0;
  width: 120px;
  height: 46px;
  padding: 0;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #f8fafc;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lt-captcha-img-btn:hover {
  border-color: #5b6cff;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.lt-captcha-img-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lt-login-btn {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #4f5fff 0%, #5b6cff 55%, #8b97ff 100%);
  box-shadow: 0 8px 18px rgba(20, 184, 166, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.lt-login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.lt-login-btn:hover {
  filter: brightness(1.03);
  box-shadow: 0 10px 22px rgba(20, 184, 166, 0.42);
  transform: translateY(-1px);
}

.lt-login-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.lt-login-copy {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 480px) {
  .lt-login-card {
    padding: 28px 22px 24px;
  }

  .lt-login-title {
    font-size: 18px;
  }
}
