/**
 * LM 電子郵件驗證 — 前台樣式
 * 設計原則：融入 UM 原生表單風格，不破壞版面
 */

/* ── 整體包裝 ──────────────────────────────── */
.lm-ev-wrap {
	margin-top: 8px;
	margin-bottom: 16px;
}

/* ── 發送按鈕列 ────────────────────────────── */
.lm-ev-send-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.lm-ev-countdown {
	font-size: 13px;
	color: #888;
}

/* ── 發送驗證碼按鈕 ────────────────────────── */
.lm-ev-send-btn {
	display: inline-block;
	padding: 8px 16px;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s;
	line-height: 1.4;
}

.lm-ev-send-btn:hover:not(:disabled) {
	background: #135e96;
}

.lm-ev-send-btn:disabled {
	background: #a7aaad;
	cursor: not-allowed;
}

/* ── 提示文字 ──────────────────────────────── */
.lm-ev-hint {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.5;
}

.lm-ev-hint--success {
	color: #1a7431;
}

.lm-ev-hint--error {
	color: #c0392b;
}

/* ── 驗證碼輸入列 ──────────────────────────── */
.lm-ev-code-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.lm-ev-code-input {
	width: 160px;
	padding: 8px 12px;
	font-size: 18px;
	letter-spacing: 4px;
	text-align: center;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	outline: none;
	transition: border-color 0.2s;
}

.lm-ev-code-input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

/* ── 驗證按鈕 ──────────────────────────────── */
.lm-ev-verify-btn {
	padding: 8px 16px;
	background: #1a7431;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s;
	line-height: 1.4;
}

.lm-ev-verify-btn:hover:not(:disabled) {
	background: #145a27;
}

.lm-ev-verify-btn:disabled {
	background: #a7aaad;
	cursor: not-allowed;
}

/* ── 驗證成功訊息 ──────────────────────────── */
.lm-ev-success {
	margin: 8px 0 0;
	font-size: 14px;
	color: #1a7431;
	font-weight: 600;
}

/* ── 送出表單前的錯誤提示 ──────────────────── */
.lm-ev-submit-error {
	font-weight: 600;
}
