form {
    width: 90%;
    padding: 3rem;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2vw;
    box-sizing: border-box;
    font-size: 1.1rem;
}

.layer-login-form form {
    padding: 3rem;
}

form.layui-form {
    width: 70%;
    border: 1px solid #ebebeb;
    border-radius: 1rem;
    margin-bottom: 4rem;
    box-shadow: 4px 8px 13px 5px #cbcbcb;
}

form .item {
    font-weight: 500;
    display: flex;
    width: 100%;
    min-width: 0;
}

form .item[data-show="0"],
form .item[data-show="false"] {
    display: none;
}

form .item[data-show="1"],
form .item[data-show="true"] {
    display: flex;
}

form .item.upload-box {
    column-gap: 1rem;
    flex-wrap: wrap;
}

form .item span {
    width: fit-content;
    flex: 0 0 auto;
    height: 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    line-height: 0;
}

form .item.required {
    position: relative;
}

form .item.required::before {
    content: "*";
    position: absolute;
    left: -1rem;
    line-height: 1.4;
    font-size: 2rem;
}

form .item label {
    display: flex;
    align-items: center;
}

form .item input[type=radio] {
    width: 1em;
    height: 1em;
    margin-inline: 0.5em;
    appearance: auto;
}

form .item input[type=text],
form .item input[type=password],
form .item select {
    flex: 1;
    min-width: 0;
    height: 2rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding-left: 10px;
    box-sizing: border-box;
}

form .item.entire select {
    width: 100%;
    max-width: 100%;
}

form .item.title {
    font-weight: bold;
}

form .item.title,
form .item.entire {
    grid-column: 1 / 3;
    position: relative;
}

form .item.title::before {
    counter-increment: chapter;
    content: counter(chapter)".";
    height: 100%;
    position: absolute;
    left: -1rem;
    line-height: 1.8;
}

form .item button {
    margin-top: 2em;
    margin-inline: auto;
    width: 10em;
    height: 2em;
    border-radius: 999px;
    color: white;
    display: block;
    line-height: 2;
    background-image: linear-gradient(to bottom, #01a9fd, #0071b2);
}

form .item.upload-box .upload-btn,
form .item.upload-box .download-btn {
    min-width: fit-content;
    height: 2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #66a6ff, #88f5fe);
    margin-bottom: .5rem;
    padding-inline: 1rem;
    font-weight: 500;
}

form .item.upload-box .upload-btn {
    width: 10vw;
}

form .item.upload-box .upload-btn input[type=file] {
    display: none;
}

form .item.upload-box .download-btn {
    width: 13vw;
}

form .item.upload-box strong {
    flex-basis: 100%;
    border: 1px solid #ccc;
    padding: .5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

form .item.upload-box strong::before {
    content: "📄"
}

main>p {
    width: 70%;
    margin-inline: auto;
    text-indent: 0em;
    font-size: 1.1rem;
}

@media screen and (max-width: 768px) {
    form.layui-form {
        width: 95%;
        border-radius: 1rem;
        margin-bottom: 1rem;
        font-size: .8rem;
        padding: 1.5rem 2.5rem;
        gap: 1em;
        box-shadow: 2px 6px 7px 3px #cbcbcb;
    }

    form .item {
        grid-column: 1 / 3;
    }

    form .item.required::before {
        font-size: 1.2rem;
    }

    form .item span,
    form .item input[type=text],
    form .item input[type=password],
    form .item select {
        height: 1.2rem;
    }

    form .item input[type=text],
    form .item select {
        flex: 1;
        border-radius: 4px;
    }

    form .item button {
        width: 8em;
        height: 2em;
        font-size: 1em;
        line-height: 1;
        margin-top: 1em;
    }

    form .item .upload-btn,
    form .item .download-btn {
        padding-inline: 20px;
    }

    main>p {
        width: 90%;
    }
}