/* 基础样式重置 */
/* 通用样式 - 移除所有浏览器的密码切换图标 */
input[type="password"] {
	/* 移除WebKit内核浏览器（Chrome、Safari等）的默认图标 */
	-webkit-text-security: disc;
}

/* 针对Firefox的特定样式 */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
	display: none;
	/* 移除IE/Edge的图标 */
}

input[type="password"]::-moz-placeholder {
	opacity: 0.7;
	/* 可选：调整占位符透明度 */
}

/* 密码输入容器 */
.password-wrapper {
	position: relative;
	width: 100%;
}

/* 密码输入框样式 */
.password-input {
	width: 100%;
	padding: 14px 16px;
	padding-right: 48px;
	/* 为切换按钮预留空间 */
	font-size: 16px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background-color: #ffffff;
	transition: all 0.25s ease;
}

.password-input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-input::placeholder {
	color: #94a3b8;
}

/* 切换按钮样式 */
.toggle-btn {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #64748b;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.toggle-btn:hover {
	color: #3b82f6;
	background-color: rgba(59, 130, 246, 0.05);
}

.toggle-btn:active {
	transform: translateY(-50%) scale(0.9);
}

.toggle-btn:focus {
	outline: 2px solid rgba(59, 130, 246, 0.2);
	outline-offset: 2px;
}

/* 图标样式 */
.password-icon {
	width: 20px;
	height: 20px;
	transition: opacity 0.2s ease;
}

/* 密码强度提示 */
.password-hint {
	margin-top: 8px;
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
}

/* 密码强度指示器 */
.strength-indicator {
	display: flex;
	gap: 4px;
	margin-top: 12px;
	height: 4px;
}

.strength-bar {
	flex: 1;
	border-radius: 2px;
	background-color: #e2e8f0;
	transition: background-color 0.3s ease;
}

.strength-bar.active {
	background-color: #3b82f6;
}