/* ============================================================
 * PXE 认证页面样式（登录 / 注册 / 忘记密码 / 修改密码 / 个人中心）
 * 独立于 bootstrap，避免与后台表格样式互相污染
 * ============================================================ */
:root {
    --pa-primary: #2f6bfc;
    --pa-primary-d: #1f55df;
    --pa-primary-l: #5b8dff;
    --pa-text: #1f2a44;
    --pa-muted: #6b7a94;
    --pa-line: #dfe6f1;
    --pa-bg: #f2f6fc;
    --pa-err: #e5484d;
    --pa-err-bg: #fff2f2;
    --pa-ok: #0f9d67;
    --pa-ok-bg: #ecfbf4;
    --pa-radius: 12px;
}

.pa-page {
    margin: 0;
    min-height: 100vh;
    background: var(--pa-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--pa-text);
    -webkit-font-smoothing: antialiased;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    box-sizing: border-box;
}

/* 背景光斑 */
.pa-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.pa-bg i {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
}
.pa-bg i:nth-child(1) {
    width: 460px; height: 460px; top: -160px; left: -120px;
    background: radial-gradient(circle, #cfe0ff 0%, rgba(207,224,255,0) 70%);
}
.pa-bg i:nth-child(2) {
    width: 520px; height: 520px; right: -180px; bottom: -200px;
    background: radial-gradient(circle, #ffe3c8 0%, rgba(255,227,200,0) 70%);
}
.pa-bg i:nth-child(3) {
    width: 320px; height: 320px; right: 22%; top: -120px;
    background: radial-gradient(circle, #d9f0ff 0%, rgba(217,240,255,0) 70%);
}

/* ---------- 外壳：左品牌 + 右表单 ---------- */
.pa-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 40% 60%;
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(23, 43, 77, .13), 0 2px 6px rgba(23, 43, 77, .04);
}

.pa-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px 32px;
    color: #fff;
    background: linear-gradient(155deg, #2b62e8 0%, #3a78f5 46%, #5fa2ff 100%);
    overflow: hidden;
}
.pa-aside::after {
    content: "";
    position: absolute;
    width: 260px; height: 260px;
    right: -90px; bottom: -110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}
.pa-aside::before {
    content: "";
    position: absolute;
    width: 150px; height: 150px;
    left: -60px; top: 32%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.pa-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    position: relative;
    z-index: 1;
}
.pa-brand:hover, .pa-brand:focus { color: #fff; text-decoration: none; }
.pa-logo {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .35);
    font: 700 19px/38px "Helvetica Neue", Arial, sans-serif;
    text-align: center;
}
.pa-brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.pa-brand-txt b { font-size: 14px; font-weight: 600; letter-spacing: .2px; }
.pa-brand-txt small { font-size: 11px; opacity: .72; letter-spacing: .4px; }

.pa-aside-body { position: relative; z-index: 1; margin: 26px 0; }
.pa-aside-body h2 {
    margin: 0 0 18px;
    font-size: 22px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: .3px;
}
.pa-points { list-style: none; margin: 0; padding: 0; }
.pa-points li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 11px;
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .88);
}
.pa-points li::before {
    content: "";
    position: absolute;
    left: 4px; top: 7px;
    width: 9px; height: 5px;
    border-left: 2px solid rgba(255, 255, 255, .95);
    border-bottom: 2px solid rgba(255, 255, 255, .95);
    transform: rotate(-45deg);
}
.pa-aside-foot {
    position: relative;
    z-index: 1;
    font-size: 11px;
    letter-spacing: .3px;
    color: rgba(255, 255, 255, .68);
}

