/*
* @Author: xuebingsi
* @Date:   2019-04-01 13:37:17
* @Last Modified by:   zhibinm
* @Last Modified time: 2019-04-01 13:37:19
*/
/* 动态背景 */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.particles {
    position: absolute;
    display: block;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-1000px) translateX(1000px) rotate(720deg);
        opacity: 0;
    }
}

/* 登录容器 */
.login-container {
    position: relative;
    z-index: 2;
    width: 400px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    padding: 45px 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

    .login-container:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    }

/* 品牌区域 */
.brand {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease-out;
}

.brand-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #3498db, #1a5276);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transform: rotate(45deg);
    transition: transform 0.5s ease;
}

    .brand-logo:hover {
        transform: rotate(0deg);
    }

    .brand-logo i {
        font-size: 36px;
        color: white;
        transform: rotate(-45deg);
        transition: transform 0.5s ease;
    }

    .brand-logo:hover i {
        transform: rotate(0deg);
    }

.brand h1 {
    color: white;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    margin-top: 15px;
}

.brand p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    margin-top: 8px;
    font-weight: 300;
}

/* 表单样式 */
.form-group {
    position: relative;
    margin-bottom: 25px;
    animation: slideIn 0.6s ease-out;
}

    .form-group label {
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        color: rgba(255, 255, 255, 0.8);
        pointer-events: none;
        transition: 0.3s;
        font-size: 15px;
    }
 .form-group input {
     width: 100%;
     padding: 14px 15px 14px 50px;
     background: rgba(255, 255, 255, 0.1);
     border: 1px solid rgba(255, 255, 255, 0.2);
     border-radius: 10px;
     color: white;
     font-size: 16px;
     outline: none;
     transition: all 0.3s ease;
 }
    /* .form-group input { */
        /* width: 100%; */
        /* background: rgba(255, 255, 255, 0.1); */
        /* border: 1px solid rgba(255, 255, 255, 0.2); */
        /* border-radius: 3px; */
        /* color: white; */
        /* font-size: 16px; */
        /* outline: none; */
        /* transition: all 0.3s ease; */
		/* vertical-align: middle; */
		/* height: 50px; */
		/* padding: 0px 16px; */
		/* box-sizing: border-box; */
    /* } */

        .form-group input:focus {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.4);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
        }

            .form-group input:focus + label,
            .form-group input:valid + label {
                top: -10px;
                left: 10px;
                font-size: 13px;
                background: rgba(15, 27, 58, 0.9);
                padding: 2px 10px;
                border-radius: 10px;
            }

    .form-group i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(255, 255, 255, 0.7);
        font-size: 20px;
    }

/* 验证码区域 */
.VerifyCode-group {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.VerifyCode-input {
    flex: 1;
    position: relative;
}

.VerifyCode-img-container {
    width: 150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.VerifyCode-img {
    width: 100%;
    height: 50px;
    border-radius: 2px;
    background-color: white;
}

    .VerifyCode-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.VerifyCode-refresh {
    width: 100%;
    padding: 8px;
    background: rgba(52, 152, 219, 0.2);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

    .VerifyCode-refresh:hover {
        background: rgba(52, 152, 219, 0.3);
        transform: translateY(-2px);
    }

    .VerifyCode-refresh:active {
        transform: translateY(1px);
    }

    .VerifyCode-refresh i {
        transition: transform 0.5s ease;
    }

    .VerifyCode-refresh:hover i {
        transform: rotate(360deg);
    }

/* 选项 */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 14px;
    animation: fadeIn 0.8s ease-out;
}

.remember {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

    .remember input {
        margin-right: 8px;
        accent-color: #3498db;
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

.forgot-password {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .forgot-password:hover {
        color: #1a5276;
        text-decoration: underline;
        transform: translateX(3px);
    }

/* 按钮 */
.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #3498db, #1a5276);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}

    .login-button:hover {
        background: linear-gradient(45deg, #2980b9, #154360);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
        transform: translateY(-3px);
    }

    .login-button:active {
        transform: translateY(1px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .login-button::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: rgba(255, 255, 255, 0.1);
        transform: rotate(30deg);
        transition: all 0.6s ease;
    }

    .login-button:hover::after {
        transform: rotate(30deg) translate(40%, 40%);
    }

/* 底部链接 */
.footer {
    text-align: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    animation: fadeIn 1.2s ease-out;
}

    .footer a {
        color: #3498db;
        text-decoration: none;
        margin: 0 8px;
        transition: all 0.3s ease;
        font-weight: 500;
    }

        .footer a:hover {
            color: #1a5276;
            text-decoration: underline;
        }

/* 响应式设计 */
@media (max-width: 480px) {
    .login-container {
        width: 80%;
    }

    .brand h1 {
        font-size: 22px;
    }

    /* .VerifyCode-group { */
        /* flex-direction: column; */
    /* } */

    /* .VerifyCode-img-container { */
        /* width: 100%; */
    /* } */
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 安全提示 */
.security-tip {
    display: flex;
    align-items: center;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    animation: fadeIn 1s ease-out;
}

    .security-tip i {
        font-size: 18px;
        margin-right: 10px;
        color: #e74c3c;
    }