:root {
    --ks-reg-brand: #f59e0b;
    --ks-reg-brand-dark: #c77200;
    --ks-reg-brand-soft: #fff1d7;
    --ks-reg-ink: #10284a;
    --ks-reg-muted: #7f8ea3;
    --ks-reg-line: #edf2f7;
    --ks-reg-shadow: 0 22px 50px rgba(84, 52, 17, 0.10);
}

.member-auth.member-register-auth {
    display: block;
    min-height: 100vh;
    background: #fffdf7;
    color: var(--ks-reg-ink);
}

.member-register-auth .auth-shell {
    width: 100%;
    min-height: 100vh;
}

.member-register-auth .auth-panel {
    display: grid;
    grid-template-columns: minmax(540px, 1.2fr) minmax(420px, 0.8fr);
    min-height: 100vh;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.member-register-auth .auth-panel--split {
    gap: 0;
}

.member-register-auth .auth-brand {
    display: none;
}

.member-register-auth .auth-main {
    min-width: 0;
}

.member-register-auth .auth-side {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 24px 32px;
    border-left: 0;
    background: #ffffff;
}

.ks-reg-visual {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 24px 32px;
    background: linear-gradient(180deg, #fff8ea 0%, #fffdf7 100%);
}

.ks-reg-visual::before {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0) 70%);
}

.ks-reg-visual::after {
    content: "";
    position: absolute;
    right: 60px;
    bottom: 20px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.18), rgba(251, 191, 36, 0) 72%);
}

.ks-reg-brand-line {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.ks-reg-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--ks-reg-ink);
    text-decoration: none;
}

.ks-reg-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffb23b, #ff8d20);
    color: #ffffff;
    font-size: 25px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.24);
}

.ks-reg-brand-copy {
    display: grid;
    gap: 3px;
}

.ks-reg-brand-copy strong {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.ks-reg-brand-copy em {
    color: var(--ks-reg-muted);
    font-size: 13px;
    font-style: normal;
}

.ks-reg-visual-stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 72px);
}

.ks-reg-visual-card {
    position: relative;
    width: min(560px, 76%);
    height: 320px;
}

.ks-reg-visual-window {
    position: absolute;
    left: 28px;
    top: 34px;
    width: 380px;
    height: 196px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--ks-reg-shadow);
}

.ks-reg-visual-window-head {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 14px;
    border-bottom: 1px solid #eef3f8;
}

.ks-reg-v-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff6b6b;
}

.ks-reg-v-dot:nth-child(2) {
    background: #ffce57;
}

.ks-reg-v-dot:nth-child(3) {
    background: #30c97a;
}

.ks-reg-visual-window-body {
    display: grid;
    grid-template-columns: 76px 1fr 98px;
    gap: 18px;
    padding: 22px;
}

.ks-reg-v-left span,
.ks-reg-v-center span,
.ks-reg-v-stat span {
    display: block;
    border-radius: 999px;
    background: #edf2fb;
}

.ks-reg-v-left span {
    height: 10px;
    margin-bottom: 14px;
}

.ks-reg-v-left span:nth-child(1) {
    width: 58px;
    background: #ffd59a;
}

.ks-reg-v-left span:nth-child(2) {
    width: 44px;
}

.ks-reg-v-left span:nth-child(3) {
    width: 56px;
}

.ks-reg-v-center span {
    height: 12px;
    margin-bottom: 16px;
}

.ks-reg-v-center span:nth-child(1) {
    width: 70%;
}

.ks-reg-v-center span:nth-child(2) {
    width: 84%;
}

.ks-reg-v-center span:nth-child(3) {
    width: 58%;
}

.ks-reg-v-center span:nth-child(4) {
    width: 76%;
}

.ks-reg-v-stat {
    padding: 12px;
    border-radius: 18px;
    background: #fff8ee;
}

.ks-reg-v-stat span:nth-child(1) {
    width: 76%;
    height: 14px;
    margin-bottom: 12px;
}

.ks-reg-v-stat span:nth-child(2) {
    height: 92px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffbe59, #ff9227);
}

.ks-reg-visual-float {
    position: absolute;
    right: 14px;
    bottom: 28px;
    width: 144px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.ks-reg-visual-float-head {
    width: 64%;
    height: 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #edf2fb;
}

.ks-reg-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 92px;
}

