body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #0a0e1a;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(20, 60, 120, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(100, 40, 200, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 200, 255, 0.08) 0%, transparent 40%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
}

/* 动态网格背景 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 200, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.main-body {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

.login-main {
    width: 420px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 200, 255, 0.2),
        0 0 30px rgba(0, 200, 255, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

/* 顶部标题区域 */
.login-main .login-top {
    height: 120px;
    background: linear-gradient(135deg, #1a1f3a 0%, #0d1b3e 50%, #0a1628 100%);
    border-radius: 20px 20px 0 0;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(0, 200, 255, 0.3);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 200, 255, 0.5);
}

.login-main .login-top .bg1 {
    display: block;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.1), rgba(100, 50, 255, 0.1));
    border-radius: 50%;
    position: absolute;
    left: -60px;
    top: -80px;
    animation: float1 6s ease-in-out infinite;
}

.login-main .login-top .bg2 {
    display: block;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(255, 100, 200, 0.08), rgba(0, 200, 255, 0.08));
    border-radius: 50%;
    position: absolute;
    right: -30px;
    bottom: -60px;
    animation: float2 8s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 10px) scale(1.1); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15px, -10px) scale(1.05); }
}

/* 表单区域 */
.login-main .login-bottom {
    width: 420px;
    background: rgba(15, 20, 40, 0.95);
    border-radius: 0 0 20px 20px;
    padding-bottom: 40px;
}

.login-main .login-bottom .center {
    width: 320px;
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 10px;
    position: relative;
}

.login-main .login-bottom .center .item {
    width: 320px;
    height: 48px;
    margin-bottom: 24px;
    border: 1.5px solid rgba(0, 200, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 200, 255, 0.03);
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.login-main .login-bottom .center .item:focus-within {
    border-color: rgba(0, 200, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.15);
    background: rgba(0, 200, 255, 0.05);
}

.login-main .login-bottom .center .item .icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.login-main .login-bottom .center .item .icon-2 {
    background: none;
    position: relative;
}
.login-main .login-bottom .center .item .icon-2::after {
    content: '';
    font-size: 16px;
}

.login-main .login-bottom .center .item .icon-3 {
    background: none;
    position: relative;
}
.login-main .login-bottom .center .item .icon-3::after {
    content: '';
    font-size: 16px;
}

.login-main .login-bottom .center .item .icon-4 {
    background: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 20px;
    height: 20px;
}
.login-main .login-bottom .center .item .icon-4::after {
    content: '';
    font-size: 14px;
}

.login-main .login-bottom .center .item input {
    display: inline-block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 14px;
    letter-spacing: 0.5px;
    background: transparent;
    color: #e0e8f0;
    position: static;
}

.login-main .login-bottom .center .item input::placeholder {
    color: rgba(160, 180, 200, 0.5);
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 20, 40, 0.95) inset !important;
    -webkit-text-fill-color: #e0e8f0 !important;
}

/* 验证码 */
.login-main .login-bottom .center .item .validateImg {
    position: absolute;
    right: 8px;
    cursor: pointer;
    height: 36px;
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 6px;
}

/* 保持登录 & 忘记密码 */
.login-main .login-bottom .tip {
    clear: both;
    height: 16px;
    line-height: 16px;
    width: 320px;
    margin: 0 auto;
    padding-bottom: 8px;
}

.login-main .login-bottom .tip .icon-nocheck {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1.5px solid rgba(0, 200, 255, 0.4);
    position: relative;
    top: 3px;
    margin: 0 8px 0 0;
    cursor: pointer;
    background: transparent;
}

.login-main .login-bottom .tip .icon-check {
    margin: 0 7px 0 0;
    width: 14px;
    height: 14px;
    border: none;
    background: rgba(0, 200, 255, 0.6);
    border-radius: 4px;
}

.login-main .login-bottom .tip .login-tip {
    font-size: 12px;
    color: rgba(160, 180, 200, 0.6);
    cursor: pointer;
}

.login-main .login-bottom .tip .forget-password {
    color: rgba(0, 200, 255, 0.7);
    text-decoration: none;
    position: absolute;
    right: 50px;
    font-size: 12px;
    transition: color 0.3s;
}

.login-main .login-bottom .tip .forget-password:hover {
    color: rgba(0, 200, 255, 1);
}

/* 登录按钮 */
.login-main .login-bottom .login-btn {
    width: 320px;
    height: 48px;
    background: linear-gradient(135deg, #00c8ff 0%, #0080ff 50%, #6040ff 100%);
    border-radius: 12px;
    margin: 20px auto 0;
    text-align: center;
    line-height: 48px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 150, 255, 0.3);
}

.login-main .login-bottom .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 150, 255, 0.4);
}

.login-main .login-bottom .login-btn:active {
    transform: translateY(0);
}

.login-main .login-bottom .login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.login-main .login-bottom .login-btn:hover::before {
    left: 100%;
}

/* Demo 提示 */
.demo {
    padding-top: 12px;
    text-align: center;
    color: rgba(0, 200, 255, 0.5) !important;
    font-size: 12px;
    letter-spacing: 1px;
}

/* 底部版权 */
.footer {
    left: 0;
    bottom: 0;
    color: rgba(160, 180, 200, 0.4);
    width: 100%;
    position: absolute;
    text-align: center;
    line-height: 30px;
    padding-bottom: 16px;
    font-size: 12px;
}

.footer a, .footer span {
    color: rgba(160, 180, 200, 0.4);
    transition: color 0.3s;
}

.footer a:hover {
    color: rgba(0, 200, 255, 0.7);
}

.padding-5 {
    padding: 0 8px !important;
}

/* 响应式 */
@media screen and (max-width: 460px) {
    .login-main {
        width: 340px !important;
    }
    .login-main .login-bottom {
        width: 340px !important;
    }
    .login-main .login-bottom .center {
        width: 280px;
    }
    .login-main .login-bottom .center .item {
        width: 280px;
    }
    .login-main .login-bottom .login-btn {
        width: 280px;
    }
    .login-main .login-bottom .tip {
        width: 280px;
    }
}
