/* 登录/注册页 —— 居中卡片，复用 common.css 设计 token */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.auth-header .muted {
  margin-top: 8px;
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.field span {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.field input {
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .15s;
}

.field input:focus {
  border-color: var(--text-dim);
}

.auth-submit {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  font-size: 15px;
  text-align: center;
  justify-content: center;
}

.auth-error {
  background: rgba(255,136,112,.12);
  color: var(--warn);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-dim);
}

.auth-switch a {
  color: var(--text);
  font-weight: 600;
}
