* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 设置header为相对定位，以便其子元素可以相对于它进行绝对定位 */
header {
    position: relative;
}

/* 设置图片宽度为100%以适应不同的屏幕尺寸 */
header img {
    width: 100%;
    height: 300px;
}

/* 使用绝对定位将.login-right放置在图片的右上角 */
.login-right {
    position: absolute;
    top: 10px; 
    left: 10px; 
    background-color: rgba(255, 255, 255, 0.7); 
    padding: 5px 10px; 
    border-radius: 5px; 
}

/* 调整登录和注册链接之间的间距 */
.login-right a {
    margin-left: 10px; 
    text-decoration: none;
    color: #000; 
}
main {
    height: 500px;
    background-image: url('../images/login/login.jpg');
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.login {
    background-color: rgba(255, 255, 255, 0.5);
    width: 350px; /* Adjusted for two columns */
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.tab-item {
    padding: 10px;
    cursor: pointer;
    white-space: nowrap;
}

.login .on {
    color: rgb(56, 113, 219);
    border-bottom: 2px solid cornflowerblue;
    padding-bottom: 5px;
}

.login form {
    display: none;
}

.login form.show {
    display: block;
}

.login li {
    list-style: none;
    line-height: 40px;
    position: relative;
}

input[type="text"], 
input[type="password"] {
    width: 275px;
    height: 40px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: auto;
    padding-left: 40px;
}

input[type="submit"] {
    width: 275px;
    height: 40px;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.user, .pwd , .sj, .yzm, .qq, .wx {
    position: absolute;
    left: 8px;
    top: 16px; /* 统一top值以保持一致性 */
    width: 30px;
    height: 30px;
    display: block;
    background: url('../images/login/st-userlogin-bg.png') no-repeat;
}

.user {
    background-position: 0 0;
}

.pwd {
    background-position: 0 -50px; 
}

.sj {
    background-position: -45px -50px;
}

.yzm {
    background-position: -45px -0px;
}
 .qq, .wx {
    position: absolute;
    left: 720px;
    top: 370px; /* 统一top值以保持一致性 */
    width: 30px;
    height: 30px;
    display: block;
    background: url('../images/login/st-userlogin-bg.png') no-repeat;
}
.qq {
    background-position: -0px -150px; 
}
.wx {
    position: absolute;
    left: 760px;
    top: 370px; /* 统一top值以保持一致性 */
    width: 30px;
    height: 30px;
    display: block;
    background: url('../images/login/st-userlogin-bg.png') no-repeat;
}
.wx {
    background-position: -41px -150px; 
}
p a:last-of-type {
    margin-left: 40px; /* 根据需要调整此值以获得期望的间距 */
}