/* ============================================================
   CPOVerified — auth pages (login / signup / password flows)
   Self-contained shell: elevated split card on a soft blue canvas.
   The legacy theme header/footer CSS is deliberately neutralised so
   these pages always stay centred and on-brand.
   ============================================================ */

body.cpo-auth-body {
	margin: 0;
	padding: 24px;
	min-height: 100vh;
	background:
		radial-gradient(900px 500px at 100% -10%, rgba(8, 102, 245, .10), transparent 60%),
		radial-gradient(700px 500px at -10% 110%, rgba(8, 102, 245, .08), transparent 55%),
		#f3f6fc;
	color: var(--cpo-ink, #0d1117);
	font-family: 'Poppins', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* the theme injects an overlay + footer on auth pages — drop them */
body.cpo-auth-body #page-overlay,
body.cpo-auth-body .footer_part,
body.cpo-auth-body .login-bg-image { display: none !important; }

.cpo-auth {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1120px;
	min-height: min(680px, calc(100vh - 48px));
	margin: 0 auto;
	background: #fff;
	border: 1px solid #e4eaf4;
	border-radius: 26px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(7, 23, 57, .13), 0 4px 18px rgba(7, 23, 57, .05);
}

/* ---------- layout ---------- */
.cpo-auth-panel { display: none; }

.cpo-auth-main {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 36px 22px 42px;
	width: 100%;
	background: #fff;
}

.cpo-auth-card {
	width: 100%;
	max-width: 404px;
	margin: 0 auto;
}

/* ---------- brand ---------- */
.cpo-auth-logo {
	display: flex;
	justify-content: center;
	margin-bottom: 24px;
}
.cpo-auth-logo a { display: inline-flex; }
.cpo-auth-logo img {
	display: block;
	width: auto;
	height: auto;
	max-height: 48px;
	max-width: 190px;
	object-fit: contain;
}

/* ---------- headings ---------- */
.cpo-auth-title {
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.2;
	color: var(--cpo-ink, #0d1117);
	margin: 0 0 7px;
	text-align: center;
}
.cpo-auth-sub {
	font-size: .88rem;
	line-height: 1.55;
	color: var(--cpo-muted, #6b7280);
	margin: 0 0 26px;
	text-align: center;
}
.cpo-auth-sub a { font-weight: 600; }

/* ---------- fields ---------- */
.cpo-field { margin-bottom: 14px; }
.cpo-field > label {
	display: block;
	font-size: .78rem;
	font-weight: 600;
	color: var(--cpo-ink, #0d1117);
	margin-bottom: 6px;
}
.cpo-input-wrap { position: relative; }
.cpo-input-wrap > i {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: .85rem;
	color: #9aa0ac;
	pointer-events: none;
	z-index: 1;
}
.cpo-input-wrap .form-control {
	display: block;
	width: 100%;
	height: 48px;
	border-radius: 12px;
	border: 1px solid var(--cpo-line, #e8ebf0);
	background: #fbfcfe;
	color: var(--cpo-ink, #0d1117);
	font-size: .9rem;
	line-height: 1.4;
	padding: 0 14px 0 42px;
	box-shadow: none;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.cpo-input-wrap .form-control:hover { border-color: #d6deea; }
.cpo-input-wrap select.form-control {
	padding-right: 34px;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
}
.cpo-input-wrap .form-control:focus {
	border-color: var(--cpo-blue, #0866F5);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(8, 102, 245, .12);
}
.cpo-input-wrap .form-control::placeholder { color: #a6adba; }

/* two-up rows collapse on phones */
.cpo-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cpo-field-row .cpo-field { margin-bottom: 0; }
@media (max-width: 480px) {
	.cpo-field-row { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- checkbox / inline links ---------- */
.cpo-auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin: 4px 0 20px;
}
.cpo-check {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	font-size: .8rem;
	line-height: 1.4;
	color: var(--cpo-muted, #6b7280);
	margin: 0;
	cursor: pointer;
}
.cpo-check input {
	width: 15px;
	height: 15px;
	margin: 2px 0 0;
	accent-color: var(--cpo-blue, #0866F5);
	flex: 0 0 auto;
}
.cpo-auth-link {
	font-size: .8rem;
	font-weight: 600;
	color: var(--cpo-blue, #0866F5);
	text-decoration: none;
}
.cpo-auth-link:hover { color: var(--cpo-blue-dark, #0552c9); text-decoration: underline; }

/* ---------- submit ---------- */
.cpo-auth-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 50px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(180deg, #1a74ff, var(--cpo-blue, #0866F5));
	color: #fff;
	font-size: .92rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(8, 102, 245, .22);
	transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.cpo-auth-submit:hover { background: linear-gradient(180deg, #0866F5, var(--cpo-blue-dark, #0552c9)); box-shadow: 0 12px 26px rgba(8, 102, 245, .28); }
.cpo-auth-submit:active { transform: scale(.995); }

/* ---------- footer bits ---------- */
.cpo-auth-switch {
	text-align: center;
	font-size: .84rem;
	color: var(--cpo-muted, #6b7280);
	margin-top: 22px;
}
.cpo-auth-switch a { font-weight: 700; color: var(--cpo-blue, #0866F5); text-decoration: none; }
.cpo-auth-switch a:hover { color: var(--cpo-blue-dark, #0552c9); }

.cpo-auth-legal {
	text-align: center;
	font-size: .72rem;
	line-height: 1.6;
	color: #9aa0ac;
	margin-top: 24px;
}
.cpo-auth-legal a { color: var(--cpo-muted, #6b7280); text-decoration: underline; }

.cpo-auth-recaptcha {
	display: flex;
	justify-content: center;
	margin: 4px 0 18px;
	transform-origin: center;
}
@media (max-width: 360px) {
	.cpo-auth-recaptcha { transform: scale(.9); }
}

/* ---------- desktop: marketing panel ---------- */
@media (min-width: 992px) {
	.cpo-auth { flex-direction: row; align-items: stretch; }

	.cpo-auth-panel {
		display: flex;
		flex: 0 0 46%;
		flex-direction: column;
		justify-content: space-between;
		position: relative;
		overflow: hidden;
		padding: 46px 46px 34px;
		background:
			radial-gradient(560px 380px at 15% 0%, rgba(90, 160, 255, .55), transparent 62%),
			linear-gradient(155deg, #0b5be0 0%, #0747b8 55%, #053286 100%);
		color: #fff;
	}
	.cpo-auth-panel::before,
	.cpo-auth-panel::after {
		content: '';
		position: absolute;
		border-radius: 50%;
		pointer-events: none;
	}
	.cpo-auth-panel::before {
		width: 340px;
		height: 340px;
		right: -120px;
		top: -90px;
		background: rgba(255, 255, 255, .08);
	}
	.cpo-auth-panel::after {
		width: 260px;
		height: 260px;
		right: -70px;
		bottom: -120px;
		border: 1px solid rgba(255, 255, 255, .14);
		background: rgba(255, 255, 255, .03);
	}
	.cpo-auth-panel > div,
	.cpo-auth-panel > footer { position: relative; z-index: 2; }

	.cpo-auth-main {
		flex: 1 1 54%;
		padding: 48px 56px;
	}

	.cpo-auth-panel .cpo-auth-panel-brand {
		display: inline-flex;
		align-items: center;
		background: rgba(255, 255, 255, .95);
		border-radius: 14px;
		padding: 10px 16px;
		max-width: 210px;
		box-shadow: 0 10px 26px rgba(3, 24, 64, .18);
	}
	.cpo-auth-panel .cpo-auth-panel-brand img {
		display: block;
		width: auto;
		height: auto;
		max-height: 38px;
		max-width: 178px;
		object-fit: contain;
	}
	.cpo-auth-panel h2,
	.cpo-auth-panel p,
	.cpo-auth-panel li,
	.cpo-auth-panel footer { color: #fff; }
	.cpo-auth-panel h2 {
		font-size: 2.02rem;
		font-weight: 800;
		letter-spacing: -.03em;
		line-height: 1.14;
		margin: 34px 0 14px;
	}
	.cpo-auth-panel p {
		font-size: .94rem;
		line-height: 1.62;
		opacity: .84;
		max-width: 36ch;
		margin: 0;
	}
	.cpo-auth-points {
		list-style: none;
		padding: 0;
		margin: 32px 0 0;
	}
	.cpo-auth-points li {
		display: flex;
		align-items: center;
		gap: 12px;
		font-size: .88rem;
		font-weight: 500;
		padding: 12px 0;
		border-bottom: 1px solid rgba(255, 255, 255, .14);
	}
	.cpo-auth-points li:last-child { border-bottom: 0; }
	.cpo-auth-points i {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 28px;
		height: 28px;
		border-radius: 50%;
		background: rgba(255, 255, 255, .16);
		font-size: .78rem;
		flex: 0 0 auto;
	}
	.cpo-auth-panel footer {
		font-size: .76rem;
		opacity: .68;
	}
}

/* hide the marketing panel on short landscape phones */
@media (max-height: 520px) and (max-width: 991px) {
	body.cpo-auth-body { padding: 12px; }
	.cpo-auth-main { padding-top: 22px; padding-bottom: 22px; }
	.cpo-auth-logo { margin-bottom: 16px; }
}

@media (max-width: 991px) {
	body.cpo-auth-body { padding: 14px; }
	.cpo-auth { border-radius: 20px; min-height: 0; }
}
