/* CP Login & Register Popup — self-contained, on-brand modal. */
html.cplp-lock { overflow: hidden !important; }

.cplp-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(17, 24, 39, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity .18s ease, visibility .18s ease;
	-webkit-overflow-scrolling: touch;
}
.cplp-overlay.is-open { opacity: 1; visibility: visible; }

.cplp-card {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: calc(100vh - 40px);
	overflow: auto;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28);
	padding: 30px 26px 26px;
	transform: translateY(10px);
	transition: transform .18s ease;
	box-sizing: border-box;
}
.cplp-overlay.is-open .cplp-card { transform: translateY(0); }

.cplp-x {
	position: absolute;
	top: 12px; right: 14px;
	width: 34px; height: 34px;
	border: none; background: transparent;
	font-size: 26px; line-height: 1;
	color: #98a2b3; cursor: pointer; border-radius: 999px;
}
.cplp-x:hover { color: #111827; background: #f2f4f8; }

.cplp-tabs { display: flex; gap: 8px; margin: 0 0 18px; }
.cplp-tab {
	flex: 1 1 auto;
	padding: 11px 10px;
	border: 1px solid #e5eaf1;
	background: #f7f9fc;
	color: #5b6472;
	font-weight: 800; font-size: 15px;
	border-radius: 12px; cursor: pointer;
}
.cplp-tab.is-active { background: #0b73e8; border-color: #0b73e8; color: #fff; box-shadow: 0 8px 18px rgba(11,115,232,.22); }

.cplp-form { display: none; }
.cplp-form.is-active { display: block; }

.cplp-form label {
	display: block;
	margin: 0 0 12px;
	color: #111827;
	font-weight: 700; font-size: 13.5px;
}
.cplp-form input[type="text"],
.cplp-form input[type="email"],
.cplp-form input[type="password"] {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 12px 13px;
	border: 1px solid #e5eaf1;
	border-radius: 12px;
	background: #fff;
	color: #111827;
	font-size: 15px;
	box-sizing: border-box;
}
.cplp-form input:focus { outline: none; border-color: #0b73e8; box-shadow: 0 0 0 3px rgba(11,115,232,.15); }

.cplp-check { display: flex !important; align-items: center; gap: 8px; font-weight: 600 !important; }
.cplp-check input { width: auto; margin: 0; }

.cplp-v2 { margin: 4px 0 14px; min-height: 0; }

.cplp-submit {
	display: block;
	width: 100%;
	margin: 6px 0 10px;
	padding: 14px 20px;
	border: none;
	border-radius: 999px;
	background: #0b73e8;
	color: #fff;
	font-weight: 900; font-size: 15px;
	cursor: pointer;
	box-shadow: 0 12px 26px rgba(11,115,232,.25);
	transition: background .18s ease;
}
.cplp-submit:hover { background: #075fc0; }
.cplp-submit:disabled { opacity: .7; cursor: default; }

.cplp-link {
	display: inline-block;
	margin: 2px 0 0;
	color: #0b73e8;
	font-weight: 700; font-size: 13.5px;
	text-decoration: none;
}
.cplp-link:hover { text-decoration: underline; }

.cplp-fine { margin: 8px 0 0; color: #98a2b3; font-size: 12.5px; line-height: 1.5; }

.cplp-msg {
	margin: 0 0 14px;
	padding: 11px 14px;
	border-radius: 12px;
	font-size: 14px; font-weight: 700;
	line-height: 1.4;
}
.cplp-msg.is-err { background: #fff1f1; border: 1px solid #f3b4b4; color: #b32d2e; }
.cplp-msg.is-ok  { background: #eafaf0; border: 1px solid #bfe8cd; color: #1a7d43; }

@media (max-width: 480px) {
	.cplp-card { padding: 26px 18px 20px; border-radius: 16px; }
}
