/* ==========================================================================
   Auth screens — full-bleed split matching the reference login layout.
   Left: branded panel · Right: raised form card on white.
   ========================================================================== */

.whcp-auth {
	--whcp-auth-navy: #0a1628;
	--whcp-auth-mid: #1a2f55;
	--whcp-auth-accent: #23b7c9;
	--whcp-auth-link: #2563eb;
	--whcp-auth-soft: #f3f5f9;
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	min-height: 100vh;
	margin: 0;
	background: #fff;
	isolation: isolate;
}

/* —— Left panel ————————————————————————————————————————— */

.whcp-auth__aside {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(28px, 4vw, 48px) clamp(28px, 4.5vw, 56px);
	color: #e8eef8;
	overflow: hidden;
	background:
		linear-gradient(165deg, #07111f 0%, #122744 42%, #1e3a6e 72%, #2a4a8a 100%);
	animation: whcp-auth-aside .55s ease both;
}

/* Soft grid / mesh */
.whcp-auth__aside::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
	pointer-events: none;
}

.whcp-auth__aside::after {
	content: "";
	position: absolute;
	inset: auto -30% -40% 20%;
	height: 75%;
	background: radial-gradient(circle, rgba(35, 183, 201, .22), transparent 62%);
	pointer-events: none;
}

.whcp-auth__aside-top,
.whcp-auth__aside-body,
.whcp-auth__aside-foot {
	position: relative;
	z-index: 1;
}

.whcp-auth__logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none !important;
	color: #fff !important;
}

