/* CMIT Security Login - gate overlay */

html.cmit-locked,
html.cmit-locked body {
	overflow: hidden !important;
	height: 100% !important;
}

#cmit-gate,
.cmit-gate {
	position: fixed;
	inset: 0;
	z-index: 2147483600;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(11, 15, 25, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.2s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#cmit-gate.is-visible,
.cmit-gate.is-visible {
	display: flex;
	opacity: 1;
}

/* Fully opaque so page content behind is genuinely not readable. */
.cmit-gate--hard {
	background: #0b0f19;
}

.cmit-gate__panel {
	width: 100%;
	max-width: 440px;
	background: #fff;
	color: #1a1d24;
	border-radius: 14px;
	padding: 30px 28px 24px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
	text-align: center;
	box-sizing: border-box;
}

.cmit-gate__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: #eef2ff;
	color: #3b52d9;
}

.cmit-gate__title {
	margin: 0 0 10px;
	font-size: 21px;
	line-height: 1.3;
	font-weight: 600;
	color: #12151c;
}

.cmit-gate__message {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.6;
	color: #4a5162;
}

.cmit-gate__message p {
	margin: 0 0 10px;
}

.cmit-gate__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cmit-gate__btn {
	display: block;
	width: 100%;
	padding: 13px 18px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	border: 0;
	border-radius: 9px;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.cmit-gate__btn--primary {
	background: #3b52d9;
	color: #fff;
}

.cmit-gate__btn--primary:hover {
	background: #2f43bb;
}

.cmit-gate__btn--primary:disabled {
	opacity: 0.6;
	cursor: default;
}

.cmit-gate__btn--ghost {
	background: transparent;
	color: #5c6478;
	font-weight: 500;
}

.cmit-gate__btn--ghost:hover {
	background: #f1f2f6;
}

.cmit-gate__status {
	min-height: 18px;
	margin: 14px 0 0;
	font-size: 13px;
	color: #6b7280;
}

@media (prefers-color-scheme: dark) {
	.cmit-gate__panel {
		background: #171a21;
		color: #e8eaf0;
	}
	.cmit-gate__title {
		color: #f3f5fa;
	}
	.cmit-gate__message {
		color: #a8aec0;
	}
	.cmit-gate__icon {
		background: #232838;
		color: #8fa0ff;
	}
	.cmit-gate__btn--ghost:hover {
		background: #232733;
	}
}
