/* 认证页（登录/注册/找回密码）配色：默认跟随站点深色＋鎏金；白昼模式为米白＋深金 */
body#reg {
    --nq-auth-accent: #d9a441;
    --nq-auth-accent-strong: #a1731b;
    --nq-auth-accent-soft: rgba(217, 164, 65, 0.16);
    --nq-auth-accent-border: rgba(217, 164, 65, 0.42);
    --nq-auth-btn-shadow: rgba(161, 115, 27, 0.30);
    --nq-auth-bg: #14110b;
    --nq-auth-panel: #1c1811;
    --nq-auth-field: #241f16;
    --nq-auth-focus: #2c2517;
    --nq-auth-text: #f3ead9;
    --nq-auth-muted: #a99a7f;
    --nq-auth-line: rgba(231, 189, 106, 0.16);
    --nq-auth-link: #e7bd6a;
    --nq-auth-danger: #ff6b7a;
    background: var(--nq-auth-bg);
    color: var(--nq-auth-text);
}

body#reg .reg-w {
    background: var(--nq-auth-panel);
}

body#reg .reg-logo a {
    background-size: contain;
}

body#reg .reg-w form .reg-group {
    background: var(--nq-auth-field);
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(231, 189, 106, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body#reg .reg-w form .reg-group:focus-within {
    background: var(--nq-auth-focus);
    border-color: var(--nq-auth-accent-border);
    box-shadow: 0 0 0 4px var(--nq-auth-accent-soft);
}

body#reg .reg-w form .reg-group.err {
    background: rgba(255, 107, 122, 0.10);
    border-color: rgba(255, 107, 122, 0.42);
    box-shadow: 0 0 0 4px rgba(255, 107, 122, 0.12);
}

body#reg .reg-w form .reg-group .reg-control {
    color: var(--nq-auth-text);
}

body#reg .reg-w form .reg-group .reg-control::placeholder {
    color: var(--nq-auth-muted);
}

body#reg .reg-w form .error-tip {
    color: var(--nq-auth-danger);
}

body#reg .reg-yzm,
body#reg .reg-w form .btn-sub,
body#reg .btn-brand {
    background: linear-gradient(135deg, var(--nq-auth-accent) 0%, var(--nq-auth-accent-strong) 100%) !important;
    border: 0;
    color: #ffffff !important;
    box-shadow: 0 14px 30px var(--nq-auth-btn-shadow);
}

body#reg .reg-w form .btn-sub {
    min-height: 1.05rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

body#reg .reg-w form .btn-sub:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px var(--nq-auth-btn-shadow);
}

body#reg .reg-w form .btn-sub:active {
    transform: translateY(0);
    box-shadow: 0 10px 22px var(--nq-auth-btn-shadow);
}

body#reg .reg-yzm[disabled],
body#reg .btn-brand[disabled] {
    opacity: 0.66;
    cursor: not-allowed;
}

body#reg .reg-ts a,
body#reg .reg-ts span {
    color: var(--nq-auth-link) !important;
}

body#reg .reg-ts a:hover {
    color: var(--nq-auth-accent) !important;
}

body#reg .reg-ts a::after {
    border-right-color: var(--nq-auth-line);
}

/* 白昼模式：米白底＋深金 */
html.theme-white body#reg {
    --nq-auth-accent: #b8860b;
    --nq-auth-accent-strong: #8f6a08;
    --nq-auth-accent-soft: rgba(184, 134, 11, 0.14);
    --nq-auth-accent-border: rgba(184, 134, 11, 0.34);
    --nq-auth-btn-shadow: rgba(143, 106, 8, 0.22);
    --nq-auth-bg: #faf6ec;
    --nq-auth-panel: #fffdf8;
    --nq-auth-field: #f1ebdd;
    --nq-auth-focus: #ffffff;
    --nq-auth-text: #241f16;
    --nq-auth-muted: #8a7c62;
    --nq-auth-line: rgba(120, 90, 20, 0.18);
    --nq-auth-link: #8f6a08;
}

/* 暗夜模式：与默认深色一致 */
html.theme-black body#reg,
body#reg.theme-black {
    --nq-auth-accent: #d9a441;
    --nq-auth-accent-strong: #a1731b;
    --nq-auth-accent-soft: rgba(217, 164, 65, 0.18);
    --nq-auth-accent-border: rgba(217, 164, 65, 0.44);
    --nq-auth-bg: #0d0b06;
    --nq-auth-panel: #161208;
    --nq-auth-field: #1e1810;
    --nq-auth-focus: #26200f;
    --nq-auth-text: #f5edda;
    --nq-auth-muted: #9d8f74;
    --nq-auth-line: rgba(231, 189, 106, 0.18);
    --nq-auth-link: #f0c674;
}

html.theme-black body#reg .reg-w form .reg-group:focus-within,
body#reg.theme-black .reg-w form .reg-group:focus-within {
    background: #26200f;
}

@media (max-width: 820px) {
    body#reg .reg-w {
        min-height: calc(100vh - 1.25rem);
    }

    body#reg .reg-logo {
        margin: 0.7rem auto;
    }

    body#reg .reg-w form .btn-sub {
        min-height: 1.2rem;
    }
}
