﻿@charset "utf-8";

/* ========= 原有样式保持不变 ========= */

/* slot header 优化样式 */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 60px;
    backdrop-filter: blur(4px);
    animation: fadeInScale 0.5s ease;
}

.header-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
    animation: iconBounce 2s ease-in-out infinite;
}

    .header-icon:first-child {
        animation-delay: 0s;
    }

    .header-icon:last-child {
        animation-delay: 0.3s;
    }

.header-text {
    text-align: center;
}

.header-main {
    display: block;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e2b3c 0%, #2c4c6c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    position: relative;
}

.header-sub {
    display: block;
    font-size: 9px;
    letter-spacing: 2px;
    color: #8b9bb0;
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
}

/* 底部装饰线 */
.header-main::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
    border-radius: 2px;
    animation: lineExpand 0.6s ease-out;
}

/* 动画 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes lineExpand {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 50px;
        opacity: 1;
    }
}

/* 悬停效果 */
.header-content:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

    .header-content:hover .header-icon {
        animation: iconShake 0.5s ease;
    }

@keyframes iconShake {
    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-10deg);
    }
}

/* ========= 整体页面背景美化（不触碰 Element 样式） ========= */

/* 页面主体背景 */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

    /* 动态网格粒子背景 */
    body::before {
        content: '';
        position: absolute;
        width: 200%;
        height: 200%;
        top: -50%;
        left: -50%;
        background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
        background-size: 40px 40px;
        animation: particleMove 60s linear infinite;
        pointer-events: none;
    }

    /* 光晕装饰 - 右上角 */
    body::after {
        content: '';
        position: absolute;
        width: 500px;
        height: 500px;
        top: -150px;
        right: -150px;
        background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%);
        border-radius: 50%;
        pointer-events: none;
        animation: glowPulse 8s ease-in-out infinite;
    }

/* 左下角光晕 */
.bg-decoration-left {
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: glowPulse 10s ease-in-out infinite reverse;
    z-index: 0;
}

/* 右上角点阵装饰 */
.bg-dots {
    position: absolute;
    top: 15%;
    right: 8%;
    width: 250px;
    height: 250px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.25) 2px, transparent 2px);
    background-size: 25px 25px;
    pointer-events: none;
    animation: floatRotate 25s linear infinite;
    z-index: 0;
}

/* ========= 登录卡片美化（只改外层框） ========= */

.login-container {
    background: transparent;
    position: relative;
    z-index: 2;
}

/* 卡片外框 - 只加大圆角，不触碰内部输入框 */
.login-box {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

    .login-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.35);
    }

/* 左侧区域装饰（不触碰内部样式） */
.login-left {
    position: relative;
    overflow: hidden;
}

    .login-left::before {
        content: '🐂';
        position: absolute;
        bottom: 20px;
        right: 20px;
        font-size: 100px;
        opacity: 0.12;
        animation: floatSlow 8s ease-in-out infinite;
        pointer-events: none;
    }

    .login-left::after {
        content: '🔪';
        position: absolute;
        top: 20px;
        left: 20px;
        font-size: 80px;
        opacity: 0.12;
        animation: floatSlow 10s ease-in-out infinite reverse;
        pointer-events: none;
    }

/* 右侧区域 - 只调内边距，不碰输入框 */
.login-right {
    padding: 48px 56px;
}

/* ========= 注意：不覆盖任何 Element UI 的 .el-input 相关样式 ========= */
/* 您的 Element CSS 定义会保持原样，这里不做任何修改 */

/* ========= 动画定义 ========= */

@keyframes particleMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, 40px);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.08);
    }
}

@keyframes floatRotate {
    0% {
        transform: rotate(0deg) translate(0, 0);
    }

    100% {
        transform: rotate(360deg) translate(20px, 20px);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-12px, -12px);
    }
}

/* ========= 响应式适配 ========= */

@media screen and (max-width: 768px) {
    .login-right {
        padding: 32px 24px;
    }

    .header-main {
        font-size: 16px;
    }

    .header-icon {
        font-size: 24px;
    }

    body::after {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -100px;
    }

    .bg-dots {
        width: 150px;
        height: 150px;
        background-size: 15px 15px;
    }
}
