/* ========================
   Canvas 背景
   ======================== */
#musicCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: linear-gradient(135deg, #0f0c29, #1a1035, #1a0a2e);
    background: radial-gradient(ellipse at 20% 50%, #1a1040 0%, #0d0820 40%, #0a0518 100%);
}

body {
    margin: 0;
    padding: 0;
    min-width: 1024px;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* ========================
   登录框容器
   ======================== */
.login_wrap {
    position: fixed;
    top: 0;
    right: 0;
    width: 520px;
    height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(15,12,41,0.92) 0%,
        rgba(26,16,53,0.88) 50%,
        rgba(20,12,40,0.94) 100%);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(167,139,250,0.15);
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}

.login-box {
    position: relative;
    width: 380px;
    padding: 40px 36px 30px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(167,139,250,0.2);
    box-shadow:
        0 0 40px rgba(139,92,246,0.08),
        inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
}

/* 背景光晕 */
.login-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(167,139,250,0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(244,114,182,0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* 音符装饰 */
.note-decor {
    position: absolute;
    font-size: 36px;
    opacity: 0.08;
    pointer-events: none;
    animation: noteFloat 6s ease-in-out infinite;
}
.note-1 { top: 15px; right: 25px; font-size: 42px; animation-delay: 0s; }
.note-2 { bottom: 80px; left: 20px; font-size: 30px; animation-delay: 2s; }
.note-3 { top: 35%; right: 15px; font-size: 28px; animation-delay: 4s; }
.note-4 { bottom: 25px; right: 35px; font-size: 34px; animation-delay: 1s; }

@keyframes noteFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.06; }
    25% { transform: translateY(-10px) rotate(5deg); opacity: 0.12; }
    50% { transform: translateY(-5px) rotate(-3deg); opacity: 0.08; }
    75% { transform: translateY(-15px) rotate(2deg); opacity: 0.11; }
}

/* ========================
   登录框头部
   ======================== */
.login-box-header {
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #e2d4f0;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}
.header-icon {
    font-size: 40px;
    margin-bottom: 8px;
    display: block;
    animation: iconPulse 2s ease-in-out infinite;
}
@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* ========================
   输入框区域
   ======================== */
.login-box-body {
    position: relative;
    z-index: 1;
}
.input-icon-wrap {
    position: relative;
    margin-bottom: 24px;
}
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.6;
    z-index: 2;
    pointer-events: none;
    filter: grayscale(0);
}

.input-icon-wrap .layui-input {
    height: 46px;
    padding-left: 42px !important;
    padding-right: 14px;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(167,139,250,0.2) !important;
    border-radius: 10px !important;
    color: #e2d4f0 !important;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}
.input-icon-wrap .layui-input::placeholder {
    color: rgba(226,212,240,0.35);
}
.input-icon-wrap .layui-input:focus {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(167,139,250,0.6) !important;
    box-shadow: 0 0 20px rgba(139,92,246,0.15), 0 0 0 3px rgba(139,92,246,0.05) !important;
}

/* 验证码特殊样式 */
.captcha-wrap .layui-input {
    padding-right: 110px !important;
}
#captcha_img {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    height: 38px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid rgba(167,139,250,0.2);
    transition: border-color 0.3s;
}
#captcha_img:hover {
    border-color: rgba(167,139,250,0.5);
}

/* ========================
   登录按钮
   ======================== */
.login-box-footer {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.loginBtn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100% !important;
    height: 48px !important;
    line-height: 48px !important;
    font-size: 16px !important;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 12px !important;
    border: none !important;
    background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.loginBtn:hover {
    background: linear-gradient(135deg, #8b5cf6, #c084fc) !important;
    box-shadow: 0 8px 30px rgba(139,92,246,0.4);
    transform: translateY(-2px);
}
.loginBtn:active {
    transform: translateY(0);
}
.loginBtn .btn-icon {
    font-size: 18px;
    animation: iconBounce 1s ease-in-out infinite;
}
@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ========================
   底部版权
   ======================== */
.copyright {
    margin-top: 30px;
    text-align: center;
    color: rgba(226,212,240,0.3);
    font-size: 12px;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* ========================
   响应式 — 移动端
   ======================== */
@media screen and (max-width: 768px) {
    body {
        min-width: 320px;
    }
    .login_wrap {
        width: 100%;
        background: rgba(15,12,41,0.8);
    }
    .login-box {
        width: 85%;
        padding: 30px 24px 24px;
    }
}

@media screen and (max-width: 480px) {
    .login-box {
        width: 92%;
        padding: 24px 18px 20px;
        border-radius: 16px;
    }
    .login-box-header {
        font-size: 18px;
    }
}
