
.demo {
    padding-top: 20px;
    text-align: center;
    color: #7b9ab8!important;
    font-size: 13px;
}

.main-body {
    top: 50%;
    left: 50%;
    position: absolute;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.login-main .login-bottom .center .item input {
    display: inline-block;
    width: 227px;
    height: 22px;
    padding: 0;
    position: absolute;
    border: 0;
    outline: 0;
    font-size: 14px;
    letter-spacing: 0;
    color: #333;
    transition: all 0.3s ease;
}

.login-main .login-bottom .center .item input:focus {
    color: #000;
}

.login-main .login-bottom .center .item .icon-1 {
    background: url(../images/icon-login.png) no-repeat 1px 0;
}

.login-main .login-bottom .center .item .icon-2 {
    background: url(../images/icon-login.png) no-repeat -54px 0;
}

.login-main .login-bottom .center .item .icon-3 {
    background: url(../images/icon-login.png) no-repeat -106px 0;
}

.login-main .login-bottom .center .item .icon-4 {
    background: url(../images/icon-login.png) no-repeat 0 -43px;
    position: absolute;
    right: -10px;
    cursor: pointer;
}

.login-main .login-bottom .center .item .icon-5 {
    background: url(../images/icon-login.png) no-repeat -55px -43px;
}

.login-main .login-bottom .center .item .icon-6 {
    background: url(../images/icon-login.png) no-repeat 0 -93px;
    position: absolute;
    right: -10px;
    margin-top: 8px;
    cursor: pointer;
}


.login-main .login-bottom .tip .icon-nocheck {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    border: solid 1px #9abcda;
    position: relative;
    top: 2px;
    margin: 1px 8px 1px 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-main .login-bottom .tip .icon-nocheck:hover {
    border-color: #1E9FFF;
    background-color: rgba(30, 159, 255, 0.08);
}

.login-main .login-bottom .tip .icon-check {
    margin: 0 7px 0 0;
    width: 14px;
    height: 14px;
    border: none;
    background: url(../images/icon-login.png) no-repeat -111px -48px;
    transition: all 0.3s ease;
}

.login-main .login-bottom .center .item .icon {
    display: inline-block;
    width: 33px;
    height: 22px;
}

.login-main .login-bottom .center .item {
    width: 288px;
    height: 35px;
    border-bottom: 1px solid #dae1e6;
    margin-bottom: 35px;
    position: relative;
    transition: border-color 0.3s ease;
}

.login-main .login-bottom .center .item:hover {
    border-bottom-color: #b8c7d4;
}

.login-main .login-bottom .center .item:focus-within {
    border-bottom-color: #1E9FFF;
}

.login-main .login-bottom .center .item:focus-within::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1E9FFF;
    transform: translateX(-50%);
    animation: expandLine 0.3s ease forwards;
}

@keyframes expandLine {
    to {
        width: 100%;
    }
}

.login-main {
    width: 428px;
    position: relative;
    float: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
}

.login-main .login-top {
    height: 117px;
    background: linear-gradient(135deg, #1E9FFF 0%, #148be4 100%);
    border-radius: 12px 12px 0 0;
    font-family: SourceHanSansCN-Regular;
    font-size: 28px;
    font-weight: 500;
    font-stretch: normal;
    letter-spacing: 1px;
    color: #fff;
    line-height: 117px;
    text-align: center;
    overflow: hidden;
    -webkit-transform: rotate(0);
    -moz-transform: rotate(0);
    -ms-transform: rotate(0);
    -o-transform: rotate(0);
    transform: rotate(0);
}

.login-main .login-top .bg1 {
    display: inline-block;
    width: 74px;
    height: 74px;
    background: #fff;
    opacity: .12;
    border-radius: 0 74px 0 0;
    position: absolute;
    left: 0;
    top: 43px;
    transition: opacity 0.3s ease;
}

.login-main:hover .login-top .bg1 {
    opacity: .18;
}

.login-main .login-top .bg2 {
    display: inline-block;
    width: 94px;
    height: 94px;
    background: #fff;
    opacity: .12;
    border-radius: 50%;
    position: absolute;
    right: -16px;
    top: -16px;
    transition: opacity 0.3s ease;
}

.login-main:hover .login-top .bg2 {
    opacity: .18;
}

.login-main .login-bottom {
    width: 428px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    padding-bottom: 53px;
}

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

.login-main .login-bottom .tip {
    clear: both;
    height: 16px;
    line-height: 16px;
    width: 288px;
    margin: 0 auto;
}

.container {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    position: relative;
    font-size: 12px;
    height: 100%;
    overflow: hidden;
}

input::-webkit-input-placeholder {
    color: #b8c5d1;
}

input::-moz-placeholder { /* Mozilla Firefox 19+ */
    color: #b8c5d1;
}

input:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color: #b8c5d1;
}

input:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: #b8c5d1;
}

input:-webkit-autofill { /* 取消Chrome记住密码的背景颜色 */
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
}

html {
    height: 100%;
}

