/* 角色AI · 主题样式
 * 深紫底 + 粉紫渐变光晕 + 玻璃卡片；标题衬线，正文无衬线。
 * 所有颜色走 CSS 变量，换肤只改 :root。
 */

:root {
  --bg: #0a0714;
  --bg-2: #120c22;
  --bg-3: #1a1030;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --fg: #f4f1ff;
  --fg-2: #b9b0d4;
  --fg-3: #7d7396;
  --pink: #ff7ac6;
  --violet: #a78bfa;
  --cyan: #5eead4;
  --gold: #ffd166;
  --danger: #ff6b6b;
  --ok: #4ade80;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 背景光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(167, 139, 250, 0.22), transparent 60%),
    radial-gradient(800px 520px at 88% 4%, rgba(255, 122, 198, 0.16), transparent 62%),
    radial-gradient(700px 700px at 50% 110%, rgba(94, 234, 212, 0.09), transparent 65%);
}

/* 细星点 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 70% 15%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 10% 85%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 60% 90%, rgba(255,255,255,0.3), transparent);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------- 布局 ---------- */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10, 7, 20, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #fff;
  box-shadow: 0 0 22px rgba(167, 139, 250, 0.45);
}
.brand em { font-style: normal; color: var(--fg-3); font-size: 11px; letter-spacing: 0.18em; margin-left: 2px; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--fg-2);
  transition: background .18s, color .18s;
}
.nav-links a:hover { background: var(--card); color: var(--fg); }
.nav-links a.active { color: var(--fg); background: var(--card); }

.nav-cta { display: flex; gap: 8px; align-items: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--fg);
  font-size: 14px;
  transition: transform .16s, background .18s, border-color .18s;
  white-space: nowrap;
}
.btn:hover { background: var(--card-hover); border-color: rgba(255,255,255,0.28); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--violet));
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.3);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--fg-2); }
.btn-ghost:hover { color: var(--fg); background: var(--card); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 首页 Hero ---------- */
.hero {
  padding: 84px 0 56px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  font-size: 12.5px;
  color: var(--fg-2);
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.18;
  letter-spacing: 0.02em;
  margin: 0 0 22px;
  font-weight: 600;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--pink), var(--violet) 45%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--fg-2);
  max-width: 640px;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats .s { text-align: center; }
.hero-stats .n {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--fg);
  letter-spacing: 0.02em;
}
.hero-stats .l { font-size: 12.5px; color: var(--fg-3); margin-top: 4px; letter-spacing: 0.08em; }

/* ---------- 区块标题 ---------- */
.sec { padding: 64px 0; }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.sec-head h2 {
  font-family: var(--serif);
  font-size: 27px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.sec-head p { margin: 0; color: var(--fg-3); font-size: 14px; }
.sec-head .more { font-size: 13.5px; color: var(--violet); }

/* ---------- 角色卡 ---------- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 20px;
}

.role-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  transition: transform .22s cubic-bezier(.2,.8,.3,1), border-color .22s, background .22s;
  display: flex;
  flex-direction: column;
}
.role-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: var(--card-hover);
}
.role-card:hover .role-avatar::after { opacity: 1; }

.role-avatar {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.role-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 7, 20, 0.86));
  opacity: .72;
  transition: opacity .25s;
}
.role-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* 无立绘时的渐变占位 */
.avatar-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 62px;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.04em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.avatar-ph::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.22), transparent 55%);
}

.role-body { padding: 15px 17px 17px; position: relative; z-index: 2; margin-top: -46px; }
.role-name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.03em;
  margin: 0 0 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.role-name .en { font-family: var(--sans); font-size: 11px; color: var(--fg-3); letter-spacing: 0.1em; }
.role-tagline {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.6;
  margin: 0 0 12px;
  min-height: 41px;
}
.role-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg-2);
  background: rgba(255,255,255,0.03);
  letter-spacing: 0.03em;
}
.tag-cat { color: var(--violet); border-color: rgba(167,139,250,0.35); background: rgba(167,139,250,0.1); }

