﻿/*基础样式*/
body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    font-family: "Microsoft YaHei", sans-serif;
}
/*登录框样式*/
.login-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 380px;
    position: relative;
    overflow: hidden;
}

    .login-container:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #1565c0, #1976d2, #2196f3);
    }

/*logo文字样式*/
.logo {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    position: relative;
}

    .logo:before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: linear-gradient(90deg, transparent, #1976d2 30%, #1976d2 70%, transparent);
    }

    .logo h1 {
        color: #333;
        margin: 0;
        font-weight: normal;
        text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
    }

        .logo h1 span {
            display: block;
            transition: all 0.3s ease;
            position: relative;
        }

            .logo h1 span:first-child {
                font-size: 28px;
                color: #1565c0;
                font-weight: bold;
                margin-bottom: 15px;
                letter-spacing: 2px;
                background: linear-gradient(to right, #1565c0, #1976d2);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                text-shadow: none;
            }

            .logo h1 span:nth-child(2) {
                font-size: 22px;
                color: #1976d2;
                margin-bottom: 18px;
                letter-spacing: 1px;
                font-weight: 500;
            }

            .logo h1 span:last-child {
                font-size: 18px;
                color: #2196f3;
                position: relative;
                display: inline-block;
                padding: 10px 35px;
                background: linear-gradient(to right, transparent 0%, rgba(33, 150, 243, 0.08) 50%, transparent 100%);
                border-radius: 25px;
                font-weight: 400;
            }

                .logo h1 span:last-child:before,
                .logo h1 span:last-child:after {
                    content: '';
                    position: absolute;
                    height: 1px;
                    width: 45px;
                    background: linear-gradient(90deg, transparent, #90caf9 50%, transparent);
                    top: 50%;
                }

                .logo h1 span:last-child:before {
                    left: -35px;
                }

                .logo h1 span:last-child:after {
                    right: -35px;
                }

            .logo h1 span:hover {
                transform: translateY(-2px);
            }

            .logo h1 span:first-child:hover {
                background: linear-gradient(to right, #1976d2, #2196f3);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
            }

            .logo h1 span:nth-child(2):hover {
                color: #1565c0;
            }

            .logo h1 span:last-child:hover {
                background: linear-gradient(to right, transparent 0%, rgba(33, 150, 243, 0.12) 50%, transparent 100%);
                color: #1976d2;
            }

/*输入框分组样式*/
.form-group {
    margin-bottom: 20px;
    position: relative;
}

    .form-group input {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        box-sizing: border-box;
        font-size: 14px;
        transition: all 0.3s ease;
        background: #f8f9fa;
    }

        .form-group input:focus {
            outline: none;
            border-color: #1976d2;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
        }
/*验证框分组样式*/
.verify-group {
    display: flex;
    gap: 10px;
}

    .verify-group input {
        width: 70%;
    }

.verify-btn {
    width: 30%;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .verify-btn:hover {
        background: #1565c0;
    }

    .verify-btn:disabled {
        background: #90caf9;
        cursor: not-allowed;
    }

/*登录按钮的样式*/
.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #1976d2, #1565c0);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .login-btn:hover {
        background: linear-gradient(to right, #1565c0, #0d47a1);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(21, 101, 192, 0.2);
    }

    .login-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(21, 101, 192, 0.2);
    }

/*页脚链接的样式*/
.loginlink {
    text-align: center;
    margin-top: 20px;
}

    .loginlink a {
        color: #666;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s ease;
        position: relative;
        margin: 0 10px;
    }

        .loginlink a:hover {
            color: #1976d2;
        }

        .loginlink a:after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 1px;
            background: #1976d2;
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .loginlink a:hover:after {
            transform: scaleX(1);
        }

/*输入框的占位符文本*/
::placeholder {
    color: #999;
    transition: all 0.3s ease;
}
/*当输入框获得焦点时的占位符样式*/
input:focus::placeholder {
    opacity: 0.7;
    transform: translateX(5px);
}
