* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    font-family: "微软雅黑", serif;
    user-select: none;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
}

#login {
    display: flex;
    align-items: center;
    justify-content: right;
    background-color: rgb(238,241,247);
    background-image: url("../img/渲染图.png");
    background-position: left;
    background-repeat: no-repeat;
    background-size: contain;

    > .title {
        position: absolute;
        left: 8rem;
        top: 5.2rem;
        font-size: 27px;
    }

    form {
        position: relative;
        width: 28rem;
        display: flex;
        flex-direction: column;
        background: #fff;
        border-radius: 5px;
        padding: 3.5rem 2.7rem 1rem 2.7rem;
        margin-right: 11rem;
        gap: 1rem;
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);

        .title {
            font-size: 20px;
            font-weight: 600;
            padding-bottom: 1.7rem;
            font-family: "微软雅黑 Light", serif;
        }

        .qr-code {
            cursor: pointer;
            position: absolute;
            right: 0;
            top: 0;
        }

        .ver-code {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;

            > input {
                flex: 1;
            }

            > a {
                display: flex;
                align-items: center;
            }

            > a img {
                height: 42px;
                border-radius: 5px;
            }
        }

        input[type='text'],
        input[type='password'],
        input[type='tel'] {
            border-radius: 5px;
            border: 1px solid transparent;
            outline: none;
            padding: 12px;
            background-color: rgb(247,247,249);
            transition: all 0.25s;
            width: 100%;

            &:focus {
                border: 1px solid #1975ff;
            }

            &::placeholder {
                color: rgb(208,209,213);
            }
        }

        input[type='submit']{
            cursor: pointer;
            background: #1975ff;
            color: #fff;
            padding: 12px 0;
            border: none;
            border-radius: 5px;

            &:hover {
                transition: 0.15s;
                background: rgb(34, 103, 255);
            }
        }

        select {
            padding: 12px;
            outline: none;
            border: 1px solid transparent;
            background-color: rgb(247,247,249);
            color: rgb(126, 127, 129);
        }

        .type {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            margin-top: -5px;

            a {
                color: #1975ff;
            }
        }

        .other {
            position: relative;
            margin-top: 2.4rem;
            border: 0.5px solid rgb(208,209,213);

            div {
                position: absolute;
                z-index: 100;
                transform: translateX(-50%) translateY(-50%);
                left: 50%;
                top: 50%;
                font-size: 14px;
                color: rgb(208,209,213);
                background: #fff;
                padding: 0 7px;
            }
        }

        .icon {
            cursor: pointer;
            margin-top: 8px;
            text-align: center;
        }
    }

    .reg-form {
        margin-top: 8rem;
        margin-bottom: 4rem;

        .input-area {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            max-height: 310px;
            overflow-y: auto;
        }
    }
}

@media (max-width: 1200px) {
    #login {
        background-size: cover;
    }
}

@media (max-width: 768px) {
    #login {
        justify-content: center;
    }

    #login form{
        margin-right: 0;
    }

    #login > .title{
        left: 50%;
        white-space: nowrap;
        transform: translateX(-50%);
    }
}


