/* Form OTP Zalo trên trang Tài khoản. */

.tvcdt-auth {
	--tva-primary: #0068ff;
	--tva-primary-dark: #0055d6;
	--tva-text: #1c2430;
	--tva-muted: #5b6778;
	--tva-border: #d5dbe5;
	--tva-ok: #0a7d32;
	--tva-err: #c0392b;

	max-width: 420px;
	margin: 32px auto;
	padding: 28px 24px;
	background: #fff;
	border: 1px solid #e6eaf1;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(16, 24, 40, .08);
	color: var(--tva-text);
	font-size: 15px;
	line-height: 1.5;
}

.tvcdt-auth *,
.tvcdt-auth *::before,
.tvcdt-auth *::after {
	box-sizing: border-box;
}

/* Quan trọng: thuộc tính hidden phải luôn ẩn phần tử, kể cả khi theme ghi đè display. */
.tvcdt-auth [hidden] {
	display: none !important;
}

.tvcdt-auth-tabs {
	display: flex;
	gap: 4px;
	padding: 4px;
	margin-bottom: 20px;
	background: #f1f4f9;
	border-radius: 12px;
}

.tvcdt-auth-tab {
	flex: 1;
	padding: 10px 12px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--tva-muted);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s, color .2s, box-shadow .2s;
}

.tvcdt-auth-tab.is-active {
	background: #fff;
	color: var(--tva-primary);
	box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}

.tvcdt-auth-hint {
	margin: 0 0 18px;
	color: var(--tva-muted);
	font-size: 14px;
}

.tvcdt-auth-sent {
	margin: 0 0 14px;
	padding: 10px 12px;
	background: #eef5ff;
	border-radius: 10px;
	color: var(--tva-text);
	font-size: 14px;
}

.tvcdt-auth-field {
	display: block;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 600;
}

.tvcdt-auth-field input {
	display: block;
	width: 100%;
	height: 48px;
	margin-top: 6px;
	padding: 0 14px;
	border: 1px solid var(--tva-border);
	border-radius: 10px;
	background: #fff;
	color: var(--tva-text);
	font-size: 16px;
	transition: border-color .15s, box-shadow .15s;
}

.tvcdt-auth-field input::placeholder {
	color: #9aa4b2;
}

.tvcdt-auth-field input:focus {
	outline: none;
	border-color: var(--tva-primary);
	box-shadow: 0 0 0 4px rgba(0, 104, 255, .15);
}

.tvcdt-auth-otp input {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 10px;
	text-align: center;
}

.tvcdt-auth-btn {
	display: block;
	width: 100%;
	height: 48px;
	border: 0;
	border-radius: 10px;
	background: var(--tva-primary);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s;
}

.tvcdt-auth-btn:hover {
	background: var(--tva-primary-dark);
}

.tvcdt-auth-btn:disabled {
	opacity: .6;
	cursor: wait;
}

.tvcdt-auth-links {
	display: flex;
	justify-content: space-between;
	margin-top: 14px;
}

.tvcdt-auth-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--tva-primary);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.tvcdt-auth-link:hover {
	text-decoration: underline;
}

.tvcdt-auth-msg {
	min-height: 22px;
	margin: 16px 0 0;
	font-size: 14px;
	text-align: center;
}

.tvcdt-auth-msg.is-ok {
	color: var(--tva-ok);
}

.tvcdt-auth-msg.is-err {
	color: var(--tva-err);
}

.tvcdt-auth .required {
	color: var(--tva-err);
}

@media (max-width: 480px) {
	.tvcdt-auth {
		margin: 16px;
		padding: 22px 18px;
	}
}
