:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #d4dae2;
  --primary: #2563eb;
  --danger: #b91c1c;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC",
    "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
}

.auth-card {
  width: min(390px, 100%);
  padding: 28px 28px 24px;
  background: var(--surface);
  border: 1px solid #e2e6ec;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.auth-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}

.auth-brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.auth-card h1 {
  margin: 0 0 5px;
  font-size: 21px;
  line-height: 1.3;
}

.auth-sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-submit {
  width: 100%;
  height: 42px;
  margin-top: 4px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.auth-submit:hover {
  background: #1d4ed8;
}

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

.auth-error {
  min-height: 18px;
  margin: 0 0 6px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

.auth-hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.auth-hint code {
  padding: 1px 4px;
  border-radius: 3px;
  background: #f1f3f6;
  font-family: Consolas, monospace;
  font-size: 11px;
}
