* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-top: #8cb6c7;
    --bg-bottom: #739eb3;
    --text-primary: #223140;
    --text-secondary: #647688;
    --text-muted: #95a5b5;
    --accent: #3168c8;
    --accent-soft: rgba(49, 104, 200, 0.10);
    --wechat: #39b96d;
    --shadow-xl: 0 30px 70px rgba(25, 42, 58, 0.18);
    --shadow-lg: 0 18px 40px rgba(26, 44, 61, 0.10);
    --shadow-md: 0 12px 28px rgba(32, 49, 66, 0.08);
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Avenir Next', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.26), transparent 26%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.login-container {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 28px 126px;
}

.login-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.login-box {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.82fr);
    min-height: 690px;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 32px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.illustration {
    position: relative;
    overflow: hidden;
    min-height: 690px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.82), transparent 32%),
        linear-gradient(180deg, rgba(232, 240, 247, 0.98), rgba(212, 226, 236, 0.94));
}

.illustration-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(129, 153, 175, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129, 153, 175, 0.10) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(255,255,255,0.55), transparent 82%);
    z-index: 1;
}

.illustration-orb,
.illustration-wire,
.illustration-stage {
    position: absolute;
    z-index: 1;
}

.illustration-orb {
    border-radius: 50%;
}

.orb-a {
    width: 220px;
    height: 220px;
    top: 78px;
    left: 58px;
    background: radial-gradient(circle, rgba(255,255,255,0.86), rgba(255,255,255,0.08) 72%);
    opacity: 0.72;
}

.orb-b {
    width: 320px;
    height: 320px;
    right: 48px;
    top: 110px;
    background: radial-gradient(circle, rgba(151, 176, 196, 0.34), rgba(151, 176, 196, 0.08) 72%);
}

.orb-c {
    width: 144px;
    height: 144px;
    right: 116px;
    bottom: 112px;
    background: radial-gradient(circle, rgba(255,255,255,0.78), rgba(255,255,255,0.06) 72%);
}

.illustration-wire {
    border: 1px solid rgba(134, 157, 177, 0.26);
    border-radius: 999px;
}

.wire-a {
    width: 132px;
    height: 132px;
    right: 78px;
    top: 88px;
}

.wire-b {
    width: 84px;
    height: 84px;
    left: 96px;
    bottom: 166px;
}

.illustration-stage {
    left: 72px;
    right: 72px;
    top: 104px;
    bottom: 182px;
}

.stage-backdrop {
    position: absolute;
    inset: 28px 54px 42px;
    border-radius: 42px;
    background: linear-gradient(180deg, rgba(171, 195, 213, 0.40), rgba(140, 166, 187, 0.20));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.32);
}

.stage-arch {
    position: absolute;
    right: 6px;
    bottom: 40px;
    width: 220px;
    height: 312px;
    border-radius: 220px 220px 0 0;
    background:
        repeating-linear-gradient(90deg, rgba(118, 143, 165, 0.14) 0 4px, rgba(255,255,255,0.26) 4px 10px),
        linear-gradient(180deg, rgba(255,255,255,0.74), rgba(219,230,238,0.84));
    border: 1px solid rgba(137, 159, 180, 0.18);
}

.stage-column {
    position: absolute;
    left: 32px;
    bottom: 46px;
    width: 146px;
    height: 244px;
    border-radius: 999px 999px 0 0;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.14) 0 3px, rgba(120, 146, 170, 0.12) 3px 8px),
        linear-gradient(180deg, rgba(196, 214, 228, 0.70), rgba(171, 193, 211, 0.36));
    border: 1px solid rgba(137, 159, 180, 0.16);
}

.stage-disc {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 18px 30px rgba(94, 123, 149, 0.08);
}

.disc-large {
    width: 228px;
    height: 228px;
    left: 168px;
    top: 56px;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.92), rgba(149, 173, 194, 0.78));
}

.disc-small {
    width: 126px;
    height: 126px;
    left: 108px;
    bottom: 56px;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.94), rgba(176, 198, 216, 0.72));
}

.stage-card {
    position: absolute;
    left: 50%;
    top: 54%;
    width: 178px;
    height: 220px;
    border-radius: 28px;
    transform: translate(-50%, -50%) rotate(-4deg);
    background: linear-gradient(180deg, rgba(253,255,255,0.96), rgba(226,236,243,0.92));
    border: 1px solid rgba(141, 164, 183, 0.22);
    box-shadow:
        0 24px 40px rgba(97, 123, 148, 0.14),
        inset 0 1px 0 rgba(255,255,255,0.78);
}

.stage-card::before {
    content: '';
    position: absolute;
    inset: 16px;
    border-radius: 20px;
    border: 1px solid rgba(145, 168, 187, 0.14);
}

.stage-card-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 92px;
    height: 92px;
    border-radius: 24px;
    background: linear-gradient(180deg, #111822, #1f2a38);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Songti SC', 'Noto Serif SC', serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 12px 24px rgba(27, 39, 54, 0.16);
}

.illustration-content {
    position: absolute;
    left: 44px;
    right: 44px;
    bottom: 44px;
    z-index: 2;
    color: #314454;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.60);
    border: 1px solid rgba(255, 255, 255, 0.66);
    color: #5a758f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.hero-title {
    margin-top: 18px;
    max-width: 460px;
    font-family: 'Songti SC', 'Noto Serif SC', 'STSong', serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: 0.02em;
    color: #304251;
}

