/*
 * E-mail verification widget of the public pages (public/partials/publicConfirmEmailForm.html).
 * Self-contained on purpose: the partial is used on pages with Bootstrap 3 (public area)
 * and Bootstrap 5 (homepage), so it must not rely on either.
 */
.ev-verify {
	--ev-verify-accent: #23985d;
	box-sizing: border-box;
	max-width: 560px; /* px, not rem: Bootstrap 3 sets the root font size to 10px */
	margin: 8px 0 24px;
	padding: 16px 20px;
	border: 1px solid #dfe3e8;
	border-radius: 8px;
	background: #f8f9fa;
	text-align: left;
	color: #333;
}

.ev-verify--center {
	margin-left: auto;
	margin-right: auto;
}

.ev-verify .hidden {
	display: none !important;
}

.ev-verify__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.ev-verify__icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(35, 152, 93, 0.12);
	background: color-mix(in srgb, var(--ev-verify-accent) 12%, transparent);
	color: var(--ev-verify-accent);
}

.ev-verify__email {
	flex: 1 1 180px;
	min-width: 0;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.ev-verify__hint {
	margin: 0 0 12px;
}

.ev-verify__resend {
	margin: 12px 0 0;
}

.ev-verify__link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--ev-verify-accent);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.ev-verify__link:disabled {
	color: #8a8f94;
	text-decoration: none;
	cursor: not-allowed;
}

.ev-verify__code {
	display: flex;
	gap: 8px;
}

.ev-verify__code .code-input {
	box-sizing: border-box;
	flex: none;
	width: 44px;
	height: 52px;
	padding: 0;
	border: 1px solid #adb5bd;
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	color: #212529;
	font-size: 22px;
	font-weight: 600;
	text-align: center;
}

.ev-verify__code .code-input:focus {
	border-color: var(--ev-verify-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(35, 152, 93, 0.25);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ev-verify-accent) 25%, transparent);
}

.ev-verify__error {
	margin: 10px 0 0;
	color: #c0392b;
}

.ev-verify__success {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #1e7e34;
	font-weight: 600;
}

.ev-verify__success .ev-verify__icon {
	background: rgba(30, 126, 52, 0.12);
	color: #1e7e34;
}

@media (max-width: 420px) {
	.ev-verify {
		padding: 14px;
	}

	.ev-verify__code {
		gap: 6px;
	}

	.ev-verify__code .code-input {
		width: calc((100% - 30px) / 6);
		height: 46px;
	}
}
