/* 共享样式 */
body {
    font-family: Arial, sans-serif;
    background-color: rgb(229, 214, 214);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.container {
    width: 450px; /* 宽度为页面宽度的一半 */
    height: 350px; /* 高度为页面高度的40% */
    position: relative;
    background-color: #fff;
    padding: 20px;
    box-sizing: border-box; /* 让padding不会使内容溢出 */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 内容上对齐 */
}

.input-group {
    margin-bottom: 20px;
    width: 100%; /* 让输入框和标签宽度和容器一样 */
    position: relative; /* 相对定位，以便绝对定位的input */
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.input-group input {
    width: calc(100% - 20px); /* 宽度为父容器宽度减去padding */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* 让padding不会使内容溢出 */
    position: absolute;
    top: 0; /* 顶部对齐 */
    left: 0; /* 左侧对齐 */
}

/* 输入框点击动画效果 */
.input-group input:focus {
    border-color: #66afe9;
    outline: none;
    box-shadow: 0 0 5px rgba(102, 175, 233, 0.5);
}

.button {
    width: 95%; /* 按钮宽度100% */
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box; /* 让padding不会使内容溢出 */
}

.button:hover {
    background-color: #0056b3;
}

a{
    text-decoration: none;
    color: rgb(22, 145, 8);
}
a:hover{
    color: rgb(255, 156, 156);
}
a:active{
    color: yellow;
}

::selection{
    background-color: tomato;
    color: white;
  }