body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #f4f6fb 100%);
  color: #1f2937;
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.04);
  padding: 36px 32px 28px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.auth-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.auth-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
}

.auth-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.auth-subtitle {
  margin: 10px 0 28px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.auth-form input {
  height: 46px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: #4D6BFE;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(77, 107, 254, 0.12);
}

.auth-two-factor-row {
  padding: 14px 16px;
  border: 1px solid #dbe4ff;
  border-radius: 14px;
  background: #f8faff;
}

.auth-two-factor-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.auth-two-factor-desc {
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 10px;
}

.auth-btn {
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #4D6BFE 0%, #6C5CE7 100%);
  color: #fff;
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
  letter-spacing: 2px;
}

.auth-btn:hover {
  opacity: 0.92;
  box-shadow: 0 4px 14px rgba(77, 107, 254, 0.35);
  transform: translateY(-1px);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.auth-link {
  color: #64748b;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
  padding: 4px 2px;
}

.auth-link:hover {
  color: #4D6BFE;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-link-divider {
  color: #cbd5e1;
  font-size: 12px;
  user-select: none;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.status {
  margin-top: 16px;
  min-height: 20px;
  font-size: 13px;
  text-align: center;
}

.status.error {
  color: #dc2626;
}

.status.success {
  color: #059669;
}

.status.loading {
  color: #475569;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px 24px;
    border-radius: 16px;
  }
  .auth-title {
    font-size: 24px;
  }
}
