/* 村挺得 · 登录 / 注册 / 安全中心 v2.4.0 */
.auth-page-body .support-dock,
.hide-support .support-dock,
.auth-page-body .mobile-tabbar { display: none !important; }
.site-flash {
    margin-top: 18px;
}
.site-flash--error { background: #fff4f2; border: 1px solid #f3c7bd; color: #9b3325; }
.site-flash--success { background: #f2fbf5; border: 1px solid #bfe6ca; color: #1f6b3a; }
.site-flash--info { background: #f3f8fd; border: 1px solid #c8dcee; color: #24557d; }
.site-flash {
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.55;
}

.auth-card--wide { max-width: 478px; }
.auth-card--narrow { max-width: 430px; }
.auth-head { margin-bottom: 18px; }
.auth-eyebrow {
    display: inline-block;
    font-size: 10px;
    letter-spacing: .16em;
    font-weight: 700;
    color: var(--gold-600, #a67c2e);
    margin-bottom: 7px;
}
.auth-head h1 { margin: 0; letter-spacing: -.5px; }
.auth-head .auth-sub { margin-bottom: 0; }

.auth-security-strip {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 12px;
    border-radius: 11px;
    background: linear-gradient(135deg, #f2f8f4, #f7fbf8);
    border: 1px solid #d4e9da;
    color: #28563a;
    font-size: 12.5px;
    line-height: 1.55;
    margin-bottom: 18px;
}
.auth-security-strip__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e1f2e6;
    color: #2f6b45;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}
.auth-security-strip strong { font-weight: 600; }

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    background: #f3f6f8;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.auth-tab {
    height: 38px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ink-500);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}
.auth-tab.is-active {
    background: #fff;
    color: var(--brand-800, #153c5c);
    box-shadow: 0 2px 8px rgba(13, 39, 66, .08);
}
.auth-pane[hidden] { display: none; }

.auth-captcha { display: flex; flex-direction: column; gap: 6px; }
.auth-captcha__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px auto;
    align-items: end;
    gap: 8px;
}
.auth-captcha__field { min-width: 0; }
.auth-captcha__img {
    width: 132px;
    height: 44px;
    border-radius: 9px;
    border: 1px solid var(--line-strong);
    background: #fbf8ee;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s, filter .18s;
}
.auth-captcha__img:hover {
    border-color: var(--brand-500, #2f7a53);
    filter: brightness(1.02) saturate(1.04);
    box-shadow: 0 0 0 2px rgba(47, 122, 83, .1);
}
.auth-captcha__img:focus-visible {
    outline: 2px solid rgba(47, 122, 83, .45);
    outline-offset: 2px;
}
.auth-captcha__refresh {
    height: 44px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--brand-700);
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.auth-captcha__refresh:hover { background: var(--brand-50); }
.auth-hint {
    font-size: 11.5px;
    color: var(--ink-400);
    font-style: normal;
    line-height: 1.5;
}

.auth-slider {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 13px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    touch-action: none;
}
.auth-slider__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    color: var(--ink-600, #46586a);
}
.auth-slider__refresh {
    border: 0;
    background: transparent;
    color: var(--brand-700);
    font-size: 12px;
    padding: 2px 0;
    cursor: pointer;
    flex: 0 0 auto;
}
.auth-slider__canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 300 / 126;
    border-radius: 10px;
    overflow: hidden;
    background: #0d2c3c;
    isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 -18px 32px -24px rgba(0, 0, 0, .65);
}
.auth-slider__bg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}
.auth-slider__piece {
    position: absolute;
    z-index: 2;
    border-radius: 5px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .35);
    pointer-events: none;
    user-select: none;
}
.auth-slider__loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    background: rgba(8, 30, 45, .82);
    color: #eaf5fb;
    font-size: 12.5px;
    letter-spacing: .02em;
}
.auth-slider__loading[hidden] { display: none; }
.auth-slider__track {
    position: relative;
    height: 46px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f4f7f1 0%, #e9efe6 100%);
    border: 1px solid #d5e0d2;
    box-shadow: inset 0 1px 2px rgba(18, 60, 40, .05);
    overflow: hidden;
    margin-top: 1px;
}
.auth-slider__track-label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0 52px;
    white-space: nowrap;
    z-index: 1;
    color: #8e9c8e;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .06em;
    pointer-events: none;
    transition: opacity .18s;
}
.auth-slider.is-dragging .auth-slider__track-label { opacity: .22; }
.auth-slider__fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(28, 111, 72, .16), rgba(201, 162, 74, .27));
    pointer-events: none;
}
.auth-slider__handle {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 46px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fffdf7 0%, #eef2e8 100%);
    border: 1px solid #cbd9c8;
    color: #24583b;
    display: grid;
    place-items: center;
    cursor: grab;
    box-shadow: 0 5px 12px -7px rgba(13, 55, 35, .55), inset 0 1px 0 rgba(255, 255, 255, .8);
    touch-action: none;
    user-select: none;
}
.auth-slider__handle:active,
.auth-slider.is-dragging .auth-slider__handle { cursor: grabbing; }
.auth-slider__handle .ico { transform: rotate(90deg); }
.auth-slider.is-dragging .auth-slider__handle { background: linear-gradient(135deg, #fff9ea, #f3e5bd); border-color: #d8bd83; }
.auth-slider.is-error .auth-slider__loading { background: rgba(88, 28, 22, .9); }
.auth-slider input { display: none; }

.auth-submit { height: 48px; font-size: 16px; letter-spacing: .12em; margin-top: 2px; }
.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--ink-500);
    line-height: 1.55;
}
.auth-check input { width: 16px; height: 16px; margin-top: 1px; flex: 0 0 auto; }
.auth-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px dashed var(--line);
    color: var(--ink-400);
    font-size: 11px;
}
.auth-trust span { display: inline-flex; align-items: center; gap: 4px; }

