.cng-auth-otp-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 9999;
}

.cng-auth-otp-modal-open {
	display: block;
}

.cng-auth-otp-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.7);
}

.cng-auth-otp-dialog {
	position: relative;
	max-width: 420px;
	margin: 5vh auto;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
	padding: 24px 24px 20px;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cng-auth-otp-close {
	position: absolute;
	top: 8px;
	inset-inline-end: 8px;
	border: none;
	background: transparent;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
}

.cng-auth-otp-tabs {
	display: flex;
	margin-bottom: 16px;
	border-radius: 999px;
	padding: 2px;
	background: #f1f5f9;
}

.cng-auth-otp-tab {
	flex: 1;
	border: none;
	background: transparent;
	padding: 8px 0;
	border-radius: 999px;
	cursor: pointer;
	font-weight: 500;
	color: #64748b;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.cng-auth-otp-tab-active {
	background: #0f766e;
	color: #ffffff;
}

.cng-auth-otp-pane {
	display: none;
}

.cng-auth-otp-pane-active {
	display: block;
}

.cng-auth-otp-section + .cng-auth-otp-section {
	margin-top: 16px;
}

.cng-auth-otp-section h4 {
	margin: 0 0 8px;
	font-size: 14px;
	color: #0f172a;
}

.cng-auth-otp-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cng-auth-otp-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cng-auth-otp-field label {
	font-size: 12px;
	font-weight: 500;
	color: #0f172a;
}

.cng-auth-otp-field input {
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	padding: 8px 10px;
	font-size: 14px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cng-auth-otp-field input:focus {
	border-color: #0f766e;
	box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.1);
}

.cng-auth-otp-actions {
	margin-top: 4px;
}

.cng-auth-otp-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: none;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 600;
	background: linear-gradient(135deg, #0f766e, #14b8a6);
	color: #ffffff;
	cursor: pointer;
	box-shadow: 0 10px 18px rgba(15, 118, 110, 0.35);
	transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.cng-auth-otp-submit:hover {
	filter: brightness(1.05);
	box-shadow: 0 12px 22px rgba(15, 118, 110, 0.4);
}

.cng-auth-otp-submit:active {
	transform: translateY(1px);
	box-shadow: 0 8px 14px rgba(15, 118, 110, 0.35);
}

.cng-auth-otp-submit:disabled {
	opacity: 0.6;
	cursor: default;
	box-shadow: none;
}

.cng-auth-otp-message {
	min-height: 18px;
	font-size: 12px;
	margin-top: 2px;
}

.cng-auth-otp-message-error {
	color: #b91c1c;
}

.cng-auth-otp-message-success {
	color: #166534;
}

.cng-auth-otp-btn {
	border-radius: 999px;
	border: 1px solid transparent;
	padding: 6px 14px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	background: rgba(15, 118, 110, 0.1);
	color: #0f766e;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cng-auth-otp-btn:hover {
	background: rgba(15, 118, 110, 0.18);
	border-color: rgba(15, 118, 110, 0.25);
}

.cng-auth-otp-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 10px 0;
	font-size: 11px;
	color: #94a3b8;
	gap: 8px;
}

.cng-auth-otp-divider::before,
.cng-auth-otp-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e2e8f0;
}

.cng-auth-otp-otp-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 6px;
}

.cng-auth-otp-link {
	border: none;
	background: transparent;
	font-size: 12px;
	color: #0f766e;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.cng-auth-otp-link:disabled {
	color: #94a3b8;
	cursor: default;
}

.cng-auth-otp-timer {
	font-size: 11px;
	color: #94a3b8;
}

.cng-auth-otp-hidden {
	display: none !important;
}

@media (max-width: 480px) {
	.cng-auth-otp-dialog {
		margin: 0;
		min-height: 100vh;
		border-radius: 0;
	}
}

