/*注册窗口-内容*/
.container {
	color: #000000;
	position: relative; /* 相对定位，以便子元素可以绝对定位 */
	top: 31%; /* 垂直居中 */
	transform: translateY(-30%); /* 向上移动自身高度的一半，实现垂直居中 */
	max-width: 350px; /* 限制表单最大宽度 */
	height: 350px; /* 固定高度 */
	margin: 0 auto; /* 水平居中 */
	padding: 20px;
	border-radius: 10px;
	flex-direction: column;
}

.form-group {
	display: flex;
	margin-bottom: 15px;
	font-size: 13px; /* 新增的字体大小属性 */
}

	.form-group label {
		display: block;
		padding-right: 10px; /* 可选，增加标签和输入框之间的间距 */
		flex-shrink: 0; /* 防止标签在必要时缩小（通常不是必需的，但可以是一个好习惯） */
	}

	.form-group input[type="text"],
	.form-group input[type="password"],
	.form-group input[type="email"],
	.form-group select {
		/* 使用 margin-left: auto 将 input 推向右侧 */
		margin-left: auto;
		flex-shrink: 0; /* 防止输入框在必要时缩小 */
		/* 其他样式，比如内边距、边框和圆角，可以根据需要添加 */
		padding: 8px;
		border: 1px solid #ccc;
		border-radius: 4px;
	}

.buttons {
	display: flex;
	justify-content: center;
	margin-top: auto; /* 将 .buttons 推至底部 */
}

.button {
	border-radius: 5px;
	padding: 10px 20px;
	background-color: #d6b394;
	color: white;
	border: none;
	cursor: pointer;
}
/*注册窗口-关闭按钮*/
.close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
}

	.close:hover,
	.close:focus {
		color: black;
		text-decoration: none;
		cursor: pointer;
	}

/*注册窗口*/
.modal {
	display: none; /* 默认隐藏 */
	position: fixed; /* 固定定位，相对于浏览器窗口 */
	top: 45%; /* 垂直方向距离窗口顶部50% */
	left: 50%; /* 水平方向距离窗口左侧50% */
	transform: translate(-50%, -50%); /* 相对于自身大小移动，实现居中 */
	width: 350px; /* 限制表单最大宽度 */
	height: 350px; /* 固定高度 */
	margin: 0 auto; /* 移除外边距 */
	padding: 20px;
	background-image: url('img/注册.png');
	background-color: rgba(255, 255, 255, 1); /* 半透明白色背景，提高可读性 */
	border-radius: 10px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* 添加阴影效果 */
	overflow: hidden; /* 隐藏超出内容 */
	z-index: 1000; /* 确保弹窗在其他内容之上 */
}
/*注册窗口-切换按钮*/
.toggle-buttons {
	display: flex; /* 使用 flex 布局 */
	justify-content: center; /* 水平居中 */
	text-align: center;
}

	.toggle-buttons button {
		padding: 10px 20px;
		border: none;
		border-radius: 5px; /* 圆角 */
		cursor: pointer;
		background-color: #6c757d;
		color: #d6b394;
		font-size: 13px;
		margin: 0 5px;
		transform: translateY(-60%); /* 向上移动自身高度的一半，实现垂直居中 */
		margin: 0 auto; /* 水平居中 */
		background-color: rgba(255, 255, 255, 0.8); /* 半透明白色背景，提高可读性 */
	}

		.toggle-buttons button.active {
			background-color: #ffe199;
		}