html,body{height:100%;margin:0;padding:0;}
body{
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
}

/* 整体背景 - 绿黑简约 */
.layadmin-user-login{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    padding-right:12%;
    position:relative;
    overflow:hidden;
    background:#0a0a0a;
}

/* 左侧绿色光效 */
.layadmin-user-login::before{
    content:'';
    position:absolute;
    left:-10%;
    top:-20%;
    width:60%;
    height:140%;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(34,197,94,.12) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(34,197,94,.08) 0%, transparent 50%);
    pointer-events:none;
    z-index:0;
}

/* 左侧动态粒子线条 */
.particles-bg{
    position:absolute;
    left:0;
    top:0;
    width:55%;
    height:100%;
    overflow:hidden;
    pointer-events:none;
    z-index:0;
}

.particle-line{
    position:absolute;
    width:2px;
    background:linear-gradient(to bottom, transparent, rgba(34,197,94,.5), rgba(74,222,128,.4), transparent);
    animation:particleFloat 8s ease-in-out infinite;
    filter:drop-shadow(0 0 4px rgba(34,197,94,.3));
}

.particle-line:nth-child(1){left:8%;height:140px;top:-140px;animation-delay:0s;animation-duration:7s;}
.particle-line:nth-child(2){left:18%;height:200px;top:-200px;animation-delay:1s;animation-duration:9s;}
.particle-line:nth-child(3){left:28%;height:120px;top:-120px;animation-delay:2s;animation-duration:6s;}
.particle-line:nth-child(4){left:38%;height:180px;top:-180px;animation-delay:3s;animation-duration:8s;}
.particle-line:nth-child(5){left:12%;height:160px;top:-160px;animation-delay:4s;animation-duration:7s;}
.particle-line:nth-child(6){left:22%;height:220px;top:-220px;animation-delay:5s;animation-duration:9s;}
.particle-line:nth-child(7){left:32%;height:100px;top:-100px;animation-delay:6s;animation-duration:6s;}
.particle-line:nth-child(8){left:42%;height:190px;top:-190px;animation-delay:2.5s;animation-duration:8s;}
.particle-line:nth-child(9){left:15%;height:170px;top:-170px;animation-delay:1.5s;animation-duration:10s;}
.particle-line:nth-child(10){left:35%;height:130px;top:-130px;animation-delay:3.5s;animation-duration:7s;}

@keyframes particleFloat{
    0%{transform:translateY(0);opacity:0;}
    10%{opacity:1;}
    90%{opacity:1;}
    100%{transform:translateY(calc(100vh + 300px));opacity:0;}
}

/* 左侧扫描线效果 */
.scan-line{
    position:absolute;
    left:0;
    top:0;
    width:55%;
    height:100%;
    pointer-events:none;
    z-index:0;
    overflow:hidden;
}

.scan-line::after{
    content:'';
    position:absolute;
    left:0;
    top:-100%;
    width:100%;
    height:3px;
    background:linear-gradient(90deg, transparent, rgba(34,197,94,.35), rgba(74,222,128,.25), transparent);
    animation:scanMove 5s ease-in-out infinite;
    filter:drop-shadow(0 0 6px rgba(34,197,94,.3));
}

@keyframes scanMove{
    0%{top:-10%;opacity:0;}
    10%{opacity:1;}
    90%{opacity:1;}
    100%{top:110%;opacity:0;}
}

/* 登录卡片 */
.login-card{
    z-index:1;
    width:720px;
    display:flex;
    background:#fff;
    border-radius:16px;
    box-shadow:0 16px 48px rgba(0,0,0,.4);
    animation:fadeUp .5s ease-out;
    overflow:hidden;
    position:relative;
}

