* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Comic Sans MS", cursive;
    min-height: 100vh;
    /*只保留一套flex，清除旧的 space-around！！*/
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 300px; /*控制登录卡片和右侧大图中间的间距，代替space-around*/
    cursor: url("image/cursor.webp"),auto;
    color: #917B5A;
    position: relative;
    overflow-x: hidden;
    /*body不要再写background-image，背景交给下面.bg-pattern*/
    background-color: #fffdf8; /*页面底色：淡淡的米白*/
}

/*===== 全屏平铺背景层【解决背景图片裁切显示不全】=====*/
.bg-pattern {
    position: fixed;
    inset: 0;
    background-image: url("image/login_bg.webp");
    background-repeat: repeat;
    background-position: 0 0;
    background-size: auto;
    opacity: 1; /*花纹淡淡的，不要抢主体，可在0.3‑0.5之间调*/
    z-index: -1;
}

/* 左侧登录卡片 */
/*=====顶部夹子装饰=====*/
.clip-decoration {
    width: 130px;
    height: auto;
    position: absolute;
    top: -100px; /*向上挪，探出卡片上边缘，做出夹住效果*/
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
}

    .clip-decoration img {
        width: 100%;
        height: auto;
    }

.login-card {
    background-color: #ffffff; /*填充纯白底色，解决透视！*/
    border: 2.5px solid #917B5A;
    border-radius: 14px;
    padding: 40px 30px;
    width: 320px;
    transform: translateX(130px);
    position: relative; /*必须开启相对定位！夹子才能以卡片为基准往上飘*/
}

    .login-card .title {
        text-align: center;
        font-size: 28px;
        margin-bottom: 24px;
        position: relative;
        padding-top: 45px; /*预留夹子和文字之间的空隙，防止图片压字*/
        font-family: 'Are You Serious', cursive;
        font-weight: bold;
        color: #917B5A;
    }


        .login-card .title::after {
            content: "♡";
            position: absolute;
            top: -25px;
            left: 50%;
            transform: translateX(-50%);
            color: #7DFAE7;
        }

.form-item {
    margin-bottom: 18px;
}

    .form-item label {
        font-size: 18px;
        display: block;
        margin-bottom: 4px;
    }

    .form-item input {
        width: 100%;
        border: 2px solid #917B5A;
        border-radius: 6px;
        padding: 6px 8px;
        font-size: 16px;
        color: #917B5A;
        /* 关闭浏览器默认黑外圈 */
        outline: none;
    }
        /* 点击选中输入框后的样式 */
        .form-item input:focus {
            border-color: #917B5A;
            /* 柔和的棕色外发光，代替黑色边框 */
            box-shadow: 0 0 0 3px rgba(145, 123, 90, 0.25);
        }


.login-btn {
    margin-top: 12px;
    width: 100%;
    padding: 8px;
    border: 2px solid #917B5A;
    border-radius: 10px;
    background: #f8e4ef;
    font-family: inherit;
    font-size: 18px;
    cursor: pointer;
    color: #917B5A;
}

    .login-btn:hover {
        background: #f3d2e2;
    }
/*右侧装饰大图*/
.side-pic {
    width: 1000px;
    height: 85vh;
    background-image: url("image/cover.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
/*适配手机屏幕*/
@media(max-width:920px) {
    body {
        flex-direction: column;
        gap: 30px;
        padding: 20px 0;
    }

    .side-pic {
        width: 90%;
        height: 40vh;
    }
}
