body#reg {
    --ify-auth-accent: #d8ae58;
    --ify-auth-accent-strong: #9a6724;
    --ify-auth-accent-soft: rgba(216, 174, 88, 0.16);
    --ify-auth-accent-border: rgba(216, 174, 88, 0.26);
    --ify-auth-bg: #111219;
    --ify-auth-panel: #1a1c25;
    --ify-auth-field: #232532;
    --ify-auth-text: #f3e5c5;
    --ify-auth-muted: #b8a27a;
    --ify-auth-danger: #ff4d5f;
    background: var(--ify-auth-bg);
    color: var(--ify-auth-text);
}

body#reg .reg-w {
    background: var(--ify-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(--ify-auth-field);
    border: 1px solid rgba(216, 174, 88, 0.08);
    box-shadow: inset 0 0 0 1px rgba(216, 174, 88, 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: #28231f;
    border-color: var(--ify-auth-accent-border);
    box-shadow: 0 0 0 4px var(--ify-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(--ify-auth-text);
}

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

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

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

body#reg .reg-yzm,
body#reg .reg-w form .btn-sub,
body#reg .btn-brand {
    background: linear-gradient(135deg, #e0ba68 0%, #aa7229 100%) !important;
    border: 0;
    color: #1c1308 !important;
    box-shadow: 0 14px 30px rgba(131, 88, 24, 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(131, 88, 24, 0.34);
}

body#reg .reg-w form .btn-sub:active {
    transform: translateY(0);
    box-shadow: 0 10px 22px rgba(131, 88, 24, 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(131, 88, 24, 0.2);
}

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

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

body#reg .reg-ts a::after {
    border-right-color: rgba(216, 174, 88, 0.2);
}

body#reg .reg-dl h5 {
    color: var(--ify-auth-muted);
    border-top-color: rgba(216, 174, 88, 0.12);
}

body#reg .reg-yzm {
    color: #1c1308 !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 {
    --ify-auth-bg: #111219;
    --ify-auth-panel: #1a1c25;
    --ify-auth-field: #232532;
    --ify-auth-text: #f3e5c5;
    --ify-auth-muted: #b8a27a;
    --ify-auth-accent-soft: rgba(216, 174, 88, 0.18);
    --ify-auth-accent-border: rgba(216, 174, 88, 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: #28231f;
}

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: #d8ae58 !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;
    }
}
