body {
    display: flex; /*  */
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #1a1a1a; /* 暗色调背景 */
    
}

body .container .create_user {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    position: absolute;
    top: -1px;
    right: -1px;
    display: flex; /* 使用 flexbox 布局 */
    align-items: flex-start; /* 垂直居中 */
    justify-content: flex-end; /* 水平居中 */
    overflow: hidden;
}
body .container .create_user img {
    width: 20px; /* 设置图片宽度 */
    height: 20px; /* 设置图片高度 */
    cursor: pointer;
}

.container {
    width: 300px;
    height: 220px;
    margin: auto auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #ccc;
    position: relative;
}

.container .login_index {
    display: normal;
}

.container .create_index {
    display: none;
}

.container .login_index,
.container .create_index {
    transition: opacity 0.3s ease;
}

.container .login_index.hidden,
.container .create_index.hidden {
    display: none;
    opacity: 0;
}

.container .login_index.visible,
.container .create_index.visible {
    display: block;
    opacity: 1;
}



.container h2 {
    text-align: center;
    margin-top: 2px;
    margin-bottom: 5px;
}
.container .create_index .code_container {
    display: flex;
    align-items: center;
    gap: 2px; /* 输入框和按钮之间的间距 */
    position: relative;
}

#check_create {
    flex: 1; /* 输入框占据剩余空间 */
}

#sendCodeBtn {
    position: absolute;
    right: 0px;
    top: 0px;
    width: 95px;
    padding: 10px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#sendCodeBtn:disabled {
    background-color: #ccc; /* 禁用时背景颜色变为灰色 */
    cursor: not-allowed; /* 禁用时鼠标样式变为禁止 */
}

.container .create_index .password_container {
    position: relative;
    display: flex;
    align-items: center;
}

.container .create_index .password_container .toggle_icon {
    position: absolute;
    right: 5px; /* 图标距离右侧的距离 */
    top: 7px; /* 图标距离顶部的距离 */
    width: 24px; /* 图标宽度 */
    height: 24px; /* 图标高度 */
    cursor: pointer; /* 鼠标悬停时显示手型 */
}


.container input[type="text"],
.container input[type="password"] {
    width: 278px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.container input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}