/* ============================================================
   登录 / 注册 / 找回密码 页面样式（靛蓝紫罗兰简约壁纸主题）
   ============================================================ */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-soft: #eceafe;
    --violet: #8b5cf6;
    --grad: linear-gradient(135deg, #5b5ef0 0%, #8b5cf6 100%);
    --ink: #1e2233;
    --muted: #7a8496;
    --paper: #f6f7fc;
    --line: #e9eaf3;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body.auth-page {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--ink);
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    /* 简约壁纸：靛蓝紫罗兰扁平风景矢量插画（薰衣草天空 + 暖阳 + 层叠山丘） */
    background:
        url("../img/bg.svg") no-repeat center center / cover fixed,
        linear-gradient(180deg, #f5f4ff 0%, #f1edfd 55%, #f8f6ff 100%);
}

/* 上下柔和暗角，保证前景卡片层次 */
body.auth-page::after {
    content: "";
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(120% 90% at 50% 0%, transparent 66%, rgba(48,46,100,.06) 100%),
        radial-gradient(120% 90% at 50% 100%, transparent 64%, rgba(48,46,100,.06) 100%);
}

/* ---------------- 顶部标题区 ---------------- */
.hero { padding: 44px 40px 8px; position: relative; z-index: 2; }
.hero-inner {
    max-width: 1120px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 30px;
}
.hero-title {
    font-size: 40px; font-weight: 800; letter-spacing: 1px; line-height: 1.2;
}
.hero-sub {
    margin-top: 12px; font-size: 26px; font-weight: 700; color: var(--primary);
    letter-spacing: 2px;
}

.hero-logo { display: flex; align-items: center; gap: 8px; padding-top: 6px; }
.hero-logo img { max-height: 46px; }
.logo-mark {
    width: 46px; height: 46px; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #7c7ef5 0%, #a855f7 100%);
    color: #fff; font-size: 22px; font-weight: 800;
    box-shadow: 0 8px 22px rgba(124,126,245,.35);
}
.logo-text { font-size: 34px; font-weight: 800; letter-spacing: .5px; }

.hero-compact { padding-bottom: 0; }
.hero-compact .hero-title { font-size: 30px; }
.hero-compact .hero-sub { font-size: 19px; margin-top: 8px; }

/* ---------------- 中部舞台 ---------------- */
.stage {
    position: relative;
    z-index: 2;
    max-width: 1120px; margin: 26px auto 60px; padding: 0 20px;
    min-height: 560px;
}
.stage-simple { min-height: auto; display: flex; justify-content: center; }
.stage-plain { margin-top: 72px; }

/* ---------------- 登录卡片 ---------------- */
.auth-card {
    position: static; width: 420px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    border-radius: 18px; padding: 34px 34px 26px;
    box-shadow: 0 24px 70px rgba(52,46,120,.16), 0 0 0 1px rgba(255,255,255,.7) inset;
    border: 1px solid rgba(255,255,255,.9);
    z-index: 5;
}
.auth-card-wide { width: 440px; }

/* LOGO：登录卡片内居中展示（全页唯一展示位，后台可上传替换） */
.card-logo {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-bottom: 18px; text-align: center;
}
.card-logo img { height: 54px; border-radius: 13px; display: block; }
.card-logo .logo-mark {
    width: 54px; height: 54px; border-radius: 14px; font-size: 27px;
}
.card-logo .logo-text { font-size: 30px; }
.auth-card h2 { font-size: 24px; font-weight: 800; }
.auth-tip { color: var(--muted); font-size: 13px; margin: 8px 0 20px; line-height: 1.6; }

.field { margin-bottom: 16px; position: relative; }
.field label { display: block; font-size: 13px; color: #55607f; margin-bottom: 7px; font-weight: 600; }
.field label small { color: #a5a3be; font-weight: 400; }
.field input[type=text], .field input[type=password], .field input[type=email] {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
    font-size: 14px; background: #fbfbfe; transition: .18s;
}
.field input:focus {
    outline: none; border-color: var(--primary); background: #fff;
    box-shadow: 0 0 0 3px rgba(99,102,241,.13);
}

.link-forgot {
    position: absolute; right: 2px; top: 34px;
    font-size: 13px; color: var(--primary); text-decoration: none;
}
.link-forgot:hover { text-decoration: underline; }

.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-img {
    height: 46px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line);
    background: #f6f7fc;
}

.auth-actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.btn {
    border: none; border-radius: 999px; padding: 12px 34px; font-size: 15px;
    cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
    transition: .18s; font-weight: 600;
}
.btn-primary {
    background: var(--grad); color: #fff; flex: 1;
    box-shadow: 0 8px 22px rgba(111,94,240,.32);
}
.btn-primary:hover {
    filter: brightness(1.05); transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(111,94,240,.40);
}
.btn-primary:active { transform: translateY(0); }
.btn-link { color: var(--primary); font-size: 14px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.btn-link:hover { text-decoration: underline; }

.auth-foot { margin-top: 20px; text-align: center; font-size: 12px; color: #adaaba; }

.alert { padding: 11px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.alert-error { background: #fdecec; color: #c0392b; }
.alert-ok { background: var(--primary-soft); color: #5348c0; }

/* 重置密码步骤条 */
.steps { display: flex; gap: 8px; margin-bottom: 18px; }
.steps .step {
    flex: 1; text-align: center; font-size: 12px; padding: 7px 4px;
    border-radius: 8px; background: #f0f0f7; color: #9a98b2;
}
.steps .step.on { background: var(--grad); color: #fff; font-weight: 700; }
.steps .step.done { background: var(--primary-soft); color: #5348c0; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
    .stage { min-height: auto; }
}
@media (max-width: 760px) {
    .hero { padding: 28px 20px 4px; }
    .hero-title { font-size: 28px; }
    .hero-sub { font-size: 18px; }
    .stage-plain { margin-top: 36px; }
    .auth-card, .auth-card-wide { width: 100%; margin: 10px auto 40px; }
    .hero-inner { flex-direction: column; align-items: center; text-align: center; }
}