/* ---------- 筛选条 ---------- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  align-items: center;
}
.chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg-2);
  font-size: 13.5px;
  transition: all .18s;
}
.chip:hover { border-color: var(--line-strong); color: var(--fg); }
.chip.on {
  background: linear-gradient(135deg, rgba(255,122,198,0.22), rgba(167,139,250,0.22));
  border-color: rgba(167,139,250,0.5);
  color: var(--fg);
}
.search-box {
  margin-left: auto;
  position: relative;
}
.search-box input {
  width: 230px;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--fg);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color .18s, width .22s;
}
.search-box input:focus { border-color: rgba(167,139,250,0.6); width: 270px; }
.search-box input::placeholder { color: var(--fg-3); }

/* ---------- 角色详情 ---------- */
.role-detail {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  padding: 48px 0 72px;
  align-items: start;
}
.detail-portrait {
  position: sticky;
  top: 88px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.detail-portrait .avatar-ph { font-size: 96px; }

.detail-main h1 {
  font-family: var(--serif);
  font-size: 40px;
  margin: 0 0 6px;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.detail-en { color: var(--fg-3); font-size: 13px; letter-spacing: 0.16em; margin-bottom: 16px; }
.detail-tagline { font-size: 16px; color: var(--fg-2); line-height: 1.8; margin: 0 0 22px; }

.meta-row { display: flex; gap: 28px; margin: 0 0 26px; flex-wrap: wrap; }
.meta-row .m { }
.meta-row .k { font-size: 11px; color: var(--fg-3); letter-spacing: 0.14em; margin-bottom: 5px; }
.meta-row .v { font-size: 15px; color: var(--fg); font-family: var(--serif); }

.detail-actions { display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }

.block { margin-bottom: 30px; }
.block h3 {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--fg-2);
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 2px solid var(--violet);
  line-height: 1;
}
.block p { margin: 0; font-size: 14.5px; line-height: 1.95; color: var(--fg-2); }

.greeting-box {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--fg-2);
  white-space: pre-wrap;
}

.example-list { display: flex; flex-direction: column; gap: 10px; }
.ex-bubble {
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.ex-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(255,122,198,0.2), rgba(167,139,250,0.2));
  border: 1px solid rgba(167,139,250,0.28);
  border-bottom-right-radius: 4px;
}
.ex-bubble.assistant {
  align-self: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--fg-2);
}

/* ---------- 聊天 ---------- */
.chat-shell {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px);
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.chat-head .mini-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 19px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
}
.chat-head .info { flex: 1; min-width: 0; }
.chat-head .info h2 { font-family: var(--serif); font-size: 17px; margin: 0 0 2px; letter-spacing: 0.04em; }
.chat-head .info .st { font-size: 12px; color: var(--fg-3); display: flex; align-items: center; gap: 6px; }
.chat-head .info .st .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 24px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}
.chat-log::-webkit-scrollbar { width: 6px; }
.chat-log::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

.msg { display: flex; gap: 11px; max-width: 88%; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .av {
  width: 34px; height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 14px;
  border: 1px solid var(--line);
}
.msg .bubble {
  padding: 13px 17px;
  border-radius: 15px;
  font-size: 14.5px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg.ai .bubble {
  background: var(--card);
  border: 1px solid var(--line);
  border-top-left-radius: 5px;
  color: var(--fg);
}
.msg.me .bubble {
  background: linear-gradient(135deg, rgba(255,122,198,0.24), rgba(167,139,250,0.24));
  border: 1px solid rgba(167,139,250,0.3);
  border-top-right-radius: 5px;
}
.msg .bubble.thinking { color: var(--fg-3); font-style: italic; }

.chat-input-wrap {
  flex-shrink: 0;
  padding: 14px 0 22px;
  border-top: 1px solid var(--line);
}
.chat-input {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  transition: border-color .18s;
}
.chat-input:focus-within { border-color: rgba(167,139,250,0.55); }
.chat-input textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--fg);
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.7;
  max-height: 150px;
  padding: 6px 4px;
}
.chat-input textarea::placeholder { color: var(--fg-3); }
.chat-hint { text-align: center; font-size: 11.5px; color: var(--fg-3); margin-top: 9px; letter-spacing: 0.04em; }

