:root {
    --deep-blue-1: #0f0c29;
    --deep-blue-2: #302b63;
    --deep-blue-3: #24243e;
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.72);
    --wechat: #16c45b;
}

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

[hidden] {
    display: none !important;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, var(--deep-blue-1), var(--deep-blue-2), var(--deep-blue-3));
    color: var(--text-primary);
    overflow: hidden;
}

#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    pointer-events: none;
}

.js-badge {
    position: fixed;
    top: 18px;
    right: 24px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    letter-spacing: 1px;
    z-index: 5;
}

.container {
    position: relative;
    width: 75vw;
    height: 85vh;
    max-width: 1200px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    overflow: hidden;
    display: flex;
    z-index: 1;
}

.container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    transition: transform 0.6s ease, opacity 0.6s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

form {
    width: 100%;
    max-width: 520px;
    padding: 0 72px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand {
    font-size: 13px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-muted);
}

h1 {
    font-size: 40px;
    font-weight: 300;
}

h2 {
    font-size: 28px;
    font-weight: 300;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.action-btn {
    padding: 14px 28px;
    border-radius: 22px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #101024;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.ghost {
    padding: 11px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ghost.small {
    padding: 13px 18px;
    border-radius: 16px;
    font-size: 12px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.link-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 14px;
    margin-left: 6px;
    text-decoration: underline;
}

.switch-hint {
    font-size: 13px;
    color: var(--text-muted);
}

.wechat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 16px;
    border: none;
    background: var(--wechat);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(22, 196, 91, 0.3);
}

.wechat-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    position: relative;
}

.wechat-icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wechat);
    top: 5px;
    left: 5px;
}

.split-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.split-row input {
    flex: 1;
}

.sign-in-container {
    left: 0;
    z-index: 2;
}

.sign-up-container {
    left: 0;
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
    opacity: 0;
}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease;
    z-index: 3;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    background: rgba(10, 12, 30, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(26px) saturate(130%);
    -webkit-backdrop-filter: blur(26px) saturate(130%);
    display: flex;
    transition: transform 0.6s ease;
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 60px;
    gap: 16px;
}

.overlay-panel p {
    color: var(--text-muted);
    font-size: 14px;
}

.overlay-left {
    transform: translateX(-20%);
    transition: transform 0.6s ease;
}

.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    transform: translateX(0);
    transition: transform 0.6s ease;
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

.dashboard {
    position: relative;
    width: min(1200px, 92vw);
    max-height: 88vh;
    overflow: auto;
    padding: 40px 48px 60px;
    border-radius: 28px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(26px) saturate(140%);
    -webkit-backdrop-filter: blur(26px) saturate(140%);
    z-index: 2;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-actions {
    display: flex;
    gap: 12px;
}

.feature-group {
    margin-bottom: 28px;
}

.feature-group h2 {
    margin-bottom: 16px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.module-card {
    position: relative;
    padding: 22px;
    min-height: 220px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.module-card h3 {
    font-size: 18px;
    font-weight: 500;
}

.module-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.module-card li {
    position: relative;
    padding-left: 14px;
}

.module-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
}

.module-tag {
    align-self: flex-start;
    font-size: 11px;
    letter-spacing: 2px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

.module-tag.core {
    background: rgba(90, 127, 255, 0.25);
}

.module-tag.advanced {
    background: rgba(255, 179, 67, 0.28);
}

.module-tag.alert {
    background: rgba(255, 92, 92, 0.28);
}

@media (max-width: 960px) {
    body {
        padding: 20px 0;
    }

    .container {
        width: 92vw;
        height: auto;
        min-height: 82vh;
        flex-direction: column;
    }

    .form-container,
    .overlay-container {
        position: relative;
        width: 100%;
        height: auto;
    }

    .overlay {
        left: 0;
        width: 100%;
        height: auto;
        flex-direction: column;
    }

    .overlay-panel {
        width: 100%;
        padding: 40px 28px;
    }

    form {
        padding: 40px 32px;
    }

    .container.right-panel-active .sign-in-container,
    .container.right-panel-active .sign-up-container {
        transform: translateX(0);
    }

    .overlay-container {
        transform: none !important;
    }

    .dashboard {
        padding: 32px 24px 48px;
    }

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