/* 登录 / 注册 / 后台 — 简洁浅色（仅认证页，勿与首页混用） */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.auth-page {
  --auth-brand: #e11d48;
  --auth-brand-hover: #be123c;
  --auth-brand-soft: #fff1f2;
  --auth-ring: rgba(225, 29, 72, 0.2);
  --auth-text: #18181b;
  --auth-muted: #71717a;
  --auth-line: #e4e4e7;
  --auth-bg: #fafafa;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--auth-text);
  background: var(--auth-bg);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

.auth-page--admin {
  --auth-brand: #4f46e5;
  --auth-brand-hover: #4338ca;
  --auth-brand-soft: #eef2ff;
  --auth-ring: rgba(79, 70, 229, 0.22);
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(225, 29, 72, 0.07), transparent 55%),
    var(--auth-bg);
  pointer-events: none;
}

.auth-page--admin .auth-bg {
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(79, 70, 229, 0.08), transparent 55%),
    var(--auth-bg);
}

.auth-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 48px;
}

.auth-top {
  width: 100%;
  max-width: 400px;
  margin-bottom: 28px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--auth-text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.auth-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--auth-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.auth-shell {
  width: 100%;
  max-width: 400px;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--auth-line);
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.04);
}

.auth-card.is-error {
  animation: authShake 0.45s ease;
}

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.auth-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
}

.auth-tabs a {
  flex: none;
  padding: 0 0 14px;
  margin-bottom: -1px;
  font-size: 14px;
  font-weight: 600;
  color: var(--auth-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.auth-tabs a.is-active {
  color: var(--auth-brand);
  border-bottom-color: var(--auth-brand);
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--auth-muted);
  margin-bottom: 24px;
  line-height: 1.55;
}

.auth-admin-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--auth-brand);
  background: var(--auth-brand-soft);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.auth-alert {
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.auth-field { margin-bottom: 18px; }

.auth-field label,
.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-text);
  margin-bottom: 6px;
}

.auth-input-wrap { position: relative; }

.auth-input-wrap > i.mdi {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #a1a1aa;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--auth-text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-captcha-row .auth-input { padding-left: 14px; }

.auth-input::placeholder { color: #a1a1aa; }

.auth-input:hover { border-color: #d4d4d8; }

.auth-input:focus {
  border-color: var(--auth-brand);
  box-shadow: 0 0 0 3px var(--auth-ring);
}

.auth-invite-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.auth-input-wrap--flex {
  flex: 1;
  min-width: 0;
}

.auth-invite-get {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0 16px;
  height: 46px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  color: var(--auth-brand);
  background: var(--auth-brand-soft);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.auth-invite-get:hover {
  background: #ffe4e6;
  color: var(--auth-brand-hover);
}

.auth-invite-get-panel {
  margin-top: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--auth-text);
  background: var(--auth-brand-soft);
  border: 1px solid #fecdd3;
  border-radius: 10px;
}

.auth-invite-get-panel[hidden] { display: none; }

.auth-invite-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--auth-brand);
  line-height: 1.5;
}

.auth-invite-hint--muted { color: var(--auth-muted); }

.auth-captcha { margin-bottom: 20px; }

.auth-captcha-row {
  display: flex;
  gap: 10px;
}

.auth-captcha-row input { flex: 1; min-width: 0; }

.auth-captcha-img {
  width: 112px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--auth-line);
  cursor: pointer;
  object-fit: cover;
}

.auth-captcha-hint {
  font-size: 12px;
  color: var(--auth-muted);
  margin-top: 6px;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--auth-brand);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.auth-submit:hover:not(:disabled) {
  background: var(--auth-brand-hover);
}

.auth-submit:active:not(:disabled) { transform: scale(0.98); }

.auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--auth-line);
  text-align: center;
  font-size: 14px;
  color: var(--auth-muted);
}

.auth-foot a {
  color: var(--auth-brand);
  font-weight: 600;
  text-decoration: none;
}

.auth-foot-note {
  display: block;
  margin-top: 8px;
  font-size: 12px;
}

.auth-back-home {
  margin-top: 28px;
  text-align: center;
}

.auth-back-home a {
  font-size: 13px;
  color: var(--auth-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.auth-back-home a:hover { color: var(--auth-text); }

@media (max-width: 480px) {
  .auth-card { padding: 28px 22px 24px; }
  .auth-invite-row { flex-direction: column; }
  .auth-invite-get { width: 100%; }
}