/* ---------- 卡片 / 通用面板 ---------- */
.panel {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 28px;
}

/* ---------- 价格表 ---------- */
.price-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.price-table th {
  text-align: left;
  padding: 11px 14px;
  color: var(--fg-3);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.price-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-2);
}
.price-table tr:hover td { background: rgba(255,255,255,0.025); color: var(--fg); }
.price-table .mname { color: var(--fg); font-family: var(--serif); font-size: 14px; }
.price-table .num { font-variant-numeric: tabular-nums; }
.price-table .grp { font-size: 11.5px; color: var(--fg-3); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--fg-3); margin-bottom: 7px; letter-spacing: 0.06em; }
.field input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  color: var(--fg);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color .18s;
}
.field input:focus { border-color: rgba(167,139,250,0.6); }
.form-note { font-size: 12.5px; color: var(--fg-3); line-height: 1.7; margin-top: 14px; }
.err { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 18px; }

/* ---------- 提示条 ---------- */
.notice {
  border: 1px solid rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.07);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #ffe6a8;
  margin-bottom: 22px;
}
.notice strong { color: var(--gold); }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 44px 0 40px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px;
}
.footer h4 {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--fg-2);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer a, .footer p { display: block; font-size: 13px; color: var(--fg-3); line-height: 2.1; margin: 0; }
.footer a:hover { color: var(--fg); }
.footer-brand p { line-height: 1.9; max-width: 300px; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 32px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--fg-3);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- 空状态 / 加载 ---------- */
.empty { text-align: center; padding: 70px 20px; color: var(--fg-3); font-size: 14px; }
.spinner {
  width: 22px; height: 22px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in { animation: fadeIn .45s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .role-detail { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 48px; }
  .detail-portrait { position: static; max-width: 320px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .wrap, .nav-inner, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 52px 0 36px; }
  .hero-stats { gap: 28px; }
  .role-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 13px; }
  .role-avatar { aspect-ratio: 1 / 1.2; }
  .role-body { padding: 12px 12px 14px; margin-top: -38px; }
  .role-name { font-size: 16px; }
  .role-tagline { font-size: 12px; min-height: 34px; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input, .search-box input:focus { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .chat-shell { height: calc(100vh - 56px); padding: 0 12px; }
  .detail-main h1 { font-size: 30px; }
}

/* ---------- 登录 / 注册 ---------- */
.auth-wrap { min-height: calc(100vh - 56px); display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.auth-card {
  width: 100%; max-width: 400px; padding: 34px 30px 28px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; backdrop-filter: blur(14px);
}
.auth-title { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 6px; letter-spacing: .02em; }
.auth-sub { color: var(--fg-2); font-size: 13.5px; margin: 0 0 22px; }

.auth-tabs { display: flex; gap: 6px; margin-bottom: 20px; padding: 4px; background: rgba(255,255,255,.04); border-radius: 11px; }
.auth-tab {
  flex: 1; padding: 8px 0; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--fg-2); font-size: 14px; font-family: inherit;
  transition: background .18s, color .18s;
}
.auth-tab.on { background: rgba(167,139,250,.16); color: var(--fg); }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--fg-2); }
.auth-form input {
  padding: 11px 13px; border-radius: 10px; font-size: 14.5px;
  background: rgba(0,0,0,.28); border: 1px solid var(--line); color: var(--fg);
  font-family: inherit; outline: none; transition: border-color .18s;
}
.auth-form input:focus { border-color: rgba(167,139,250,.55); }
.auth-err { color: #ff9db0; font-size: 13px; line-height: 1.5; }
.auth-hint { margin: 2px 0 0; font-size: 12.5px; color: var(--fg-2); text-align: center; }
.auth-alt { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-2); display: flex; gap: 6px; justify-content: center; }
.auth-alt a { color: var(--violet); text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.auth-form .btn-lg { width: 100%; padding: 12px 0; font-size: 15px; }