.login-main .login-bottom .tip {
    clear: both;
    height: 16px;
    line-height: 16px;
    width: 288px;
    margin: 0 auto;
}

.login-main .login-bottom .tip .login-tip {
    font-family: MicrosoftYaHei;
    font-size: 12px;
    font-weight: 400;
    font-stretch: normal;
    letter-spacing: 0;
    color: #8ba3b8;
    cursor: pointer;
    transition: color 0.3s ease;
}

.login-main .login-bottom .tip .login-tip:hover {
    color: #1E9FFF;
}

.login-main .login-bottom .tip .forget-password {
    font-stretch: normal;
    letter-spacing: 0;
    color: #1E9FFF;
    text-decoration: none;
    position: absolute;
    right: 62px;
    transition: all 0.3s ease;
    font-size: 12px;
}

.login-main .login-bottom .tip .forget-password:hover {
    color: #148be4;
    text-decoration: underline;
}

.login-main .login-bottom .login-btn {
    width: 288px;
    height: 42px;
    background: linear-gradient(135deg, #1E9FFF 0%, #148be4 100%);
    border-radius: 21px;
    margin: 24px auto 0;
    text-align: center;
    line-height: 42px;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(30, 159, 255, 0.25);
    transition: all 0.3s ease;
    font-weight: 500;
}

.login-main .login-bottom .login-btn:hover {
    box-shadow: 0 6px 20px rgba(30, 159, 255, 0.35);
    transform: translateY(-1px);
}

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

.login-main .login-bottom .center .item .validateImg {
    position: absolute;
    right: 1px;
    cursor: pointer;
    height: 36px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.login-main .login-bottom .center .item .validateImg:hover {
    border-color: #1E9FFF;
    box-shadow: 0 2px 8px rgba(30, 159, 255, 0.15);
}

.footer {
    left: 0;
    bottom: 0;
    color: rgba(255, 255, 255, 0.85);
    width: 100%;
    position: absolute;
    text-align: center;
    line-height: 30px;
    padding-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-size: 13px;
}

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

.footer a, .footer span {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
}



@media screen and (max-width: 428px) {
    .login-main {
        width: 360px !important;
    }

    .login-main .login-top {
        width: 360px !important;
    }

    .login-main .login-bottom {
        width: 360px !important;
    }
}

/* ========== 登录页动画与样式优化（仅样式，不改结构） ========== */

/* 整卡入场：淡入 + 轻微上浮 */
.main-body {
    animation: loginCardEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.login-main {
    opacity: 0;
    animation: loginMainFade 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes loginCardEnter {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes loginMainFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 顶部标题与装饰圆入场 */
.login-main .login-top > span:first-of-type {
    opacity: 0;
    animation: titleFadeIn 0.5s ease 0.25s forwards;
}

.login-main .login-top .bg1,
.login-main .login-top .bg2 {
    animation: blobFadeIn 0.8s ease 0.35s backwards;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blobFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 0.12;
        transform: scale(1);
    }
}

.login-main:hover .login-top .bg1,
.login-main:hover .login-top .bg2 {
    opacity: 0.18;
}

/* 表单项依次出现 */
.login-main .login-bottom .center .item {
    opacity: 0;
    animation: itemFadeIn 0.45s ease forwards;
}

.login-main .login-bottom .center .item:nth-of-type(1) { animation-delay: 0.35s; }
.login-main .login-bottom .center .item:nth-of-type(2) { animation-delay: 0.45s; }
.login-main .login-bottom .center .item:nth-of-type(3) { animation-delay: 0.55s; }
.login-main .login-bottom .center .item:nth-of-type(4) { animation-delay: 0.65s; }
.login-main .login-bottom .center .item:nth-of-type(5) { animation-delay: 0.75s; }

@keyframes itemFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 提示行与按钮入场 */
.login-main .login-bottom .tip {
    opacity: 0;
    animation: itemFadeIn 0.4s ease 0.6s forwards;
}

.login-main .login-bottom .layui-form-item {
    opacity: 0;
    animation: itemFadeIn 0.4s ease 0.7s forwards;
}

/* 登录按钮：悬停微弹 + 光晕 */
.login-main .login-bottom .login-btn {
    position: relative;
}

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

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

/* 输入框聚焦时底部线动画保留，增强过渡 */
.login-main .login-bottom .center .item {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-main .login-bottom .center .item:focus-within {
    box-shadow: 0 2px 12px rgba(30, 159, 255, 0.08);
}

/* 验证码图悬停轻微放大 */
.login-main .login-bottom .center .item .validateImg {
    transition: transform 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-main .login-bottom .center .item .validateImg:hover {
    transform: scale(1.02);
}

/* 页脚淡入 */
.footer {
    opacity: 0;
    animation: footerFadeIn 0.6s ease 0.9s forwards;
}

@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 语言切换框与整体风格一致 */
#loginLocaleSwitcher {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#loginLocaleSwitcher:hover,
#loginLocaleSwitcher:focus {
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 背景粒子画布：置于最底层，不阻挡点击 */
.login-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container .main-body,
.container .footer {
    z-index: 1;
}