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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    font-family: "Microsoft YaHei", "等线", sans-serif;
    /* 个性化背景：紫色系渐变 + 柔和光晕 */
    background:
        radial-gradient(circle at 20% 20%, rgba(167, 139, 250, 0.35), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.35), transparent 50%),
        linear-gradient(135deg, #312e81 0%, #4c1d95 50%, #1e1b4b 100%);
}

/* ===== 顶部标题 ===== */
.hero {
    text-align: center;
}

.hero-title {
    font-size: 36px;
    letter-spacing: 3px;
    margin-bottom: 10px;
    /* 渐变文字 */
    background: linear-gradient(90deg, #a5b4fc, #c4b5fd, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 14px;
    color: #c7d2fe;
    letter-spacing: 2px;
}

/* ===== 登录卡片：左右两栏 ===== */
.login-container {
    display: flex;
    width: 800px;
    min-height: 460px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

/* ===== 左侧品牌区 ===== */
.brand-panel {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-logo {
    font-size: 48px;
    margin-bottom: 18px;
}

.brand-title {
    font-size: 28px;
    margin-bottom: 12px;
}

.brand-slogan {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 40px;
}

.brand-features {
    list-style: none;
}

.brand-features li {
    font-size: 15px;
    margin-bottom: 16px;
    opacity: 0.92;
}

/* ===== 右侧登录表单区 ===== */
.login-panel {
    flex: 1;
    /* 用主题变量：暗色模式下登录卡片自动变深，视觉统一 */
    background: var(--bg-card);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-title {
    font-size: 24px;
    color: var(--text-title);
    margin-bottom: 8px;
}

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

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-size: 14px;
    color: var(--text-body);
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    height: 45px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    background: var(--bg-card);
    color: var(--text-title);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.field input:focus {
    border-color: var(--brand-1);
    box-shadow: var(--focus-ring);
}

.error-tip {
    min-height: 18px;
    font-size: 13px;
    color: #e53e3e;
    margin-top: 4px;
}

.login-btn {
    width: 100%;
    height: 45px;
    background: var(--brand-grad);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.1s;
    margin-top: 6px;
}

.login-btn:hover {
    opacity: 0.9;
}

.login-btn:active {
    transform: translateY(2px);
}

.login-footer {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 22px;
}

/* ===== 点击气泡 ===== */
.bubble {
    position: fixed;
    z-index: 999;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle at 30% 30%, rgba(196, 181, 253, 0.7), rgba(118, 75, 162, 0.4));
    animation: bubbleUp 0.9s ease-out forwards;
}

@keyframes bubbleUp {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.9;
    }
    100% {
        transform: translate(var(--tx), -90px) scale(0.2);
        opacity: 0;
    }
}

/* ============================================================
   响应式适配
   登录卡片固定 800px 宽，窄屏会横向溢出，做两级降级：
   ≤860px  左右两栏 → 上下堆叠（品牌区在上、表单在下）
   ≤480px  内边距收紧、标题缩小
   ============================================================ */
@media (max-width: 860px) {
    .login-container {
        flex-direction: column;   /* 两栏变上下 */
        width: 90vw;              /* 固定宽 → 自适应 */
        min-height: 0;            /* 堆叠后不再需要最小高度 */
        max-height: 90vh;         /* 内容超高时配合滚动 */
        overflow-y: auto;
    }
    .brand-panel { padding: 32px 28px; }
    .brand-slogan { margin-bottom: 20px; }
    .login-panel { padding: 32px 28px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 26px; }
    .brand-title { font-size: 22px; }
    .login-panel { padding: 26px 20px; }
}
