﻿* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: #f5f7fa;
}

.login-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 400px;
    padding: 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.logo {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    color: #409eff;
    /* 内部行内元素垂直居中 */
    display: flex;
    justify-content: center;
    align-items: center;
    /*图片和文字间距*/
    gap: 10px;
}

    .logo .img {
        background-image: url("../../logo.png");
        width: 60px;
        height: 60px;
        /*背景图完整显示*/
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        /* 把span变成行内块，才能设置宽高 */
        display: inline-block;
    }

.title {
    margin-top: 10px;
    margin-bottom: 30px;
    text-align: center;
    color: red;
    font-size: 18px;
    font-weight: bold;
}

.form-item {
    margin-bottom: 20px;
}

    .form-item label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        color: #606266;
    }

    .form-item input {
        width: 100%;
        height: 42px;
        padding: 0 12px;
        border: 1px solid #dcdfe6;
        border-radius: 4px;
        outline: none;
        font-size: 14px;
    }

        .form-item input:focus {
            border-color: #409eff;
        }

button {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 4px;
    background: #409eff;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

    button:hover {
        background: #66b1ff;
    }

.error {
    height: 20px;
    margin-bottom: 10px;
    color: #f56c6c;
    font-size: 14px;
    text-align: center;
}

.footer {
    margin-top: 30px;
    text-align: center;
    color: #909399;
    font-size: 12px;
}
