/* ===========================================================
   启梦 Frp · 认证页样式（login / register / findpass）
   自包含，不依赖 Bootstrap；与新落地页同风格
   =========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --brand-1: #2563eb;
  --brand-2: #4f46e5;
  --brand-3: #7c3aed;
  --grad: linear-gradient(135deg, #2563eb, #7c3aed);
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
}
html, body { height: 100%; }
body {
  font-family: "PingFang SC","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(124,58,237,.22), transparent 60%),
    radial-gradient(800px 480px at 0% 110%, rgba(37,99,235,.20), transparent 55%),
    linear-gradient(160deg, #1e3c72, #2a5298 55%, #4338ca);
  background-attachment: fixed;
}

/* 顶部小品牌 */
.brand-top {
  position: fixed; top: 26px; left: 30px;
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 18px; letter-spacing: .5px;
  text-decoration: none; z-index: 5;
}
.brand-top .mark {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.18);
  display: grid; place-items: center; font-size: 16px; box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.brand-top:hover { color: #fff; opacity: .92; }

/* 卡片 */
.auth-card {
  width: 100%; max-width: 430px;
  background: #fff; border-radius: 22px;
  padding: 38px 36px 30px;
  box-shadow: 0 30px 70px rgba(15,23,42,.35);
  animation: rise .5s cubic-bezier(.2,.8,.2,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.auth-card.wide { max-width: 480px; }

.auth-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.auth-card .desc { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 24px; }
.auth-card .divider { height: 1px; background: var(--line); margin: 0 -36px 24px; }

/* 字段 */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 6px; }
.field label .hint { font-weight: 400; color: var(--muted); }
.field label .hint a { color: var(--brand-2); }
.field input {
  width: 100%; padding: 12px 14px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 11px; background: #f8fafc;
  transition: all .18s; font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 3px rgba(79,70,229,.14); }

/* 按钮 */
.btn-primary {
  width: 100%; padding: 13px; font-size: 16px; font-weight: 700;
  color: #fff; background: var(--grad); border: none; border-radius: 12px;
  cursor: pointer; transition: all .18s; box-shadow: 0 8px 20px rgba(79,70,229,.30);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(79,70,229,.40); filter: brightness(1.05); }

.links { text-align: center; margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.links a { color: var(--brand-2); font-weight: 600; }
.links a + a { margin-left: 6px; }

/* 提示行 */
.note { text-align: center; color: var(--ink-soft); font-size: 14px; margin: 4px 0 18px; }
.note b { color: var(--ink); }

/* alerts（PHP 动态输出 alert-success/danger） */
.alert { border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-size: 14px; font-weight: 500; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert .close { float: right; background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer; opacity: .6; }
.alert .close:hover { opacity: 1; }

/* 备案/版权 */
.copyright {
  position: fixed; bottom: 18px; width: 100%; left: 0; text-align: center;
  color: rgba(255,255,255,.8); font-size: 13px;
}
.copyright a { color: rgba(255,255,255,.8); text-decoration: none; }
.copyright a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .auth-card { padding: 30px 22px 24px; }
  .auth-card .divider { margin: 0 -22px 20px; }
  .brand-top { top: 18px; left: 18px; font-size: 16px; }
}
