/* ==========================================================================
   认证中心 · 登录 / 注册 / 找回密码 共用样式
   原来这 3 个页面各自复制了一份几乎相同的 <style>，
   加上 Google Fonts 外链（国内经常加载失败，首屏会白一下）。
   现在合并成一份，并改用系统字体栈。
   ========================================================================== */

:root {
    --brand: #7159c2;
    --brand-light: #9b8aff;
    --ink: #1e1433;
    --ink-soft: #4a3a7a;
    --muted: #6b5b95;
    --line: #e3dbff;
    --danger: #e53e3e;
    --card: rgba(255, 255, 255, 0.6);
    --radius-lg: 32px;
    --radius-pill: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--ink);
    background: linear-gradient(145deg, #f7f3ff 0%, #eef4ff 100%);
}

.card {
    width: 100%;
    max-width: 420px;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    box-shadow: 0 24px 50px rgba(95, 75, 139, 0.08);
}

h1 {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
    margin-bottom: 24px;
}

.prompt {
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--danger);
}

.prompt a { color: var(--danger); text-decoration: none; }
.prompt a:hover { text-decoration: underline; }

.field {
    width: 100%;
    padding: 15px 18px;
    font-size: 16px;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 48px;
    outline: none;
    margin-bottom: 14px;
    transition: border-color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.field:focus { border-color: var(--brand-light); }
.field::placeholder { color: #a89fc4; }

.row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.row .field { margin-bottom: 0; }

.btn {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    background: linear-gradient(125deg, var(--brand-light), var(--brand));
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 8px 20px rgba(113, 89, 194, 0.22);
}

.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(113, 89, 194, 0.3); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }

.btn-ghost {
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #d2c2ff;
    box-shadow: none;
    flex: 1;
    white-space: nowrap;
    padding: 15px 16px;
    width: auto;
}
.btn-ghost:hover:not(:disabled) { transform: none; box-shadow: none; background: #fff; }

.btn-link {
    display: inline;
    width: auto;
    padding: 0;
    color: var(--brand);
    background: none;
    border: none;
    box-shadow: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}
.btn-link:hover:not(:disabled) { transform: none; box-shadow: none; text-decoration: underline; }

.link-row {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: var(--ink-soft);
}

.link-row a { color: var(--brand); text-decoration: none; font-weight: 500; }
.link-row a:hover { text-decoration: underline; }

.error {
    min-height: 20px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--danger);
    text-align: center;
}

.hidden { display: none !important; }

.step-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 16px;
}

@media (max-width: 380px) {
    .card { padding: 26px 18px; border-radius: 26px; }
    h1 { font-size: 22px; }
}

/* ---------------------------------------------------------------------------
   v3.1 新增：验证码/密码 切换、站点提示、图形验证码、设置密码步骤
   --------------------------------------------------------------------------- */

.client-bar {
    margin: -6px 0 18px;
    padding: 10px 14px;
    font-size: 13px;
    color: #4a3a7a;
    background: rgba(155, 138, 255, 0.12);
    border-radius: 14px;
    text-align: center;
}
.client-bar a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}
.client-bar a:hover { border-bottom-style: solid; }

.tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    margin-bottom: 16px;
    background: rgba(155, 138, 255, 0.1);
    border-radius: 40px;
}

.tab {
    flex: 1;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    background: none;
    border: none;
    border-radius: 36px;
    cursor: pointer;
}
.tab.active {
    color: #fff;
    background: linear-gradient(125deg, var(--brand-light), var(--brand));
    box-shadow: 0 6px 14px rgba(113, 89, 194, 0.25);
}

.hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: #8a7ba8;
    text-align: center;
    line-height: 1.6;
}

.captcha-box {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}
.captcha-box img {
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    cursor: pointer;
    background: #fff;
}
.captcha-box .field { margin-bottom: 0; flex: 1; }

.btn-block-link {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
}
/* ---------------------------------------------------------------------------
   新用户出口：「还没有账号？用手机号快速注册」
   --------------------------------------------------------------------------- */
.signup-box {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed rgba(155, 138, 255, 0.4);
    text-align: center;
}
.signup-text {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--muted);
}
.signup-box .btn { width: 100%; }

/* 错误提示里的第二行引导 */
.err-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #8a7ba8;
    font-weight: 400;
}