/* 卡片左侧绿色光效 */
.login-card::before{
    content:'';
    position:absolute;
    left:0;
    top:0;
    width:5px;
    height:100%;
    background:linear-gradient(to bottom, transparent, #22c55e, #4ade80, #86efac, #4ade80, #22c55e, transparent);
    animation:cardGlow 2.5s ease-in-out infinite;
    filter:drop-shadow(0 0 6px rgba(34,197,94,.5));
}

@keyframes cardGlow{
    0%,100%{opacity:.7;}
    50%{opacity:1;}
}

/* 卡片左侧旋转圆点 */
.login-card::after{
    content:'';
    position:absolute;
    left:10px;
    top:50%;
    transform:translateY(-50%);
    width:12px;
    height:12px;
    background:#22c55e;
    border-radius:50%;
    box-shadow:0 0 15px rgba(34,197,94,.8), 0 0 30px rgba(34,197,94,.4), 0 0 50px rgba(34,197,94,.2);
    animation:cardDotSpin 3s linear infinite;
}

@keyframes cardDotSpin{
    0%{top:12%;opacity:1;}
    45%{top:88%;opacity:1;}
    50%{top:88%;opacity:0;}
    55%{top:12%;opacity:0;}
    100%{top:12%;opacity:1;}
}

@keyframes fadeUp{
    from{opacity:0;transform:translateX(20px);}
    to{opacity:1;transform:translateX(0);}
}

/* 左侧区域 */
.login-left{
    width:44%;
    background:#112345;
    padding:36px 32px 28px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    position:relative;
    overflow:hidden;
}

.brand-section{
    position:relative;
    z-index:1;
}

.brand-title{
    font-size:26px;
    font-weight:700;
    color:#fff;
    margin:0 0 8px;
    letter-spacing:-.5px;
}

.brand-subtitle{
    font-size:14px;
    color:rgba(255,255,255,.55);
    margin:0 0 14px;
}

.brand-line{
    width:32px;
    height:2px;
    background:#22c55e;
    border-radius:1px;
    margin-bottom:12px;
}

.brand-desc{
    font-size:11px;
    color:rgba(255,255,255,.4);
    margin:0;
    letter-spacing:2px;
}

/* 动画区域 */
.animation-section{
    position:relative;
    height:140px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:16px 0;
}

/* 旋转圆环特效 */
.ring-box{
    position:relative;
    width:110px;
    height:110px;
}

.ring{
    position:absolute;
    border-radius:50%;
    border:2px solid transparent;
}

.ring-1{
    inset:0;
    border-top-color:#22c55e;
    border-right-color:rgba(34,197,94,.3);
    animation:spin1 3s linear infinite;
}

.ring-2{
    inset:12px;
    border-bottom-color:#4ade80;
    border-left-color:rgba(74,222,128,.3);
    animation:spin2 4s linear infinite reverse;
}

.ring-3{
    inset:24px;
    border-top-color:#86efac;
    border-right-color:rgba(134,239,172,.3);
    animation:spin3 5s linear infinite;
}

.center-dot{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:14px;
    height:14px;
    background:#22c55e;
    border-radius:50%;
    box-shadow:0 0 15px rgba(34,197,94,.5);
    animation:dotPulse 2s ease-in-out infinite;
}

@keyframes spin1{
    from{transform:rotate(0deg);}
    to{transform:rotate(360deg);}
}

@keyframes spin2{
    from{transform:rotate(0deg);}
    to{transform:rotate(360deg);}
}

@keyframes spin3{
    from{transform:rotate(0deg);}
    to{transform:rotate(360deg);}
}

@keyframes dotPulse{
    0%,100%{transform:translate(-50%,-50%) scale(1);opacity:1;}
    50%{transform:translate(-50%,-50%) scale(1.3);opacity:.7;}
}

/* 旋转的小圆点 */
.dot-orbit{
    position:absolute;
    inset:0;
    animation:spin1 6s linear infinite;
}

.dot-orbit::before{
    content:'';
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    width:6px;
    height:6px;
    background:#22c55e;
    border-radius:50%;
    box-shadow:0 0 8px rgba(34,197,94,.6);
}

.dot-orbit-2{
    position:absolute;
    inset:18px;
    animation:spin2 5s linear infinite reverse;
}

.dot-orbit-2::before{
    content:'';
    position:absolute;
    bottom:0;
    left:50%;
    transform:translateX(-50%);
    width:5px;
    height:5px;
    background:#4ade80;
    border-radius:50%;
    box-shadow:0 0 6px rgba(74,222,128,.6);
}

/* 星星背景 */
.stars{
    position:absolute;
    inset:0;
    pointer-events:none;
}

.stars span{
    position:absolute;
    width:2px;
    height:2px;
    background:rgba(34,197,94,.4);
    border-radius:50%;
    animation:twinkle 3s ease-in-out infinite;
}

.stars span:nth-child(1){top:10%;left:20%;animation-delay:0s;}
.stars span:nth-child(2){top:20%;left:80%;animation-delay:.5s;}
.stars span:nth-child(3){top:30%;left:40%;animation-delay:1s;}
.stars span:nth-child(4){top:40%;left:70%;animation-delay:1.5s;}
.stars span:nth-child(5){top:50%;left:10%;animation-delay:2s;}
.stars span:nth-child(6){top:60%;left:60%;animation-delay:2.5s;}
.stars span:nth-child(7){top:70%;left:30%;animation-delay:.3s;}
.stars span:nth-child(8){top:80%;left:85%;animation-delay:.8s;}
.stars span:nth-child(9){top:15%;left:55%;animation-delay:1.3s;}
.stars span:nth-child(10){top:85%;left:15%;animation-delay:1.8s;}

@keyframes twinkle{
    0%,100%{opacity:.15;}
    50%{opacity:.6;}
}

/* 左侧底部提示语 */
.left-notice{
    position:relative;
    z-index:1;
    padding:10px 12px;
    background:rgba(34,197,94,.06);
    border:1px solid rgba(34,197,94,.1);
    border-radius:8px;
}

.left-notice p{
    font-size:10px;
    color:rgba(255,255,255,.85);
    line-height:1.5;
    margin:0;
}

/* 右侧区域 */
.login-right{
    width:56%;
    padding:32px 36px 28px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.login-header{
    text-align:center;
    margin-bottom:24px;
}

.login-header h2{
    font-size:20px;
    font-weight:700;
    color:#1d1d1f;
    margin:0 0 6px;
}

.login-header p{
    font-size:13px;
    color:#86868b;
    margin:0;
}

/* 表单样式 */
.login-form .form-group{
    margin-bottom:16px;
}

.login-form .form-group input{
    width:100%;
    height:44px;
    padding:0 16px;
    border:1px solid #e5e5e5;
    border-radius:10px;
    font-size:14px;
    color:#1d1d1f;
    background:#fafafa;
    transition:all .2s;
    box-sizing:border-box;
    outline:none;
    font-family:inherit;
}

.login-form .form-group input:focus{
    border-color:#22c55e;
    background:#fff;
    box-shadow:0 0 0 3px rgba(34,197,94,.08);
}

.login-form .form-group input::placeholder{
    color:#aaa;
}

.login-form .captcha-group{
    display:flex;
    gap:12px;
}

.login-form .captcha-group input{
    flex:1;
}

.login-form .captcha-group img{
    width:100px;
    height:44px;
    border-radius:10px;
    cursor:pointer;
    border:1px solid #e5e5e5;
    transition:all .2s;
}

.login-form .captcha-group img:hover{
    border-color:#22c55e;
}

.login-form .extra-row{
    display:flex;
    align-items:center;
    margin-bottom:18px;
}

.login-form .submit-btn{
    width:100%;
    height:46px;
    background:#112345;
    border:none;
    border-radius:10px;
    color:#fff;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:all .2s;
    font-family:inherit;
    letter-spacing:.5px;
}

.login-form .submit-btn:hover{
    background:#22c55e;
    transform:translateY(-1px);
    box-shadow:0 8px 20px rgba(34,197,94,.25);
}

.login-form .submit-btn:active{
    transform:translateY(0);
}

.login-form .reg-link{
    display:block;
    text-align:center;
    margin-top:14px;
    font-size:13px;
    color:#86868b;
    text-decoration:none;
    transition:color .2s;
}

.login-form .reg-link:hover{
    color:#22c55e;
}

.login-footer{
    position:fixed;
    left:0;
    bottom:0;
    width:100%;
    padding:14px 0;
    text-align:center;
    font-size:12px;
    color:#112345;
    z-index:2;
}

.login-footer a{
     color:#112345;
    text-decoration:none;
}

.login-footer a:hover{
    color:#22c55e;
}

.demo{
    text-align:center;
    padding:10px;
    background:#f0fdf4;
    color:#166534;
    font-size:12px;
    border-radius:8px;
    margin-bottom:16px;
    border:1px solid #bbf7d0;
}

.layui-form-checkbox[lay-skin=primary] i{
    width:16px;
    height:16px;
    line-height:16px;
    border:1.5px solid #d4d4d4;
    border-radius:4px;
    transition:all .2s;
}

.layui-form-checkbox[lay-skin=primary]:hover i{
    border-color:#22c55e;
}

.layui-form-checked[lay-skin=primary] i{
    border-color:#22c55e!important;
    background-color:#22c55e!important;
}

.layui-form-checkbox[lay-skin=primary] span{
    padding-left:8px;
    color:#86868b;
    font-size:13px;
}

/* 响应式适配 */
@media screen and (max-width:960px){
    .layadmin-user-login{
        justify-content:center;
        padding-right:0;
    }
    .particles-bg,.scan-line{display:none;}
    .login-card{
        width:92%;
        max-width:400px;
        flex-direction:column;
    }
    .login-left{
        width:100%;
        padding:28px 24px;
        min-height:auto;
    }
    .animation-section{
        display:none;
    }
    .left-notice{
        margin-top:16px;
    }
    .login-right{
        width:100%;
        padding:28px 24px 24px;
    }
    .brand-title{font-size:22px;}
}

@media screen and (max-width:480px){
    .login-card{
        border-radius:12px;
    }
    .login-left{
        padding:22px 20px 18px;
    }
    .login-right{
        padding:22px 20px 18px;
    }
    .login-header h2{font-size:18px;}
    .login-form .form-group input{height:42px;}
    .login-form .submit-btn{height:44px;}
}