.ks-reg-bars i {
    display: block;
    width: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffca66, #ff9a30);
}

.ks-reg-bars i:nth-child(1) {
    height: 38px;
}

.ks-reg-bars i:nth-child(2) {
    height: 68px;
}

.ks-reg-bars i:nth-child(3) {
    height: 52px;
}

.ks-reg-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 193, 71, 0.92);
}

.ks-reg-bubble-a {
    left: 0;
    top: 84px;
    width: 46px;
    height: 46px;
}

.ks-reg-bubble-b {
    left: 10px;
    top: 118px;
    width: 52px;
    height: 28px;
    border-radius: 28px;
    background: rgba(255, 226, 181, 0.92);
}

.ks-reg-bubble-c {
    right: 0;
    bottom: 0;
    width: 58px;
    height: 58px;
    background: rgba(255, 200, 120, 0.76);
}

.ks-reg-card {
    width: min(420px, 100%);
}

.ks-reg-head h1 {
    margin: 0;
    color: var(--ks-reg-ink);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
}

.ks-reg-head p {
    margin: 10px 0 0;
    color: var(--ks-reg-muted);
    font-size: 14px;
}

.ks-reg-head a {
    color: var(--ks-reg-brand-dark);
    font-weight: 700;
    text-decoration: none;
}

.ks-reg-single-tab {
    margin: 22px 0 18px;
    padding: 4px;
    border-radius: 14px;
    background: #fbf3e6;
}

.ks-reg-tab-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--ks-reg-ink);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.ks-reg-tab-current span {
    font-size: 14px;
    font-weight: 800;
}

.ks-reg-tab-current em {
    color: var(--ks-reg-brand-dark);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.ks-reg-scan-card {
    display: grid;
    gap: 0;
    padding: 22px 18px 18px;
    border: 1px solid var(--ks-reg-line);
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdfa, #ffffff);
}

.ks-reg-scan-title {
    margin-bottom: 14px;
    color: #5c3205;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.ks-reg-scan-qr.auth-qr-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    max-width: none;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--ks-reg-line);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff5e4, #fffdf6);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ks-reg-scan-qr.auth-qr-box:hover {
    border-color: #f4c067;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08);
}

.ks-reg-scan-qr.auth-qr-box::before {
    content: "二维码加载中...";
    position: absolute;
    inset: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--ks-reg-muted);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.ks-reg-scan-qr.auth-qr-box img {
    position: relative;
    z-index: 1;
    display: block;
    width: 184px;
    height: 184px;
    object-fit: contain;
    background: #ffffff;
}

.ks-reg-scan-qr.auth-qr-box img:not([src]),
.ks-reg-scan-qr.auth-qr-box img[src=""] {
    opacity: 0;
}

.ks-reg-scan-hint {
    margin-top: 10px;
    color: var(--ks-reg-muted);
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

.ks-reg-scan-status {
    min-height: 20px;
    margin-top: 14px;
    color: var(--ks-reg-brand-dark);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.ks-reg-scan-actions {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.ks-reg-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--ks-reg-line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--ks-reg-ink);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ks-reg-secondary-btn:hover {
    border-color: #f4c067;
    color: var(--ks-reg-brand-dark);
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.10);
}

.ks-reg-footnote {
    margin-top: 14px;
    color: var(--ks-reg-muted);
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

.member-register-auth .auth-qr-mask {
    z-index: 2;
    border-radius: 18px;
}

@media (max-width: 900px) {
    .member-register-auth .auth-panel {
        grid-template-columns: 1fr;
    }

    .member-register-auth .auth-main {
        display: none;
    }

    .member-register-auth .auth-side {
        min-height: 100vh;
        padding: 24px 18px;
    }
}

@media (max-width: 560px) {
    .ks-reg-head h1 {
        font-size: 24px;
    }

    .ks-reg-scan-qr.auth-qr-box {
        width: 100%;
        height: auto;
        min-height: 214px;
        padding: 14px;
    }

    .ks-reg-scan-qr.auth-qr-box img {
        width: 184px;
        height: 184px;
    }
}
