/* KLYKX auth pages (login / register) — split-screen, on brand with the site. */
.auth-body { margin: 0; background: var(--surface, #fff); color: var(--ink-700, #1e293b); }

.auth-split {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 2.5rem 1.25rem;
	box-sizing: border-box;
	/* Subtle, clean background — a barely-there teal hint, not a teal panel. */
	background:
		radial-gradient(820px 420px at 50% -10%, rgba(1, 98, 125, 0.06), transparent 62%),
		var(--surface-2, #f6f8fc);
}

/* ---- Brand panel — removed; the auth pages are now a centered card ---- */
.auth-brandside {
	display: none;
	position: relative;
	overflow: hidden;
	flex-direction: column;
	justify-content: space-between;
	padding: 2.5rem 2.75rem;
	color: #fff;
	background:
		radial-gradient(750px 520px at 20% 8%, rgba(34, 211, 238, 0.40), transparent 62%),
		linear-gradient(150deg, #34a6c3 0%, #1490b0 50%, #05758f 100%);
}
.auth-brandside::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px);
	background-size: 22px 22px;
	opacity: 0.5;
	pointer-events: none;
}
.auth-brandside > * { position: relative; z-index: 1; }
.auth-brandside__logo img { height: 34px; width: auto; display: block; }
.auth-brandside__body { max-width: 30rem; }
.auth-eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent, #22d3ee);
	margin-bottom: 1rem;
}
.auth-brandside__head {
	font-family: var(--display, "Sora", sans-serif);
	font-weight: 800;
	font-size: clamp(1.8rem, 3vw, 2.55rem);
	line-height: 1.12;
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
	text-wrap: balance;
	color: #fff; /* override the site's global h2 ink color on the teal panel */
}
.auth-brandside__desc {
	font-size: 1.02rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
	margin: 0 0 1.75rem;
}
.auth-brandside__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.auth-brandside__points li {
	position: relative;
	padding-left: 1.8rem;
	font-size: 0.96rem;
	color: rgba(255, 255, 255, 0.9);
}
.auth-brandside__points li::before {
	content: "";
	position: absolute;
	left: 0; top: 0.15em;
	width: 1.15rem; height: 1.15rem;
	border-radius: 50%;
	background: rgba(34, 211, 238, 0.2);
	box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.6);
}
.auth-brandside__points li::after {
	content: "";
	position: absolute;
	left: 0.36rem; top: 0.34em;
	width: 0.28rem; height: 0.5rem;
	border: solid var(--accent, #22d3ee);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.auth-brandside__foot { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); margin: 0; }
.auth-brandside__foot a { color: inherit; text-decoration: underline; }

/* ---- Form panel ---- */
.auth-formside {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 0;
	width: 100%;
	background: transparent;
}
.auth-card {
	width: 100%;
	max-width: 440px;
	position: relative;
	overflow: hidden;
	margin: 0 auto;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.06);
	border-radius: 20px;
	box-shadow:
		0 24px 56px -28px rgba(15, 23, 42, 0.24),
		0 6px 18px -12px rgba(15, 23, 42, 0.10);
	padding: 2.5rem 2.25rem 2.25rem;
}
/* The register form has two-column fields, so it needs a wider card. */
.auth-body--register .auth-card { max-width: 540px; }
.auth-brand { display: block; margin: 0 auto 1.6rem; width: max-content; }
.auth-brand img { height: 32px; width: auto; display: block; }

.auth-title {
	font-family: var(--display, "Sora", sans-serif);
	font-weight: 800;
	font-size: 1.6rem;
	line-height: 1.2;
	margin: 0 0 0.35rem;
	text-align: center;
	color: var(--ink-900, #0b1220);
	letter-spacing: -0.01em;
}
.auth-sub { margin: 0 0 1.6rem; text-align: center; color: var(--ink-400, #64748b); font-size: 0.95rem; }

/* ---- Form ---- */
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-field { display: flex; flex-direction: column; gap: 0.4rem; }
.auth-field__labelrow { display: flex; align-items: baseline; justify-content: space-between; }
.auth-field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-700, #1e293b); }
.auth-field input {
	width: 100%;
	height: 44px;
	padding: 0 0.9rem;
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--ink-900, #0b1220);
	background: var(--surface-2, #f6f8fc);
	border: 1px solid var(--line, #e6eaf2);
	border-radius: var(--radius-sm, 10px);
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
	box-sizing: border-box;
}
.auth-field input::placeholder { color: var(--ink-300, #94a3b8); }
.auth-field input:focus {
	outline: none;
	background: #fff;
	border-color: var(--blue-600, #01627d);
	box-shadow: 0 0 0 3px rgba(1, 98, 125, 0.14);
}
.auth-input-wrap { position: relative; }
.auth-input-wrap input { padding-right: 2.75rem; }

/* Country code select + national number, side by side */
.auth-phone { display: flex; gap: 0.5rem; }
.auth-phone__code {
	flex: 0 0 96px;
	width: 96px;
	max-width: 40%;
	height: 44px;
	padding: 0 1.9rem 0 0.7rem;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--ink-900, #0b1220);
	background: var(--surface-2, #f6f8fc)
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round'/></svg>")
		no-repeat right 0.7rem center;
	border: 1px solid var(--line, #e6eaf2);
	border-radius: var(--radius-sm, 10px);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.auth-phone__code:focus {
	outline: none;
	border-color: var(--blue-600, #01627d);
	box-shadow: 0 0 0 3px rgba(1, 98, 125, 0.14);
}
.auth-phone input { flex: 1 1 auto; min-width: 0; }
.auth-body--register .auth-phone__code { height: 42px; }
.auth-eye {
	position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
	border: none; background: transparent; cursor: pointer;
	font-size: 1rem; opacity: 0.5; padding: 0.35rem; line-height: 1;
}
.auth-eye:hover, .auth-eye.is-on { opacity: 1; }

.cf-turnstile { margin: 0.25rem 0; min-height: 65px; }

.auth-error {
	margin: 0; padding: 0.65rem 0.8rem;
	background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px;
	color: #b91c1c; font-size: 0.85rem;
}
.auth-success {
	margin: 0; padding: 0.65rem 0.8rem;
	background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px;
	color: #047857; font-size: 0.85rem;
}

.btn--block { width: 100%; justify-content: center; }
.auth-btn-label { display: inline-block; }
.auth-spinner {
	width: 18px; height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
	border-radius: 50%; animation: auth-spin 0.7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-divider {
	display: flex; align-items: center; gap: 0.75rem; margin: 1.4rem 0;
	color: var(--ink-300, #94a3b8); font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line, #e6eaf2); }

.auth-social-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.auth-social { flex: 1 1 128px; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.auth-social img, .auth-social svg { display: block; flex: none; }

.auth-alt { margin: 1.4rem 0 0; text-align: center; font-size: 0.9rem; color: var(--ink-400, #64748b); }
.auth-link { color: var(--blue-600, #01627d); font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-link--sm { font-size: 0.8rem; font-weight: 500; }
.auth-legal { margin: 0; font-size: 0.8rem; color: var(--ink-300, #94a3b8); }
.auth-legal a { color: inherit; text-decoration: underline; }
.auth-legal--consent { text-align: center; margin: 0.9rem 0 0; line-height: 1.5; }

/* ---- Register-specific ---- */
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.auth-hint { margin: -0.35rem 0 0; font-size: 0.78rem; color: var(--ink-300, #94a3b8); }
.auth-otp-head { text-align: center; margin-bottom: 0.25rem; }
.auth-otp-title { font-family: var(--display, "Sora", sans-serif); font-weight: 700; font-size: 1.3rem; margin: 0 0 0.35rem; color: var(--ink-900, #0b1220); }
.auth-otp-input { text-align: center; letter-spacing: 0.5em; font-size: 1.4rem !important; font-weight: 600; padding-left: 0.5em !important; }

/* ---- OTP popup ---- */
.auth-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(2, 40, 52, 0.5);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}
.auth-modal[hidden] { display: none; }
.auth-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 400px;
	background: #fff;
	border-radius: var(--radius, 16px);
	box-shadow: 0 30px 60px -20px rgba(1, 98, 125, 0.4);
	padding: 2.25rem 1.9rem 1.9rem;
	animation: auth-pop 0.2s ease-out both;
}
@keyframes auth-pop {
	from { opacity: 0; transform: translateY(10px) scale(0.98); }
	to   { opacity: 1; transform: none; }
}
.auth-modal__close {
	position: absolute; top: 0.75rem; right: 0.75rem;
	width: 30px; height: 30px;
	display: flex; align-items: center; justify-content: center;
	border: none; background: transparent; cursor: pointer;
	font-size: 1.3rem; line-height: 1; color: var(--ink-300, #94a3b8);
	border-radius: 8px;
}
.auth-modal__close:hover { background: var(--surface-2, #f6f8fc); color: var(--ink-700, #1e293b); }
.auth-otp-badge {
	width: 46px; height: 46px; margin: 0 auto 0.75rem;
	display: flex; align-items: center; justify-content: center;
	border-radius: 13px;
	color: var(--blue-600, #01627d);
	background: var(--blue-50, #eef6f9);
	box-shadow: inset 0 0 0 1px var(--blue-100, #cfe6ee);
}

/* ---- Responsive: stack, hide brand panel on small screens ---- */
@media (max-width: 900px) {
	.auth-split { grid-template-columns: 1fr; }
	.auth-brandside { display: none; }
	.auth-formside { min-height: 100vh; }
}
@media (max-width: 480px) {
	.auth-card { padding: 1.75rem 1.25rem; }
	.auth-row { grid-template-columns: 1fr; }
}


/* ---- Register: compact so the whole form fits one viewport ---- */
.auth-body--register .auth-split { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.auth-body--register .auth-card { padding: 1.75rem 2rem 1.6rem; }
.auth-body--register .auth-brand { margin-bottom: 1rem; }
.auth-body--register .auth-title { font-size: 1.4rem; }
.auth-body--register .auth-sub { margin-bottom: 1.1rem; }
.auth-body--register .auth-form { gap: 0.7rem; }
.auth-body--register .auth-field input { height: 42px; }
.auth-body--register .auth-hint { font-size: 0.72rem; }
.auth-body--register .cf-turnstile { margin: 0.1rem 0; }
.auth-body--register .auth-divider { margin: 0.9rem 0; }
.auth-body--register .auth-legal--consent { margin-top: 0.7rem; }
.auth-body--register .auth-alt { margin-top: 0.9rem; }
