/* 知码 SSO 登录页样式 */
:root {
  --background: #ffffff;
  --foreground: #171717;
  --muted: #737373;
  --border: #e5e5e5;
  --radius: 10px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  line-height: 1.5;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    "Noto Sans", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--background);
  color: var(--foreground);
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #171717;
    --foreground: #fafafa;
    --muted: #a3a3a3;
    --border: #2e2e2e;
  }
}

/* 页面容器：整屏居中 */
.z-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}
.z-brand {
  font-size: 20px;
  font-weight: 600;
}

/* 卡片 */
.z-card {
  width: 100%;
  max-width: 384px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.z-card h2 {
  font-size: 18px;
  font-weight: 600;
}
.z-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

/* 按钮 */
.z-btn {
  width: 100%;
  height: 38px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: var(--foreground);
  color: var(--background);
  transition: opacity 0.15s;
}
.z-btn:hover {
  opacity: 0.85;
}
.z-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.z-btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.z-btn-outline:hover {
  background: var(--border);
  opacity: 1;
}

.z-error {
  font-size: 13px;
  color: #dc2626;
}

/* 回调页加载中 */
.z-callback {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.z-callback p {
  font-size: 14px;
  color: var(--muted);
}
.z-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(128, 128, 128, 0.3);
  border-top-color: rgba(128, 128, 128, 0.9);
  border-radius: 50%;
  animation: z-spin 0.8s linear infinite;
}
@keyframes z-spin {
  to {
    transform: rotate(360deg);
  }
}
