body#reg {
    --xq-auth-accent: #c98a2e;
    --xq-auth-accent-strong: #7f2c10;
    --xq-auth-accent-soft: rgba(201, 138, 46, 0.16);
    --xq-auth-accent-border: rgba(201, 138, 46, 0.26);
    --xq-auth-bg: #17100a;
    --xq-auth-panel: #241a11;
    --xq-auth-field: #2e2216;
    --xq-auth-text: #f2e6d0;
    --xq-auth-muted: #b39a76;
    --xq-auth-danger: #ff4d5f;
    background: var(--xq-auth-bg);
    color: var(--xq-auth-text);
}

body#reg .reg-w {
    background: var(--xq-auth-panel);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

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

body#reg .reg-w form .reg-group {
    background: var(--xq-auth-field);
    border: 1px solid rgba(201, 138, 46, 0.08);
    box-shadow: inset 0 0 0 1px rgba(201, 138, 46, 0.03);
    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: #33261a;
    border-color: var(--xq-auth-accent-border);
    box-shadow: 0 0 0 4px var(--xq-auth-accent-soft);
}

body#reg .reg-w form .reg-group.err {
    background: rgba(255, 77, 95, 0.08);
    border-color: rgba(255, 77, 95, 0.38);
    box-shadow: 0 0 0 4px rgba(255, 77, 95, 0.1);
}

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

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

body#reg .reg-group .l-icon {
    filter: grayscale(1) sepia(.28) opacity(.78);
}

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

body#reg .reg-yzm,
body#reg .reg-w form .btn-sub,
body#reg .btn-brand {
    background: linear-gradient(135deg, #c98a2e 0%, #b5451f 100%) !important;
    border: 0;
    color: #f6efe1 !important;
    box-shadow: 0 14px 30px rgba(181, 69, 31, 0.28);
}

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 rgba(181, 69, 31, 0.34);
}

body#reg .reg-w form .btn-sub:active {
    transform: translateY(0);
    box-shadow: 0 10px 22px rgba(181, 69, 31, 0.24);
}

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

body#reg .btn-brand.is-loading,
body#reg .reg-yzm.is-loading {
    opacity: 0.7;
    transform: none;
    box-shadow: 0 10px 22px rgba(181, 69, 31, 0.2);
}

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

body#reg .reg-ts a:hover {
    color: #e0a94f !important;
}

body#reg .reg-ts a::after {
    border-right-color: rgba(201, 138, 46, 0.2);
}

body#reg .reg-dl h5 {
    color: var(--xq-auth-muted);
    border-top-color: rgba(201, 138, 46, 0.12);
}

body#reg .reg-yzm {
    color: #f6efe1 !important;
}

body#reg .verify_code #verify_img,
body#reg .m-hi[src*="verify/index"] {
    border-radius: 999px;
    background: #f4ead8;
}

html.theme-black body#reg,
body#reg.theme-black {
    --xq-auth-bg: #17100a;
    --xq-auth-panel: #241a11;
    --xq-auth-field: #2e2216;
    --xq-auth-text: #f2e6d0;
    --xq-auth-muted: #b39a76;
    --xq-auth-accent-soft: rgba(201, 138, 46, 0.18);
    --xq-auth-accent-border: rgba(201, 138, 46, 0.34);
}

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

html.theme-black body#reg .reg-ts a,
html.theme-black body#reg .reg-ts span,
body#reg.theme-black .reg-ts a,
body#reg.theme-black .reg-ts span {
    color: #c98a2e !important;
}

@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;
    }
}