/* ---------- 右侧表单区 ---------- */
.pa-main {
    padding: 40px 46px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.pa-head { margin-bottom: 22px; }
.pa-head h1 {
    margin: 0 0 7px;
    font-size: 23px;
    font-weight: 600;
    letter-spacing: .2px;
}
.pa-head p { margin: 0; font-size: 13px; color: var(--pa-muted); }

/* ---------- 提示条 ---------- */
.pa-banner {
    display: flex;
    gap: 9px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.65;
    margin-bottom: 16px;
    border: 1px solid transparent;
    animation: pa-fade .22s ease-out;
}
.pa-banner ul { margin: 0; padding-left: 16px; }
.pa-banner li { margin: 1px 0; }
.pa-banner.is-error { color: #b42318; background: var(--pa-err-bg); border-color: #ffd6d6; }
.pa-banner.is-success { color: #07704b; background: var(--pa-ok-bg); border-color: #c6f0dd; }
.pa-banner.is-info { color: #1c4ed8; background: #eef3ff; border-color: #d6e2ff; }
.pa-banner.is-warn { color: #8a5300; background: #fff8e8; border-color: #ffe6b0; }
.pa-banner .pa-banner-ico { flex: 0 0 auto; font-weight: 700; }

@keyframes pa-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- 表单 ---------- */
.pa-form { margin: 0; }
.pa-field { margin-bottom: 15px; }
.pa-field > label {
    display: block;
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: #3b4a66;
    letter-spacing: .2px;
}
.pa-input-wrap { position: relative; display: flex; align-items: center; }

.pa-field input[type="text"],
.pa-field input[type="email"],
.pa-field input[type="password"] {
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    padding: 0 44px 0 40px;
    font-size: 14px;
    color: var(--pa-text);
    background: #fbfcfe;
    border: 1px solid var(--pa-line);
    border-radius: var(--pa-radius);
    outline: none;
    transition: border-color .16s, box-shadow .16s, background .16s;
    -webkit-appearance: none;
}
.pa-field input::placeholder { color: #a8b3c6; }
.pa-field input:hover { border-color: #c9d5e8; }
.pa-field input:focus {
    background: #fff;
    border-color: var(--pa-primary);
    box-shadow: 0 0 0 3px rgba(47, 107, 252, .13);
}
.pa-field.is-bad input { border-color: #f0a3a5; background: #fffafa; }
.pa-field.is-bad input:focus { box-shadow: 0 0 0 3px rgba(229, 72, 77, .12); }

.pa-ico {
    position: absolute;
    left: 13px;
    display: flex;
    color: #9aa7bd;
    pointer-events: none;
    transition: color .16s;
}
.pa-field input:focus ~ .pa-ico,
.pa-input-wrap:focus-within .pa-ico { color: var(--pa-primary); }

.pa-eye {
    position: absolute;
    right: 6px;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #93a1b8;
    cursor: pointer;
    border-radius: 8px;
    transition: color .15s, background .15s;
}
.pa-eye:hover { color: var(--pa-primary); background: #eef3ff; }
.pa-eye:focus { outline: none; color: var(--pa-primary); }

.pa-hint { margin: 6px 0 0; font-size: 11.5px; color: #93a1b8; line-height: 1.6; }
.pa-err { margin: 6px 0 0; font-size: 12px; color: var(--pa-err); line-height: 1.6; }
.pa-err::before {
    content: "!";
    display: inline-block;
    width: 14px; height: 14px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--pa-err);
    color: #fff;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    vertical-align: 1px;
}

/* 记住我 / 忘记密码 */
.pa-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 20px;
}
.pa-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 12.5px;
    font-weight: 400;
    color: #4c5b76;
    cursor: pointer;
    user-select: none;
}
.pa-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px; height: 16px;
    margin: 0;
    border: 1.5px solid #c3cfe2;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: background .15s, border-color .15s;
}
.pa-check input[type="checkbox"]:checked {
    background: var(--pa-primary);
    border-color: var(--pa-primary);
}
.pa-check input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4.5px; top: 1px;
    width: 4px; height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(42deg);
}
.pa-check input[type="checkbox"]:focus { box-shadow: 0 0 0 3px rgba(47, 107, 252, .15); }

.pa-link { font-size: 12.5px; color: var(--pa-primary); text-decoration: none; }
.pa-link:hover { color: var(--pa-primary-d); text-decoration: underline; }

/* 按钮 */
.pa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--pa-radius);
    background: linear-gradient(135deg, #3a78f5 0%, #2f6bfc 60%, #2a61ea 100%);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: .4px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(47, 107, 252, .24);
    transition: transform .12s, box-shadow .16s, opacity .16s;
    text-decoration: none;
}
.pa-btn:hover {
    color: #fff;
    text-decoration: none;
    box-shadow: 0 9px 22px rgba(47, 107, 252, .32);
    transform: translateY(-1px);
}
.pa-btn:active { transform: translateY(0) scale(.995); box-shadow: 0 4px 10px rgba(47, 107, 252, .24); }
.pa-btn:focus { outline: none; box-shadow: 0 0 0 4px rgba(47, 107, 252, .18); }
.pa-btn[disabled], .pa-btn.is-loading {
    opacity: .72;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(47, 107, 252, .18);
}
.pa-btn.is-loading::before {
    content: "";
    width: 15px; height: 15px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pa-spin .7s linear infinite;
}
@keyframes pa-spin { to { transform: rotate(360deg); } }

.pa-btn-ghost {
    background: #fff;
    color: #3b4a66;
    border-color: var(--pa-line);
    box-shadow: none;
    font-weight: 500;
}
.pa-btn-ghost:hover {
    background: #f6f9ff;
    color: var(--pa-primary);
    border-color: #bcd0f7;
    box-shadow: none;
}
.pa-btn-sm { width: auto; height: 36px; padding: 0 14px; font-size: 13px; border-radius: 9px; }

/* 底部切换 + 法务 */
.pa-switch {
    margin: 18px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--pa-muted);
}
.pa-switch a { color: var(--pa-primary); font-weight: 600; text-decoration: none; }
.pa-switch a:hover { text-decoration: underline; }
.pa-legal {
    margin-top: 26px;
    text-align: center;
    font-size: 11px;
    color: #a8b3c6;
}
.pa-legal a { color: #a8b3c6; text-decoration: none; }
.pa-legal a:hover { color: var(--pa-primary); }

/* ---------- 密码强度 ---------- */
.pa-strength { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pa-strength-bars { display: flex; gap: 4px; flex: 1; }
.pa-strength-bars i {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #e7edf7;
    transition: background .22s;
}
.pa-strength-txt { font-size: 11.5px; color: #93a1b8; min-width: 44px; text-align: right; }
.pa-strength[data-score="1"] .pa-strength-bars i:nth-child(1) { background: #ef4444; }
.pa-strength[data-score="2"] .pa-strength-bars i:nth-child(-n+2) { background: #f59e0b; }
.pa-strength[data-score="3"] .pa-strength-bars i:nth-child(-n+3) { background: #3b82f6; }
.pa-strength[data-score="4"] .pa-strength-bars i { background: #10b981; }
.pa-strength[data-score="1"] .pa-strength-txt { color: #ef4444; }
.pa-strength[data-score="2"] .pa-strength-txt { color: #d97706; }
.pa-strength[data-score="3"] .pa-strength-txt { color: #2563eb; }
.pa-strength[data-score="4"] .pa-strength-txt { color: #059669; }

/* ---------- 步骤条 ---------- */
.pa-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.pa-step { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #a8b3c6; white-space: nowrap; }
.pa-step b {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #eef2f9;
    color: #93a1b8;
    font-size: 11px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
}
.pa-step.is-on { color: var(--pa-primary); }
.pa-step.is-on b { background: var(--pa-primary); color: #fff; }
.pa-step.is-done b { background: #d8f3e6; color: #0f9d67; }
.pa-step-line { flex: 1; height: 1px; background: #e7edf7; }

/* ---------- 验证码输入 ---------- */
.pa-code input[type="text"] {
    text-align: center;
    letter-spacing: 12px;
    font-size: 22px;
    font-weight: 600;
    padding: 0 10px 0 22px;
    font-family: "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- 成功页 ---------- */
.pa-done { text-align: center; padding: 6px 0 4px; }
.pa-done-ico {
    width: 62px; height: 62px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #fff;
    font-size: 30px;
    line-height: 62px;
    box-shadow: 0 10px 24px rgba(16, 185, 129, .28);
}
.pa-done h2 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.pa-done p { margin: 0 0 22px; font-size: 13px; color: var(--pa-muted); line-height: 1.7; }

/* ---------- 个人中心（登录后，套在后台框架里） ---------- */
.pa-container { max-width: 880px; margin: 0 auto; padding: 18px 18px 40px; }
.pa-card {
    background: #fff;
    border: 1px solid #eaeff7;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(23, 43, 77, .05);
    padding: 24px 26px;
    margin-bottom: 16px;
}
.pa-card h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--pa-text);
}
.pa-card .pa-card-sub { margin: 0 0 18px; font-size: 12.5px; color: var(--pa-muted); }

.pa-profile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pa-avatar {
    width: 54px; height: 54px;
    flex: 0 0 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3a78f5, #5fa2ff);
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 54px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(47, 107, 252, .22);
}
.pa-profile-main { flex: 1 1 200px; min-width: 0; }
.pa-profile-main h2 { margin: 0 0 5px; font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pa-profile-main p { margin: 0; font-size: 12.5px; color: var(--pa-muted); word-break: break-all; }
.pa-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 20px;
    background: #eef3ff;
    border: 1px solid #d9e5ff;
    color: #2f6bfc;
    font-size: 11px;
    font-weight: 500;
    line-height: 18px;
}

.pa-info {
    /* flex 让最后一行自动伸展，避免出现空白单元格 */
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    margin: 20px 0 0;
    background: #eef2f8;
    border: 1px solid #eef2f8;
    border-radius: 12px;
    overflow: hidden;
}
.pa-info > div { background: #fff; padding: 13px 15px; flex: 1 1 200px; min-width: 0; }
.pa-info dt { font-size: 11.5px; color: #93a1b8; font-weight: 400; margin-bottom: 4px; }
.pa-info dd { margin: 0; font-size: 13.5px; color: #2b3852; word-break: break-all; }

/* 隐私字段：打码值 + 手动展开 */
.pa-private-flag {
    display: inline-block;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 4px;
    background: #eef4ff;
    color: #5b7fc7;
    font-size: 10px;
    font-weight: 400;
    vertical-align: 1px;
}
.pa-private { word-break: break-all; }
.pa-reveal {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 3px 8px;
    border: 1px solid #dbe5f5;
    border-radius: 6px;
    background: #f7faff;
    color: #3d6fc4;
    font-size: 11.5px;
    cursor: pointer;
    vertical-align: 1px;
}
.pa-reveal:hover { background: #eaf2ff; border-color: #b9d0f5; }
.pa-reveal:focus-visible { outline: 2px solid #1677ff; outline-offset: 2px; }

.pa-tips {
    margin-top: 16px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #f7faff;
    border: 1px solid #e5eeff;
    font-size: 12px;
    color: #5a6b87;
    line-height: 1.7;
}
.pa-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pa-actions .pa-btn { width: auto; min-width: 120px; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
    .pa-shell { grid-template-columns: 1fr; max-width: 480px; }
    .pa-aside { padding: 20px 24px; }
    .pa-aside-body, .pa-aside-foot { display: none; }
    .pa-main { padding: 28px 26px 26px; }
}
@media (max-width: 420px) {
    .pa-page { padding: 14px 10px; }
    .pa-shell { border-radius: 16px; }
    .pa-main { padding: 24px 18px 22px; }
    .pa-head h1 { font-size: 20px; }
    .pa-field input[type="text"],
    .pa-field input[type="email"],
    .pa-field input[type="password"] { height: 44px; font-size: 15px; }
    .pa-btn { height: 44px; }
    .pa-card { padding: 18px 16px; }
    .pa-profile { gap: 12px; }
    .pa-actions .pa-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 200% 缩放 / 超窄视口（<=260 CSS px）：品牌区收成一行，把登录表单留在首屏 */
@media (max-width: 260px) {
    .pa-page { padding: 6px; }
    .pa-shell { border-radius: 12px; }
    .pa-aside { padding: 10px 12px; }
    .pa-brand { gap: 7px; }
    .pa-logo { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
    .pa-brand-txt small { display: none; }
    .pa-brand-txt b { font-size: 12px; }
    .pa-main { padding: 16px 12px 14px; }
    .pa-head h1 { font-size: 18px; }
    .pa-head p { font-size: 11.5px; margin-bottom: 14px; }
    .pa-field input[type="text"], .pa-field input[type="email"],
    .pa-field input[type="password"] { padding-right: 30px; font-size: 13px; }
    .pa-input-wrap .pa-eye { right: 1px; }
    .pa-steps { display: none; }
    .pa-legal { margin-top: 18px; }
}

/* 专属 ID 数字 */
.uid-inline {
    font-family: 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
    font-size: 1.02em;
    letter-spacing: .5px;
    color: #2f6fe0;
    margin-right: 6px;
}
