/* OCC Registration Security — Email OTP popup */

html.occ-otp-lock,
html.occ-otp-lock body {
	overflow: hidden;
}

.occ-otp-overlay {
	--occ-otp-accent: #1f9a07;
	--occ-otp-accent-dark: #167a05;
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 20, 0.55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	box-sizing: border-box;
	font-family: inherit;
}

.occ-otp-overlay.is-open {
	display: flex;
}

.occ-otp-overlay *,
.occ-otp-overlay *::before,
.occ-otp-overlay *::after {
	box-sizing: border-box;
}

.occ-otp-overlay [hidden] {
	display: none !important;
}

.occ-otp-box {
	position: relative;
	width: 100%;
	max-width: 380px;
	padding: 28px 22px 22px;
	border-radius: 16px;
	background: #fff;
	color: #1d2b22;
	text-align: center;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
	animation: occ-otp-pop 0.22s ease-out;
}

@keyframes occ-otp-pop {
	from { opacity: 0; transform: translateY(10px) scale(0.97); }
	to   { opacity: 1; transform: none; }
}

.occ-otp-box .occ-otp-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #666;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.occ-otp-box .occ-otp-close:hover {
	background: #f1f1f1;
}

.occ-otp-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 10px;
	border-radius: 50%;
	background: #e8f7e4;
	color: var(--occ-otp-accent);
	font-size: 28px;
}

.occ-otp-box .occ-otp-title,
.occ-otp-box .occ-otp-done-title {
	margin: 0 0 6px;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
	color: #1d2b22;
}

.occ-otp-box .occ-otp-sub,
.occ-otp-box .occ-otp-done-sub {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.5;
	color: #55645b;
	word-break: break-word;
}

.occ-otp-box .occ-otp-sub strong {
	color: #1d2b22;
}

.occ-otp-inputs {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 10px;
}

.occ-otp-box .occ-otp-inputs input {
	width: 54px;
	height: 60px;
	margin: 0;
	padding: 0;
	border: 1.5px solid #cfd8d2;
	border-radius: 12px;
	background: #fff;
	color: #1d2b22;
	font-size: 26px;
	font-weight: 700;
	text-align: center;
	box-shadow: none;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.occ-otp-box .occ-otp-inputs input:focus {
	border-color: var(--occ-otp-accent);
	box-shadow: 0 0 0 3px rgba(31, 154, 7, 0.18);
}

.occ-otp-box .occ-otp-inputs input:disabled {
	background: #f4f6f5;
}

.occ-otp-box .occ-otp-msg {
	min-height: 20px;
	margin: 0 0 12px;
	font-size: 13.5px;
	line-height: 1.4;
}

.occ-otp-box .occ-otp-msg.is-error { color: #c62828; }
.occ-otp-box .occ-otp-msg.is-info  { color: #55645b; }

.occ-otp-box .occ-otp-verify {
	display: block;
	width: 100%;
	margin: 0;
	padding: 13px 16px;
	border: 0;
	border-radius: 10px;
	background: var(--occ-otp-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none;
}

.occ-otp-box .occ-otp-verify:hover:not(:disabled) {
	background: var(--occ-otp-accent-dark);
}

.occ-otp-box .occ-otp-verify:disabled {
	opacity: 0.6;
	cursor: default;
}

.occ-otp-box .occ-otp-resend {
	margin: 14px 0 0;
	min-height: 22px;
	font-size: 13.5px;
	color: #55645b;
}

.occ-otp-box .occ-otp-resend-btn {
	margin: 0;
	padding: 2px 4px;
	border: 0;
	background: transparent;
	color: var(--occ-otp-accent-dark);
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
	box-shadow: none;
}

.occ-otp-done {
	padding: 10px 0 6px;
}

.occ-otp-tick {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--occ-otp-accent);
	color: #fff;
	font-size: 36px;
	line-height: 1;
	animation: occ-otp-tick 0.35s ease-out;
}

@keyframes occ-otp-tick {
	from { transform: scale(0.4); opacity: 0; }
	to   { transform: scale(1); opacity: 1; }
}

@media (max-width: 380px) {
	.occ-otp-box .occ-otp-inputs input {
		width: 48px;
		height: 54px;
		font-size: 24px;
	}
	.occ-otp-inputs {
		gap: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.occ-otp-box,
	.occ-otp-tick {
		animation: none;
	}
}
