body {
    background: url('../images/background_1.jpg') no-repeat center center fixed; 
    background-size: cover;
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 200px;
    height: 200px;
    background: url('../images/logo.svg') no-repeat;
    background-size: contain;
}

.greetings {
    position: absolute;
    left: 10%;
    top: 20%;
}

.greetings h1, .greetings h2 {
    color: white;
    display: block;
}

.greetings h3 {
    display: none;
}

.guide {
    position: absolute;
    left: 10%;
    top: 80%;
}

.guide p {
    color: white;
    display: block;
}

.card {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.3); /* 调整阴影的偏移距离和模糊距离，以及颜色的透明度 */
    transition: box-shadow 0.3s ease; /* 新增：添加过渡效果 */

    display: flex; /* 设置布局为flex */
    flex-direction: column; /* 设置内部元素为竖向排列 */
    height: fit-content; /* 修改：设置高度为内部元素的高度 */
    padding: 30px;
    width: 25vw; /* 设置宽度为页面宽度的1/4 */
    align-items: center; /* 新增：使内部元素在水平方向上居中 */
    justify-content: center; /* 新增：使内部元素在垂直方向上居中 */
    backdrop-filter: blur(50px); /* 新增：设置背景模糊 */
}

.card:hover, .card:focus-within {
    box-shadow: 0px 0px 20px rgba(0,0,0,0.5); /* 修改：当鼠标悬停在卡片上或焦点在卡片上时，设置阴影为较深的灰色 */
}

.card h1 {
    margin-bottom: 20px; /* 新增：添加下边距 */
}

.card form {
    display: flex;
    flex-direction: column; /* 修改：使每对标签和输入框在不同的行 */
}

.card form div {
    display: flex; 
    flex-direction: row;
    justify-content: space-between; /* 新增：使标签和输入框在同一行分别对齐到左右两边 */
    width: 100%; 
    margin-top: 10px;
    margin-bottom: 10px;
}

.card form label {
    flex: 1; 
    margin: 10px 0;
    text-align: left; /* 新增：使标签文本靠左对齐 */
}

.card form input[type="text"], .card form input[type="password"] {
    flex: 2; 
    border-radius: 5px; 
    box-shadow: 0px 0px 0px rgba(0,0,0,0); 
    transition: box-shadow 0.3s ease; 
    text-align: right; /* 新增：使输入框文本靠右对齐 */
}

.card form input[type="text"]:focus, .card form input[type="password"]:focus, .card form input[type="text"]:hover, .card form input[type="password"]:hover {
    outline: none; /* 新增：移除默认的轮廓 */
    box-shadow: 0px 0px 5px rgba(0,0,255,0.5); /* 新增：设置阴影为蓝色 */
    border-radius: 5px; /* 新增：设置圆角半径 */
}

.card form input[type="submit"] {
    background-color: blue;
    color: white;
    border: none;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 20px 2px 4px 2px; /* 修改：在上方添加空间 */
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0px 0px 5px rgba(0,0,0,0.5);
    transition: box-shadow 0.3s ease, background-color 0.3s ease; /* 修改：添加过渡效果 */
}

.card:hover input[type="submit"], .card:focus-within input[type="submit"] {
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5); /* 修改：当鼠标悬停在卡片上或焦点在卡片上时，设置按钮的阴影为较深的灰色 */
}

.card form input[type="submit"]:hover {
    background-color: mediumblue;
}

.card form input[type="submit"]:active {
    background-color: darkblue; /* 新增：鼠标点击时设置背景颜色为深蓝色 */
}