body:has(.ekos-auth-page) {
	height: 100dvh;
	overflow: hidden;
	background: #fff;
}

.ekos-auth-page,
.ekos-auth-page > .wp-block-post-content {
	width: 100%;
	max-width: none !important;
	margin: 0;
}

.ekos-auth {
	height: 100dvh;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 16px;
}

.ekos-auth__panel,
.ekos-auth__visual {
	position: relative;
	min-width: 0;
	min-height: calc(100dvh - 32px);
	overflow: hidden;
	border-radius: 16px;
}

.ekos-auth__panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: var(--gray);
}

.ekos-auth__logo {
	position: absolute;
	top: 60px;
	left: 50%;
	transform: translateX(-50%);
}

.ekos-auth__logo img { width: 105px; height: 28px; }

.ekos-auth__form-wrap {
	width: min(100% - 80px, 480px);
	margin: auto;
	text-align: center;
}

.ekos-auth__form-wrap h1 {
	margin: 0 0 12px;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.15;
}

.ekos-auth__lead {
	margin: 0 0 28px;
	font-size: 14px;
	line-height: 1.5;
}

.ekos-auth__lead a,
.ekos-auth__terms a,
.ekos-auth__privacy { text-decoration: underline; text-underline-offset: 3px; }

.ekos-auth__google,
.ekos-auth__email-row {
	width: 100%;
	min-height: 64px;
	border: 0;
	border-radius: 12px;
	background: #fff;
}

.ekos-auth__google {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: rgba(23, 31, 23, .48);
	font-size: 16px;
	font-weight: 600;
	cursor: not-allowed;
}

.ekos-auth__google img {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.ekos-auth__separator {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 22px 0;
	font-size: 14px;
}

.ekos-auth__separator::before,
.ekos-auth__separator::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #d9ddd9;
}

.ekos-auth__email-row {
	display: grid;
	grid-template-columns: 1fr 60px;
	overflow: hidden;
}

.ekos-auth__email-row input {
	min-width: 0;
	padding: 0 18px;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
}

.ekos-auth__email-row button {
	border: 0;
	background: transparent;
	cursor: pointer;
}

.ekos-auth__email-row button img {
	width: 10px;
	height: 18px;
	margin: auto;
	filter: brightness(0) saturate(100%);
}

.ekos-auth__email-row:focus-within { outline: 3px solid rgba(51, 89, 46, .2); }

.ekos-auth__check {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 12px;
	margin-top: 20px;
	text-align: left;
	font-size: 14px;
	line-height: 1.35;
}

.ekos-auth__check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green); }

.ekos-auth__terms {
	margin: 28px 0 0;
	color: rgba(23, 31, 23, .48);
	font-size: 13px;
	line-height: 1.65;
}

.ekos-auth__privacy {
	position: absolute;
	bottom: 32px;
	font-size: 13px;
}

.ekos-auth__visual { background: var(--green); }
.ekos-auth__visual-bg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.ekos-auth__error {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: 8px;
	background: #fff1f1;
	color: #8b1d1d;
	font-size: 14px;
	line-height: 1.4;
}

.ekos-auth--code .ekos-auth__form-wrap { width: min(100% - 80px, 600px); }
.ekos-auth__digits { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.ekos-auth__digits input {
	width: 100%;
	aspect-ratio: 1;
	min-width: 0;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	font: 600 32px/1 "Fixel Display", sans-serif;
	text-align: center;
	caret-color: var(--green);
}
.ekos-auth__digits input:focus { border-color: var(--green); outline: 0; }
.ekos-auth__restart { display: inline-flex; min-height: 56px; align-items: center; justify-content: center; padding: 16px 24px; border-radius: 10px; background: var(--yellow); font-weight: 600; }

@media (max-width: 900px) {
	body:has(.ekos-auth-page) { height: auto; overflow: auto; }
	.ekos-auth { height: auto; min-height: 100dvh; }
	.ekos-auth { grid-template-columns: 1fr; }
	.ekos-auth__visual { min-height: 420px; order: -1; }
	.ekos-auth__panel { min-height: 720px; }
}

@media (max-width: 560px) {
	.ekos-auth { gap: 8px; padding: 8px; }
	.ekos-auth__visual { min-height: 300px; }
	.ekos-auth__panel { min-height: 650px; }
	.ekos-auth__logo { top: 36px; }
	.ekos-auth__form-wrap,
	.ekos-auth--code .ekos-auth__form-wrap { width: calc(100% - 32px); }
	.ekos-auth__digits { gap: 6px; }
	.ekos-auth__digits input { border-radius: 8px; font-size: 24px; }
}