.whcp-auth__logo-img {
	display: block;
	height: 40px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.whcp-auth__logo-mark {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: -.5px;
	color: #fff;
	background: linear-gradient(135deg, #2563eb, #23b7c9);
	box-shadow: 0 8px 20px rgba(37, 99, 235, .35);
}

.whcp-auth__logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.whcp-auth__logo-text strong {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.3px;
}

.whcp-auth__logo-text small {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #9db1ce;
	margin-top: 2px;
}

.whcp-auth__aside-body {
	max-width: 420px;
	padding: 40px 0;
}

.whcp-auth__kicker {
	margin: 0 0 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--whcp-auth-accent);
}

.whcp-auth__aside-title {
	margin: 0 0 14px;
	font-size: clamp(32px, 3.6vw, 44px);
	line-height: 1.12;
	letter-spacing: -.8px;
	font-weight: 700;
	color: #fff;
}

.whcp-auth__aside-lead {
	margin: 0 0 28px;
	font-size: 15px;
	line-height: 1.65;
	color: rgba(220, 230, 245, .78);
	max-width: 36ch;
}

.whcp-auth__points {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.whcp-auth__points li {
	position: relative;
	padding: 0 0 0 30px;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(232, 238, 248, .92);
	font-weight: 500;
}

.whcp-auth__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(35, 183, 201, .18);
	box-shadow: inset 0 0 0 1.5px var(--whcp-auth-accent);
}

.whcp-auth__points li::after {
	content: "";
	position: absolute;
	left: 5px;
	top: .55em;
	width: 5px;
	height: 8px;
	border: solid var(--whcp-auth-accent);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.whcp-auth__aside-foot {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: rgba(157, 177, 206, .55);
}

/* —— Right: form column ———————————————————————————————— */

.whcp-auth__main {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 64px);
	background: #fff;
	animation: whcp-auth-main .5s .06s ease both;
}

.whcp-auth__back {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 22px;
	width: min(620px, 100%);
	font-size: 13px;
	font-weight: 600;
	color: #64748b !important;
	text-decoration: none !important;
}

.whcp-auth__back span {
	font-size: 18px;
	line-height: 1;
	margin-top: -1px;
}

.whcp-auth__back:hover { color: var(--whcp-navy) !important; }

.whcp-auth__card {
	width: min(620px, 100%);
	background: #fff;
	border: 1px solid #e8edf5;
	border-radius: 22px;
	padding: clamp(28px, 4vw, 36px) clamp(24px, 3.5vw, 34px);
	box-shadow: 0 18px 50px rgba(15, 30, 60, .08);
}

.whcp-auth__eyebrow {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #60a5fa;
}

.whcp-auth__title {
	margin: 0 0 22px;
	font-size: clamp(28px, 3.2vw, 36px);
	line-height: 1.12;
	letter-spacing: -.7px;
	color: var(--whcp-navy);
	font-weight: 700;
}

.whcp-auth__lead {
	margin: -10px 0 20px;
	color: var(--whcp-muted);
	font-size: 14px;
	line-height: 1.55;
}

.whcp-auth__form > p { margin: 0 0 16px; }

.whcp-auth .whcp-form label {
	font-size: 13px;
	font-weight: 700;
	color: var(--whcp-navy);
	margin-bottom: 7px;
}

.whcp-auth .whcp-form input[type="text"],
.whcp-auth .whcp-form input[type="email"],
.whcp-auth .whcp-form input[type="password"] {
	padding: 13px 15px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	background: var(--whcp-auth-soft);
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.whcp-auth .whcp-form input:focus {
	outline: none;
	background: #fff;
	border-color: #93c5fd;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.whcp-auth__pass {
	display: flex;
	align-items: stretch;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: var(--whcp-auth-soft);
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.whcp-auth__pass:focus-within {
	background: #fff;
	border-color: #93c5fd;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.whcp-auth__pass input {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	flex: 1;
	min-width: 0;
}

.whcp-auth__toggle {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 46px;
	border: 0;
	background: transparent;
	color: #94a3b8;
	cursor: pointer;
	padding: 0;
}

.whcp-auth__toggle svg {
	grid-area: 1 / 1;
	display: block;
}

.whcp-auth__toggle .whcp-auth__icon-hide,
.whcp-auth__toggle.is-revealed .whcp-auth__icon-show {
	display: none;
}

.whcp-auth__toggle.is-revealed .whcp-auth__icon-hide {
	display: block;
}

.whcp-auth__toggle:hover { color: var(--whcp-navy); }

.whcp-auth__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 13px;
	margin-bottom: 20px !important;
}

.whcp-auth__row a {
	font-weight: 600;
	color: var(--whcp-auth-link) !important;
	text-decoration: none !important;
}

.whcp-auth__row a:hover { text-decoration: underline !important; }

.whcp-auth__check {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	font-weight: 500 !important;
	margin: 0 !important;
	cursor: pointer;
	color: #475569 !important;
}

.whcp-auth__check input {
	width: 15px;
	height: 15px;
	accent-color: var(--whcp-auth-link);
}

.whcp-auth__submit,
.whcp-auth .whcp-auth__submit.whcp-btn {
	padding: 14px 20px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	margin-top: 2px;
	border: 0;
	background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 55%, #0ea5e9 100%);
	box-shadow: 0 10px 24px rgba(37, 99, 235, .28);
	transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}

.whcp-auth__submit:hover,
.whcp-auth .whcp-auth__submit.whcp-btn:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(37, 99, 235, .34);
}

.whcp-auth .whcp-notice { margin-bottom: 16px; }

.whcp-auth__switch {
	margin: 22px 0 0;
	width: min(620px, 100%);
	text-align: center;
	font-size: 14px;
	color: #64748b;
}

.whcp-auth__switch a {
	font-weight: 700;
	color: var(--whcp-auth-link) !important;
	text-decoration: none !important;
	margin-left: 4px;
}

.whcp-auth__switch a:hover { text-decoration: underline !important; }

.whcp-auth__resend {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid #e8edf5;
}

.whcp-auth__meter {
	display: block;
	height: 4px;
	border-radius: 4px;
	background: #e9eef6;
	margin-top: 8px;
	overflow: hidden;
}

.whcp-auth__meter span {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 4px;
	transition: width .2s ease, background .2s ease;
}

.whcp-auth__meter[data-level="1"] span { width: 25%; background: var(--whcp-red); }
.whcp-auth__meter[data-level="2"] span { width: 45%; background: var(--whcp-amber); }
.whcp-auth__meter[data-level="3"] span { width: 70%; background: #ca8a04; }
.whcp-auth__meter[data-level="4"] span { width: 100%; background: var(--whcp-green); }

.whcp-auth__hint,
.whcp-auth__match {
	display: block;
	margin-top: 6px;
	min-height: 1.2em;
}

.whcp-auth__match { color: var(--whcp-red); font-weight: 600; }
.whcp-auth__pass-wrap { margin-bottom: 16px !important; }

@keyframes whcp-auth-aside {
	from { opacity: 0; transform: translateX(-14px); }
	to   { opacity: 1; transform: none; }
}

@keyframes whcp-auth-main {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

/* Theme shell */
body.is-auth-page {
	margin: 0;
	background: #fff;
}

body.is-auth-page .auth-page {
	min-height: 100vh;
}

body.is-auth-page .auth-page > .whcp-auth {
	min-height: 100vh;
}

/* —— Responsive ————————————————————————————————————————— */

@media (max-width: 960px) {
	.whcp-auth {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.whcp-auth__aside {
		min-height: auto;
		padding: 24px 22px 28px;
	}

	.whcp-auth__aside-body {
		padding: 28px 0 12px;
	}

	.whcp-auth__aside-title {
		font-size: clamp(26px, 7vw, 32px);
	}

	.whcp-auth__points li:nth-child(n+3) {
		display: none;
	}

	.whcp-auth__main {
		padding: 28px 18px 40px;
		align-items: stretch;
	}

	.whcp-auth__back,
	.whcp-auth__switch {
		width: 100%;
		align-self: stretch;
	}

	.whcp-auth__card {
		width: 100%;
		box-shadow: 0 12px 36px rgba(15, 30, 60, .07);
	}
}

@media (max-width: 480px) {
	.whcp-auth__card {
		padding: 24px 18px;
		border-radius: 18px;
	}

	.whcp-auth__row {
		flex-direction: column;
		align-items: flex-start;
	}

	.whcp-auth__aside-foot {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.whcp-auth__aside,
	.whcp-auth__main { animation: none; }
	.whcp-auth__submit:hover { transform: none; }
}

.whcp-auth__logo-img.is-footer { filter: none; height: auto; max-height: 56px; max-width: 220px; }
.whcp-auth__logo-svg { flex: none; width: 54px; height: 42px; }

/* ---- Sign-in verification code page ---- */
.whcp-lv__card { text-align: center; }
.whcp-lv__badge { display: inline-grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 20px; background: linear-gradient(135deg, #e8f0ff, #d6e6ff); color: #0a5cf0; box-shadow: 0 10px 24px rgba(10, 92, 240, .16); }
.whcp-lv__lead { margin: 6px auto 22px; max-width: 380px; color: #5b6b85; font-size: 15px; line-height: 1.65; }
.whcp-lv__lead strong { color: #0a1840; font-weight: 600; word-break: break-all; }
.whcp-lv__alert { margin: 0 0 18px; padding: 11px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; text-align: left; }
.whcp-lv__alert.is-error { background: #fdecec; color: #b42318; border: 1px solid #f5c2c0; }
.whcp-lv__alert.is-ok { background: #e9f8ef; color: #17693a; border: 1px solid #bfe6cd; }
.whcp-lv__boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; max-width: 360px; margin: 0 auto 14px; }
.whcp-auth .whcp-form input.whcp-lv__box { width: 100%; height: 58px; padding: 0; border: 1.5px solid #d5deee; border-radius: 12px; background: #f8faff; color: #0a1840; font: 600 24px/1 inherit; text-align: center; caret-color: #0a5cf0; transition: border-color .15s, box-shadow .15s, background .15s, transform .15s; }
.whcp-auth .whcp-form input.whcp-lv__box.is-filled { background: #fff; border-color: #9ec0ff; }
.whcp-auth .whcp-form input.whcp-lv__box:focus { outline: 0; background: #fff; border-color: #0a5cf0; box-shadow: 0 0 0 4px rgba(10, 92, 240, .15); transform: translateY(-1px); }
.whcp-lv__timer { margin: 0 0 18px; color: #6b7a93; font-size: 13.5px; }
.whcp-lv__timer b { color: #0a5cf0; font-variant-numeric: tabular-nums; }
.whcp-lv.is-expired .whcp-lv__timer b { color: #b42318; }
.whcp-lv__form .whcp-auth__submit[disabled] { opacity: .55; cursor: not-allowed; }
.whcp-lv__resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid #e8eef8; color: #6b7a93; font-size: 14px; }
.whcp-lv__link { padding: 0; border: 0; background: none; color: #0a5cf0; font: 600 14px/1.4 inherit; cursor: pointer; }
.whcp-lv__link:hover:not([disabled]) { text-decoration: underline; }
.whcp-lv__link[disabled] { color: #98a4ba; cursor: default; }
.whcp-lv__hint { margin: 14px 0 0; color: #8a97ad; font-size: 12.5px; line-height: 1.6; }
@media (max-width: 420px) { .whcp-lv__boxes { gap: 7px; } .whcp-auth .whcp-form input.whcp-lv__box { height: 52px; font-size: 21px; } }
body.whcp-lv-page { margin: 0 !important; padding: 0 !important; background: #fff; }
html:has(body.whcp-lv-page) { margin-top: 0 !important; }
.whcp-lv-page .whcp-auth { margin-top: 0; }
.whcp-lv__lead strong { word-break: normal; overflow-wrap: anywhere; }
.whcp-lv__form .whcp-auth__submit[disabled] { opacity: .6; }
.whcp-lv__form .whcp-auth__submit[disabled] { opacity: 1; background: #c7d5ee; box-shadow: none; color: #fff; }
