/**
 * 登录页面验证码统一样式
 * 版本：v2026060201
 * 更新日期：2026-06-02
 * 统一验证码、短信验证码输入框布局
 */

/* ==================== 图形验证码统一样式 ==================== */

.verify-code-box,
.login-verification {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 48px;
	box-sizing: border-box;
	margin-bottom: 15px;
	overflow: hidden;
}

.verify-code-box input,
.login-verification input {
	flex: 1;
	min-width: 0;
	width: 100%;
	height: 48px;
	line-height: 48px;
	box-sizing: border-box;
	padding: 0 130px 0 15px;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	background-color: #F8FAFC;
	color: #1E293B;
	font-size: 14px;
	outline: none;
	float: none;
}

.verify-code-box .ypui-input-icon ~ input,
.login-verification .login-icon ~ input {
	padding-left: 50px;
}

.verify-code-box input:focus,
.login-verification input:focus {
	border-color: #3B82F6;
	background-color: #FFFFFF;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.verify-code-img,
.login-verify-code-img {
	position: absolute;
	right: 0;
	top: 0;
	z-index: 3;
	width: 120px;
	height: 48px;
	line-height: 48px;
	box-sizing: border-box;
	border-left: 1px solid #E2E8F0;
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
	background-color: #fff;
	overflow: hidden;
}

.login-form .verify-code-img {
	width: 140px;
}

.login-form .verify-code-box input {
	padding-right: 150px;
}

.verify-code-img img,
.login-verify-code-img img {
	display: block;
	width: 100%;
	height: 100%;
	cursor: pointer;
	transition: opacity 0.3s;
}

.verify-code-img img:hover,
.login-verify-code-img img:hover {
	opacity: 0.8;
}

/* ==================== 短信验证码统一样式 ==================== */

.sms-code-box {
	display: none;
	position: relative;
	width: 100%;
	height: 48px;
	box-sizing: border-box;
	margin-bottom: 15px;
	overflow: hidden;
}

.sms-code-box.show {
	display: flex !important;
}

.sms-code-box input {
	flex: 1;
	min-width: 0;
	width: 100%;
	height: 48px;
	line-height: 48px;
	box-sizing: border-box;
	padding: 0 120px 0 15px;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	background-color: #F8FAFC;
	color: #1E293B;
	font-size: 14px;
	outline: none;
	float: none;
}

.sms-code-box .login-icon ~ input,
.sms-code-box .ypui-input-icon ~ input {
	padding-left: 50px;
}

.sms-send-btn {
	position: absolute;
	right: 5px;
	top: 50%;
	z-index: 3;
	transform: translateY(-50%);
	padding: 0 12px;
	height: 36px;
	line-height: 36px;
	border: none;
	border-radius: 6px;
	background: linear-gradient(135deg, #FF6A00 0%, #FF9500 100%);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.3s ease;
}

.sms-send-btn:hover {
	box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.sms-send-btn:disabled {
	background: #E2E8F0;
	color: #94A3B8;
	cursor: not-allowed;
	box-shadow: none;
}

@media (max-width: 480px) {
	.verify-code-img,
	.login-verify-code-img,
	.login-form .verify-code-img {
		width: 105px;
	}

	.verify-code-box input,
	.login-verification input,
	.login-form .verify-code-box input {
		padding-right: 115px;
	}

	.sms-code-box input {
		padding-right: 105px;
	}

	.sms-send-btn {
		padding: 0 10px;
		font-size: 12px;
	}
}
