/* Cerko LearnPress Login – variabel warna/ukuran diisi dari pengaturan admin (inline CSS). */

.cerko-login-bg,
.cerko-login-bg *,
.cerko-login-bg *::before,
.cerko-login-bg *::after {
	box-sizing: border-box;
}

.cerko-login-bg {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--cl-minh, 100vh);
	padding: 56px 16px;
	font-family: var(--cl-font, system-ui, sans-serif);
	font-size: 16px;
	line-height: 1.5;
	color: var(--cl-text, #fff);
	background:
		radial-gradient(90% 55% at 50% 108%, var(--cl-bg-bottom, #b8454a) 0%, transparent 70%),
		linear-gradient(180deg, var(--cl-bg-top, #000) 0%, var(--cl-bg-top, #000) 36%, var(--cl-bg-mid, #3a0808) 72%, var(--cl-bg-bottom, #b8454a) 100%);
}

.cerko-login-bg.is-transparent {
	background: none;
}

.cerko-login-bg.is-fullbleed {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* ---------- Kartu ---------- */
.cerko-login-bg .cerko-login {
	position: relative;
	width: 100%;
	max-width: var(--cl-width, 440px);
	padding: 28px 28px 24px;
	border: 1px solid var(--cl-card-border, #3b2f2f);
	border-radius: var(--cl-radius-card, 28px);
	background: var(--cl-card, rgba(27, 23, 23, .78));
	-webkit-backdrop-filter: blur(var(--cl-blur, 18px));
	backdrop-filter: blur(var(--cl-blur, 18px));
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
	text-align: left;
}

.cerko-login-bg .cerko-login__logo {
	display: block;
	height: var(--cl-logo-h, 36px);
	width: auto;
	max-width: 70%;
	margin: 0 0 20px;
}

/* ---------- Tombol tutup ---------- */
.cerko-login-bg .cerko-login__close {
	position: absolute;
	top: 22px;
	right: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--cl-input-bg, #2a2424);
	color: var(--cl-text, #fff);
	text-decoration: none;
	transition: background-color .15s ease;
}

.cerko-login-bg .cerko-login__close:hover {
	background: var(--cl-primary, #800000);
	color: var(--cl-btn-text, #fff);
}

/* ---------- Tab ---------- */
.cerko-login-bg .cerko-tabs {
	display: inline-flex;
	gap: 2px;
	padding: 5px;
	border: 1px solid var(--cl-input-border, #3d3333);
	border-radius: 999px;
	background: rgba(0, 0, 0, .38);
}

.cerko-login-bg .cerko-tabs button {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 10px 22px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	color: var(--cl-muted, #a99d9d);
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.cerko-login-bg .cerko-tabs button:hover {
	color: var(--cl-text, #fff);
	background: transparent;
}

.cerko-login-bg .cerko-tabs button[aria-selected="true"] {
	background: var(--cl-input-bg, #2a2424);
	color: var(--cl-text, #fff);
}

/* ---------- Judul & teks ---------- */
.cerko-login-bg .cerko-login__title {
	margin: 34px 0 6px;
	padding: 0;
	font-family: inherit;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--cl-text, #fff);
}

.cerko-login-bg .cerko-login__subtitle {
	margin: 0 0 24px;
	font-size: 15px;
	color: var(--cl-muted, #a99d9d);
}

.cerko-login-bg .cerko-login__title + .cerko-login__text {
	margin-top: 14px;
}

.cerko-login-bg .cerko-login__text {
	margin: 0 0 26px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--cl-muted, #a99d9d);
}

.cerko-login-bg .cerko-login__text p {
	margin: 0 0 .6em;
	color: inherit;
}

.cerko-login-bg .cerko-login__text a,
.cerko-login-bg .cerko-login__footer a {
	color: var(--cl-text, #fff);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cerko-login-bg .cerko-login__title:first-child {
	margin-top: 0;
}

/* ---------- Form ---------- */
.cerko-login-bg .cerko-field {
	margin: 0 0 16px;
}

.cerko-login-bg .cerko-field label {
	display: block;
	margin: 0 0 7px;
	font-size: 14px;
	font-weight: 500;
	color: var(--cl-muted, #a99d9d);
}

.cerko-login-bg .cerko-field input[type="text"],
.cerko-login-bg .cerko-field input[type="password"] {
	display: block;
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--cl-input-border, #3d3333);
	border-radius: var(--cl-radius-input, 12px);
	background: var(--cl-input-bg, #2a2424);
	box-shadow: none;
	font: inherit;
	font-size: 16px;
	color: var(--cl-input-text, #fff);
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.cerko-login-bg .cerko-field input::placeholder {
	color: var(--cl-muted, #a99d9d);
	opacity: .7;
}

.cerko-login-bg .cerko-field input:focus {
	border-color: var(--cl-primary-light, #a51c1c);
	box-shadow: 0 0 0 3px rgba(var(--cl-primary-rgb, 128, 0, 0), .45);
}

.cerko-login-bg .cerko-field input:-webkit-autofill {
	-webkit-text-fill-color: var(--cl-input-text, #fff);
	-webkit-box-shadow: 0 0 0 100px var(--cl-input-bg, #2a2424) inset;
	caret-color: var(--cl-input-text, #fff);
}

.cerko-login-bg .cerko-pass {
	position: relative;
}

.cerko-login-bg .cerko-pass input {
	padding-right: 52px;
}

.cerko-login-bg .cerko-pass__toggle {
	position: absolute;
	top: 50%;
	right: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	color: var(--cl-muted, #a99d9d);
	cursor: pointer;
	transform: translateY(-50%);
}

.cerko-login-bg .cerko-pass__toggle:hover,
.cerko-login-bg .cerko-pass__toggle[aria-pressed="true"] {
	background: transparent;
	color: var(--cl-text, #fff);
}

.cerko-login-bg .cerko-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 2px 0 22px;
	font-size: 14px;
}

.cerko-login-bg .cerko-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--cl-muted, #a99d9d);
	cursor: pointer;
}

.cerko-login-bg .cerko-check input {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--cl-primary-light, #a51c1c);
}

.cerko-login-bg .cerko-link {
	color: var(--cl-text, #fff);
	text-decoration: none;
}

.cerko-login-bg .cerko-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Tombol utama ---------- */
.cerko-login-bg .cerko-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0 20px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: var(--cl-radius-input, 12px);
	background: linear-gradient(180deg, var(--cl-primary-light, #a51c1c) 0%, var(--cl-primary, #800000) 100%);
	box-shadow: 0 10px 28px rgba(var(--cl-primary-rgb, 128, 0, 0), .35), inset 0 1px 0 rgba(255, 255, 255, .18);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	color: var(--cl-btn-text, #fff);
	cursor: pointer;
	transition: filter .15s ease, transform .1s ease;
}

.cerko-login-bg .cerko-btn:hover {
	filter: brightness(1.12);
	color: var(--cl-btn-text, #fff);
}

.cerko-login-bg .cerko-btn:active {
	transform: translateY(1px);
}

.cerko-login-bg .cerko-btn:disabled {
	opacity: .65;
	cursor: wait;
}

/* ---------- Error ---------- */
.cerko-login-bg .cerko-alert {
	margin: 0 0 18px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 120, 120, .4);
	border-radius: var(--cl-radius-input, 12px);
	background: rgba(255, 90, 90, .12);
	font-size: 14px;
	color: var(--cl-error, #ff9b9b);
}

/* ---------- Footer ---------- */
.cerko-login-bg .cerko-login__footer {
	margin: 22px 0 0;
	font-size: 14px;
	text-align: center;
	color: var(--cl-muted, #a99d9d);
}

.cerko-login-bg .cerko-login__footer p {
	margin: 0;
}

/* ---------- Aksesibilitas ---------- */
.cerko-login-bg .cerko-tabs button:focus-visible,
.cerko-login-bg .cerko-btn:focus-visible,
.cerko-login-bg .cerko-link:focus-visible,
.cerko-login-bg .cerko-login__close:focus-visible,
.cerko-login-bg .cerko-pass__toggle:focus-visible {
	outline: 2px solid var(--cl-primary-light, #a51c1c);
	outline-offset: 2px;
}

.cerko-login-bg [hidden] {
	display: none !important;
}

@media (max-width: 480px) {
	.cerko-login-bg {
		padding: 28px 12px;
	}

	.cerko-login-bg .cerko-login {
		padding: 22px 18px 20px;
	}

	.cerko-login-bg .cerko-login__close {
		top: 18px;
		right: 18px;
		width: 40px;
		height: 40px;
	}

	.cerko-login-bg .cerko-login__title {
		font-size: 24px;
	}

	.cerko-login-bg .cerko-tabs button {
		padding: 9px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cerko-login-bg * {
		transition: none !important;
	}
}