.hero-desc {
    margin-top: 14px;
    max-width: 420px;
    line-height: 1.8;
    font-size: 14px;
    color: #6d7f90;
}

.login-form {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    padding: 34px 38px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-kicker {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.login-type-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(61, 187, 114, 0.08);
    border: 1px solid rgba(61, 187, 114, 0.12);
    white-space: nowrap;
}

.switch-text {
    font-size: 13px;
    color: var(--wechat);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.switch-text::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml,<svg t="1709799372044" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M690.1 377.4c5.9 0 11.8 0.2 17.6 0.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6 5.5 3.9 9.1 10.3 9.1 17.6 0 2.4-0.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-0.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-0.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4 0.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-0.1 17.8-0.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8z m-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1z m-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1z" fill="%233dbb72"/><path d="M866.7 792.7c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-0.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34.1c1.7 1 3.3 1.7 5.2 1.7 5 0 9-4.1 9-9.1 0-2.2-0.8-4.3-1.4-6.6-3.8-14.1-8.9-33-12.2-45.3-0.5-1.9-0.9-3.8-0.9-5.7 0.1-6.1 3-11.4 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9z m179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c-0.1 19.8-16.2 35.9-36 35.9z" fill="%233dbb72"/></svg>') no-repeat center/contain;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background-color: #cfd8e4;
    transition: .3s ease;
    border-radius: 20px;
}

.slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s ease;
    border-radius: 50%;
    box-shadow: 0 1px 5px rgba(31, 45, 61, 0.22);
}

input:checked + .slider {
    background-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.login-main {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.login-auth {
    padding-top: 2px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-desc {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

#signupForm,
#wechatLogin {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 16px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #d9e3ec;
    border-radius: 14px;
    font-size: 14px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.92);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: rgba(47, 103, 199, 0.46);
    box-shadow: 0 0 0 4px rgba(47, 103, 199, 0.08);
    background: #fff;
}

input::-webkit-input-placeholder {
    color: #9aa9b8;
}

.captcha-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.captcha-group input {
    flex: 1;
}

.captcha {
    width: 122px;
    height: 50px;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid #d9e3ec;
    background: rgba(255, 255, 255, 0.86);
    overflow: hidden;
}

.captcha a,
.captcha img {
    display: block;
    width: 100%;
    height: 100%;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 18px;
    color: var(--text-secondary);
    font-size: 13px;
}

button {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #243140 0%, #314a66 100%);
    box-shadow: 0 14px 28px rgba(31, 45, 61, 0.16);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(31, 45, 61, 0.20);
}

.wechat-login-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px 0 2px;
}

.wechat-login-label {
    color: var(--wechat);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.wechat-login-code {
    width: 230px;
    height: 230px;
    padding: 8px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(30, 57, 81, 0.08);
    box-shadow: 0 6px 18px rgba(34, 54, 74, 0.06);
    object-fit: contain;
}

.wechat-login-tip {
    color: var(--wechat);
    font-size: 14px;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wechat-login-tip::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg t="1709799372044" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M690.1 377.4c5.9 0 11.8 0.2 17.6 0.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6 5.5 3.9 9.1 10.3 9.1 17.6 0 2.4-0.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-0.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-0.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4 0.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-0.1 17.8-0.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8z m-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1z m-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1z" fill="%233dbb72"/><path d="M866.7 792.7c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-0.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34.1c1.7 1 3.3 1.7 5.2 1.7 5 0 9-4.1 9-9.1 0-2.2-0.8-4.3-1.4-6.6-3.8-14.1-8.9-33-12.2-45.3-0.5-1.9-0.9-3.8-0.9-5.7 0.1-6.1 3-11.4 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9z m179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c-0.1 19.8-16.2 35.9-36 35.9z" fill="%233dbb72"/></svg>') no-repeat center/contain;
}

.footer {
    position: relative;
    z-index: 2;
    margin-top: 28px;
    text-align: center;
    color: rgba(31, 45, 61, 0.82);
    font-size: 13px;
    font-weight: 600;
}

.footer-separator {
    margin: 0 10px;
    opacity: 0.48;
}

.decorative-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 220px;
    background: url('../img/floor_image.png') repeat-x bottom center;
    background-size: auto 190px;
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
}

.background-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(6px);
    z-index: 0;
    pointer-events: none;
}

.orb-left {
    width: 420px;
    height: 420px;
    left: -140px;
    top: 60px;
    background: radial-gradient(circle, rgba(255,255,255,0.24), transparent 72%);
}

.orb-right {
    width: 340px;
    height: 340px;
    right: -80px;
    bottom: 180px;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 72%);
}

.background-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(180deg, rgba(255,255,255,0.26), transparent 82%);
    pointer-events: none;
    z-index: 0;
}

.background-noise {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.18) 0.7px, transparent 0.7px);
    background-size: 8px 8px;
    opacity: 0.12;
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 1100px) {
    .login-box {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .illustration {
        min-height: 420px;
    }

    .illustration-stage {
        left: 48px;
        right: 48px;
        top: 92px;
        bottom: 150px;
    }

    .login-form {
        padding: 32px 28px 30px;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 20px 16px 100px;
    }

    .illustration {
        display: none;
    }

    .login-box {
        border-radius: 24px;
        background: rgba(255,255,255,0.66);
    }

    .login-form {
        padding: 24px 20px;
    }

    .form-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-main {
        gap: 0;
    }

    .wechat-login-code {
        width: 208px;
        height: 208px;
    }
}