.auth-2fa-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border-radius: 11px;
    background: #f5f9fd;
    border: 1px solid #d7e5f1;
    color: #2c5b7d;
    font-size: 12px;
    margin-bottom: 18px;
}
.auth-code-field input {
    height: 54px;
    text-align: center;
    font-size: 25px;
    letter-spacing: .42em;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    padding-left: .42em;
}

/* 安全中心 */
.security-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    margin-top: 16px;
    background: #fff;
}
.security-panel:first-of-type { margin-top: 0; }
.security-panel--muted { background: #fbfcfd; }
.security-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
}
.security-panel__head h2 { font-size: 17px; margin: 0 0 4px; color: var(--brand-900); }
.security-panel__head p { font-size: 12.5px; color: var(--ink-500); line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f2f4f6;
    color: var(--ink-500);
    font-size: 11px;
    white-space: nowrap;
}
.security-badge--on { background: #edf8f1; color: #1f6b3a; border: 1px solid #c8e7d2; }
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-top: 14px;
}
.security-item {
    padding: 11px 12px;
    background: #f8fafb;
    border: 1px solid #e7edf1;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.security-item span { font-size: 11px; color: var(--ink-400); }
.security-item strong { font-size: 13.5px; color: var(--brand-800, #153c5c); }
.security-item em { font-style: normal; font-size: 10.5px; color: var(--ink-400); }
.security-steps { margin-top: 14px; }
.security-steps ol { margin: 0; padding-left: 20px; color: var(--ink-600, #46586a); font-size: 12.5px; line-height: 1.85; }
.security-secret {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    background: #0e2b3d;
    color: #eaf5fb;
}
.security-secret > span { font-size: 11px; color: #9fc2d6; }
.security-secret code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    letter-spacing: .08em;
    color: #f6e2ae;
    word-break: break-all;
}
.security-secret .btn--sm { margin-left: auto; height: 30px; padding: 0 9px; font-size: 11px; }
.security-uri { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.security-uri > span { font-size: 11px; color: var(--ink-400); }
.security-uri a { font-size: 12.5px; color: var(--brand-700); word-break: break-all; }
.security-uri em { font-style: normal; font-size: 11px; color: var(--ink-400); }
.security-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.security-form .field { min-width: 180px; flex: 1 1 180px; }
.security-form--danger { align-items: end; }
.security-enabled p { font-size: 12.5px; color: var(--ink-500); line-height: 1.65; overflow-wrap: anywhere; }
.security-enabled p strong { color: var(--ink-700); }
.security-warning { color: #9a4a1e !important; background: #fff8ef; border: 1px solid #f2dcc1; border-radius: 9px; padding: 9px 11px; }
.security-note { font-size: 12.5px; color: var(--ink-500); line-height: 1.6; margin: 12px 0; }

.btn--danger {
    background: linear-gradient(135deg, #b04a3d, #923428);
    color: #fff;
    border-color: transparent;
}
.btn--danger:hover { box-shadow: 0 10px 22px -14px rgba(146, 52, 40, .75); }

@media (max-width: 560px) {
    .auth-page { padding: 26px 14px 46px; align-items: flex-start; }
    .auth-card { padding: 18px 15px 20px; border-radius: 16px; }
    .auth-card h1 { font-size: 22px; }
    .auth-security-strip { font-size: 11.5px; padding: 10px; }
    .auth-captcha__row { grid-template-columns: minmax(0, 1fr) 132px auto; gap: 6px; }
    .auth-captcha__img { width: 132px; height: 44px; object-fit: cover; }
    .auth-captcha__refresh { height: 44px; padding: 0 8px; font-size: 11px; }
    .auth-slider { padding: 8px; gap: 7px; }
    .auth-slider__track { height: 46px; }
    .auth-slider__handle { height: 44px; width: 46px; }
    .security-grid { grid-template-columns: 1fr; }
    .security-panel { padding: 15px; }
    .security-panel__head { flex-direction: column; }
    .security-form .field { flex-basis: 100%; }
    .security-form .btn { width: 100%; }
}

/* 4 位图形验证码：登录页常驻字段 */
.auth-captcha .field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}
.auth-captcha .field > span {
    color: #52665a;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .045em;
}
.auth-captcha .field input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(35, 80, 55, .18);
    border-radius: 11px;
    outline: 0;
    background: rgba(255, 255, 255, .82);
    color: #173728;
    font-family: var(--font-sans);
    font-size: 14px;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.auth-captcha .field input::placeholder { color: #aeb7ad; }
.auth-captcha .field input:focus {
    border-color: #1d6a46;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29, 106, 70, .09);
}
.auth-captcha__img { height: 44px; }
.auth-captcha__refresh { height: 44px; }
@media (max-width: 340px) {
    .auth-captcha__row { grid-template-columns: minmax(0, 1fr) 108px auto; gap: 5px; }
    .auth-captcha__img { width: 108px; height: 36px; }
    .auth-captcha__refresh { height: 36px; padding: 0 6px; font-size: 10.5px; }
}
