/*
 * Portal Jurnal Pascasarjana UIN KHAS Jember - tampilan halaman portal (site index).
 *
 * File ini dimuat OJS di SEMUA halaman frontend (termasuk halaman tiap jurnal), jadi:
 * - header/footer/form/scrollbar dibatasi ke halaman level situs lewat body:has(.kp-footer)
 *   (.kp-footer berasal dari "Page footer" situs, tidak ada di halaman jurnal);
 * - hero & kartu jurnal dibatasi ke beranda portal lewat .page_index_site.
 * Upload via: Administration > Site Settings > Appearance > Style sheet.
 */

body:has(.kp-footer) {
	--kp-navy: #0b2f4a;
	--kp-blue: #1e6292;
	--kp-teal: #1a8a8a;
	--kp-gold: #d4a53c;
	--kp-bg: #f3f6f9;
	--kp-card: #ffffff;
	--kp-text: #1f2d3a;
	--kp-muted: #5b6b7a;
	--kp-line: #e3e9ef;
	--kp-radius: 16px;
	--kp-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1.2'%3E%3Cpath d='M40 8l9.4 22.6L72 40l-22.6 9.4L40 72l-9.4-22.6L8 40l22.6-9.4z'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3C/g%3E%3C/svg%3E");
	background: var(--kp-bg);
	color: var(--kp-text);
}

/* ---------- Header ---------- */
body:has(.kp-footer) .pkp_structure_page {
	background: var(--kp-bg);
	max-width: none;
	width: 100%;
	margin: 0;
}
body:has(.kp-footer) .pkp_structure_head {
	background: var(--kp-pattern), linear-gradient(135deg, var(--kp-navy) 0%, var(--kp-blue) 60%, var(--kp-teal) 100%);
	border-bottom: 4px solid var(--kp-gold);
}
body:has(.kp-footer) .pkp_head_wrapper {
	max-width: 1240px;
	width: auto;
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
}
body:has(.kp-footer) .pkp_site_name_wrapper {
	padding: 28px 0 44px;
	text-align: center;
}
body:has(.kp-footer) .pkp_site_name .is_text {
	display: inline-block;
	max-width: 900px;
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
body:has(.kp-footer) .pkp_site_name .is_text:hover,
body:has(.kp-footer) .pkp_site_name .is_text:focus {
	color: #fff;
	text-decoration: none;
}
body:has(.kp-footer) .pkp_head_wrapper {
	display: flex;
	flex-direction: column;
	padding-top: 0;
}
/* Menu Register/Login: di atas judul, rata kanan */
body:has(.kp-footer) .pkp_site_nav_menu {
	order: -1;
	position: static;
	width: auto;
	padding: 16px 0 0;
	background: transparent;
}
body:has(.kp-footer) .pkp_navigation_primary_row {
	display: none;
}
body:has(.kp-footer) .pkp_navigation_user_wrapper {
	position: static;
	left: auto;
	width: auto;
	transform: none;
	padding: 0;
	display: flex;
	justify-content: flex-end;
}
body:has(.kp-footer) .pkp_navigation_user,
body:has(.kp-footer) .pkp_navigation_user.pkp_navigation_user {
	display: flex;
	gap: 10px;
	width: auto;
	margin: 0 0 0 auto;
	padding: 0;
}
body:has(.kp-footer) .pkp_site_name_wrapper {
	width: auto;
	height: auto;
}
body:has(.kp-footer) .pkp_site_name {
	position: static;
	white-space: normal;
	overflow: visible;
	padding: 0;
}
body:has(.kp-footer) .pkp_navigation_user > li:last-child > a {
	margin-right: 0;
}
body:has(.kp-footer) .pkp_navigation_user > li > a {
	display: inline-block;
	padding: 6px 16px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 999px;
	color: #fff;
	font-weight: 600;
	transition: background 0.2s, color 0.2s;
}
body:has(.kp-footer) .pkp_navigation_user > li:last-child > a {
	background: var(--kp-gold);
	border-color: var(--kp-gold);
	color: var(--kp-navy);
}
body:has(.kp-footer) .pkp_navigation_user > li > a:hover,
body:has(.kp-footer) .pkp_navigation_user > li > a:focus {
	background: #fff;
	border-color: #fff;
	color: var(--kp-navy);
	text-decoration: none;
}

/* ---------- Layout ---------- */
body:has(.kp-footer) .pkp_structure_content {
	max-width: 1240px;
	width: auto;
	margin: 0 auto;
	padding: 0 24px 72px;
	background: transparent;
}
body:has(.kp-footer) .pkp_structure_main {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	background: transparent;
}
body:has(.kp-footer) .pkp_structure_main::before,
body:has(.kp-footer) .pkp_structure_main::after,
body:has(.kp-footer) .pkp_structure_content::before,
body:has(.kp-footer) .pkp_structure_content::after {
	display: none;
}
body:has(.kp-footer) .pkp_structure_sidebar {
	display: none;
}

/* ---------- Hero (isi dari "About the site") ---------- */
.page_index_site .about_site {
	margin: -28px 0 40px;
	padding: 0;
	border: 0;
}
.page_index_site .kp-hero {
	position: relative;
	padding: 36px 40px;
	background: var(--kp-card);
	border-radius: var(--kp-radius);
	box-shadow: 0 10px 30px rgba(11, 47, 74, 0.10);
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
}
.page_index_site .kp-hero .kp-eyebrow {
	display: inline-block;
	margin: 0 0 10px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(212, 165, 60, 0.15);
	color: #8a6414;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.page_index_site .kp-hero h2 {
	margin: 0 0 12px;
	font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem);
	line-height: 1.3;
	color: var(--kp-navy);
}
.page_index_site .kp-hero p {
	margin: 0;
	color: var(--kp-muted);
	font-size: 1rem;
	line-height: 1.7;
}
.page_index_site .kp-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.page_index_site .kp-stats li {
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--kp-bg);
	border: 1px solid var(--kp-line);
}
.page_index_site .kp-stats strong {
	display: block;
	font-size: 1.35rem;
	line-height: 1.2;
	color: var(--kp-blue);
}
.page_index_site .kp-stats span {
	font-size: 0.85rem;
	color: var(--kp-muted);
}

/* ---------- Judul bagian ---------- */
.page_index_site .journals {
	padding-top: 8px;
}
.page_index_site .journals > h2 {
	position: static !important;
	left: auto;
	width: auto;
	height: auto;
	overflow: visible;
	clip: auto;
	clip-path: none;
	white-space: normal;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 24px;
	padding: 0;
	font-size: 1.4rem;
	color: var(--kp-navy);
	border: 0;
}
.page_index_site .journals > h2::after {
	content: "";
	flex: 1;
	height: 2px;
	background: linear-gradient(90deg, var(--kp-gold), transparent);
}

/* ---------- Grid kartu jurnal ---------- */
.page_index_site .journals > ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.page_index_site .journals > ul > li {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border: 1px solid var(--kp-line);
	border-radius: var(--kp-radius);
	background: var(--kp-card);
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(11, 47, 74, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page_index_site .journals > ul > li:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(11, 47, 74, 0.14);
}
.page_index_site .journals > ul > li::before,
.page_index_site .journals > ul > li::after {
	display: none;
}

/* Thumbnail */
.page_index_site .journals .thumb,
.page_index_site .journals > ul > li .thumb {
	float: none;
	width: auto;
	margin: 0;
	padding: 24px;
	height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #f7f9fb, #eef3f7);
	border-bottom: 1px solid var(--kp-line);
}
.page_index_site .journals .thumb a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.page_index_site .journals .thumb img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform 0.3s ease;
}
.page_index_site .journals > ul > li:hover .thumb img {
	transform: scale(1.04);
}
/* Jurnal tanpa thumbnail: pita warna pengganti */
.page_index_site .journals > ul > li:not(.has_thumb)::before {
	content: "";
	display: block;
	height: 8px;
	background: linear-gradient(90deg, var(--kp-blue), var(--kp-teal));
}

/* Isi kartu */
.page_index_site .journals .body,
.page_index_site .journals .thumb + .body {
	float: none;
	width: auto;
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 22px 24px 24px;
}
.page_index_site .journals .body h3 {
	margin: 0 0 10px;
	font-size: 1.12rem;
	line-height: 1.35;
}
.page_index_site .journals .body h3 a {
	color: var(--kp-navy);
	text-decoration: none;
}
.page_index_site .journals .body h3 a:hover {
	color: var(--kp-blue);
}

/* Deskripsi: ringkas, seragam, dengan efek pudar di bawah */
.page_index_site .journals .description {
	position: relative;
	max-height: 9.6em;
	overflow: hidden;
	margin: 0 0 18px;
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--kp-muted);
}
.page_index_site .journals .description::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3.2em;
	background: linear-gradient(rgba(255, 255, 255, 0), var(--kp-card));
	pointer-events: none;
}
.page_index_site .journals .description * {
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
	text-align: left !important;
	color: inherit;
	margin: 0 0 0.4em;
	padding: 0;
	border: 0;
	background: none;
}
.page_index_site .journals .description a {
	color: var(--kp-blue);
}
.page_index_site .journals .description img,
.page_index_site .journals .description hr,
.page_index_site .journals .description table,
.page_index_site .journals .description iframe,
.page_index_site .journals .description blockquote {
	display: none;
}

/* Tombol */
.page_index_site .journals .links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: auto 0 0;
	padding: 0;
	list-style: none;
}
.page_index_site .journals .links li {
	margin: 0;
	padding: 0;
}
.page_index_site .journals .links a {
	display: inline-block;
	padding: 9px 18px;
	border-radius: 10px;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.page_index_site .journals .links .view a {
	background: var(--kp-blue);
	border: 1px solid var(--kp-blue);
	color: #fff;
}
.page_index_site .journals .links .view a:hover,
.page_index_site .journals .links .view a:focus {
	background: var(--kp-navy);
	border-color: var(--kp-navy);
}
.page_index_site .journals .links .current a {
	background: transparent;
	border: 1px solid var(--kp-line);
	color: var(--kp-navy);
}
.page_index_site .journals .links .current a:hover,
.page_index_site .journals .links .current a:focus {
	border-color: var(--kp-gold);
	color: #8a6414;
}

/* ---------- Footer ---------- */
body:has(.kp-footer) .pkp_structure_footer_wrapper {
	background: var(--kp-pattern), var(--kp-navy);
	border-top: 4px solid var(--kp-gold);
	color: rgba(255, 255, 255, 0.8);
}
body:has(.kp-footer) .pkp_structure_footer {
	max-width: 1240px;
	width: auto;
	margin: 0 auto;
	padding: 40px 24px 28px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}
body:has(.kp-footer) .pkp_footer_content {
	flex: 1 1 520px;
	padding: 0;
	text-align: left;
}
body:has(.kp-footer) .pkp_footer_content a {
	color: #fff;
}
body:has(.kp-footer) .kp-footer {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}
body:has(.kp-footer) .kp-footer h4 {
	margin: 0 0 8px;
	color: var(--kp-gold);
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
body:has(.kp-footer) .kp-footer p {
	margin: 0;
	line-height: 1.7;
	font-size: 0.92rem;
}
body:has(.kp-footer) .pkp_brand_footer {
	padding: 0;
	opacity: 0.85;
}
body:has(.kp-footer) .pkp_brand_footer img {
	filter: brightness(0) invert(1);
	opacity: 0.7;
}

/* ---------- Layar kecil ---------- */
@media (max-width: 991px) {
	.page_index_site .kp-hero {
		grid-template-columns: 1fr;
		padding: 28px 24px;
	}
	body:has(.kp-footer) .pkp_site_name_wrapper {
		padding: 8px 0 40px 56px;
		text-align: left;
	}
	body:has(.kp-footer) .pkp_site_nav_toggle {
		top: 8px;
	}
}
@media (max-width: 480px) {
	.page_index_site .journals > ul {
		grid-template-columns: 1fr;
	}
	.page_index_site .kp-stats {
		grid-template-columns: 1fr 1fr;
	}
	.page_index_site .journals .thumb {
		height: 180px;
	}
}

/* ---------- Penyesuaian akhir ---------- */
@media (min-width: 992px) {
	body:has(.kp-footer) .pkp_site_name {
		text-align: center;
	}
}
@media (max-width: 480px) {
	.page_index_site .kp-stats strong {
		font-size: 1.05rem;
	}
	.page_index_site .kp-stats li {
		padding: 12px 14px;
	}
}

/* ---------- Footer: tata letak 2 baris + credit ---------- */
body:has(.kp-footer) .pkp_structure_footer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 28px 40px;
	padding: 48px 24px 0;
}
body:has(.kp-footer) .pkp_footer_content {
	display: contents;
}
body:has(.kp-footer) .kp-footer {
	grid-column: 1;
	grid-row: 1;
}
body:has(.kp-footer) .pkp_brand_footer {
	grid-column: 2;
	grid-row: 1;
	align-self: center;
}
body:has(.kp-footer) .pkp_brand_footer img {
	max-width: 130px;
}
body:has(.kp-footer) .kp-footer-bottom {
	grid-column: 1 / -1;
	grid-row: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	padding: 20px 0 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.6);
}
body:has(.kp-footer) .kp-footer-bottom p {
	margin: 0;
}

/* Credit: teks biasa, kilau hanya pada nama (link) */
body:has(.kp-footer) .kp-credit {
	margin: 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.6);
}
body:has(.kp-footer) a.kp-credit-name {
	font-weight: 600;
	text-decoration: none;
	/* kilau halus: pantulan lebar & lembut yang melintas pelan lalu jeda */
	background: linear-gradient(110deg,
		#d4a53c 0%,
		#d4a53c 38%,
		#f3d890 46%,
		#fff4d6 50%,
		#f3d890 54%,
		#d4a53c 62%,
		#d4a53c 100%);
	background-size: 300% 100%;
	background-position: 100% 0;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	animation: kp-shine 3s cubic-bezier(0.45, 0, 0.25, 1) infinite;
	transition: filter 0.3s ease;
}
body:has(.kp-footer) a.kp-credit-name:hover,
body:has(.kp-footer) a.kp-credit-name:focus {
	filter: brightness(1.15);
	text-decoration: none;
}
body:has(.kp-footer) a.kp-credit-name:focus-visible {
	outline: 2px solid var(--kp-gold);
	outline-offset: 3px;
	border-radius: 2px;
}
@keyframes kp-shine {
	0% { background-position: 100% 0; }
	70% { background-position: 0% 0; }
	100% { background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
	body:has(.kp-footer) a.kp-credit-name {
		animation: none;
	}
}
@media (max-width: 767px) {
	body:has(.kp-footer) .pkp_structure_footer {
		grid-template-columns: 1fr;
	}
	body:has(.kp-footer) .pkp_brand_footer {
		grid-column: 1;
		grid-row: 2;
		justify-self: start;
	}
	body:has(.kp-footer) .kp-footer-bottom {
		grid-row: 3;
		flex-direction: column;
		align-items: flex-start;
	}
}
html:has(.kp-footer) {
	background: #0b2f4a;
}

/* ---------- Scrollbar (khusus halaman portal) ---------- */
/* Chrome, Edge, Safari */
html:has(.kp-footer)::-webkit-scrollbar {
	width: 12px;
}
html:has(.kp-footer)::-webkit-scrollbar-track {
	background: #eef3f7;
	border-left: 1px solid #e3e9ef;
}
html:has(.kp-footer)::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #1e6292 0%, #1a8a8a 100%);
	border-radius: 999px;
	border: 3px solid #eef3f7;
	min-height: 48px;
}
html:has(.kp-footer)::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, #e0b453 0%, #d4a53c 100%);
}
html:has(.kp-footer)::-webkit-scrollbar-thumb:active {
	background: linear-gradient(180deg, #0b2f4a 0%, #1e6292 100%);
}
/* Firefox */
@supports (-moz-appearance: none) {
	html:has(.kp-footer) {
		scrollbar-width: thin;
		scrollbar-color: #1e6292 #eef3f7;
	}
}

/* =====================================================================
 * Halaman level situs selain beranda (login, register, reset password, dll.)
 * ===================================================================== */
body:has(.kp-footer) .pkp_structure_content:not(:has(.page_index_site)) {
	padding-top: 48px;
}
body:has(.kp-footer) .pkp_structure_main > .page:not(.page_index_site) {
	max-width: 1040px;
	margin: 0 auto;
	padding: 40px 48px 44px;
	background: var(--kp-card);
	border: 1px solid var(--kp-line);
	border-radius: 20px;
	box-shadow: 0 18px 50px rgba(11, 47, 74, 0.10);
}
body:has(.kp-footer) .page .cmp_breadcrumbs {
	margin: 0 0 18px;
	font-size: 0.8rem;
	color: var(--kp-muted);
}
body:has(.kp-footer) .page .cmp_breadcrumbs ol {
	margin: 0;
	padding: 0;
}
body:has(.kp-footer) .page .cmp_breadcrumbs a {
	color: var(--kp-blue);
	text-decoration: none;
}
body:has(.kp-footer) .page > h1 {
	margin: 0 0 6px;
	font-size: 1.85rem;
	line-height: 1.25;
	color: var(--kp-navy);
	letter-spacing: -0.01em;
}
body:has(.kp-footer) .page > h1 + p {
	margin: 0 0 28px;
	font-size: 0.88rem;
	color: var(--kp-muted);
}
body:has(.kp-footer) .page abbr.required,
body:has(.kp-footer) .cmp_form .label .required {
	color: #c0392b;
	text-decoration: none;
	border: 0;
}

/* ---------- Kontrol form ---------- */
body:has(.kp-footer) .cmp_form fieldset {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
}
body:has(.kp-footer) .cmp_form .fields > div {
	padding-bottom: 20px;
}
body:has(.kp-footer) .cmp_form .label {
	display: block;
	margin-bottom: 7px;
	font-size: 0.84rem;
	font-style: normal;
	font-weight: 600;
	color: var(--kp-navy);
}
body:has(.kp-footer) .cmp_form input[type="text"],
body:has(.kp-footer) .cmp_form input[type="email"],
body:has(.kp-footer) .cmp_form input[type="password"],
body:has(.kp-footer) .cmp_form input[type="url"],
body:has(.kp-footer) .cmp_form input[type="tel"],
body:has(.kp-footer) .cmp_form select {
	width: 100%;
	max-width: none;
	height: 48px;
	padding: 0 16px;
	font-size: 0.95rem;
	line-height: 46px;
	color: var(--kp-text);
	background-color: #f7f9fc;
	border: 1px solid #d7e0e8;
	border-radius: 12px;
	box-shadow: none;
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
body:has(.kp-footer) .cmp_form input:hover,
body:has(.kp-footer) .cmp_form select:hover {
	border-color: #b9c8d6;
}
body:has(.kp-footer) .cmp_form input[type="text"]:focus,
body:has(.kp-footer) .cmp_form input[type="email"]:focus,
body:has(.kp-footer) .cmp_form input[type="password"]:focus,
body:has(.kp-footer) .cmp_form input[type="url"]:focus,
body:has(.kp-footer) .cmp_form input[type="tel"]:focus,
body:has(.kp-footer) .cmp_form select:focus {
	outline: 0;
	background-color: #fff;
	border-color: var(--kp-blue);
	box-shadow: 0 0 0 4px rgba(30, 98, 146, 0.14);
}
body:has(.kp-footer) .cmp_form input[type="checkbox"],
body:has(.kp-footer) .cmp_form input[type="radio"] {
	width: 17px;
	height: 17px;
	margin: 0 8px 0 0;
	vertical-align: -3px;
	accent-color: var(--kp-blue);
	cursor: pointer;
}

/* Ikon di dalam input */
body:has(.kp-footer) .cmp_form :is(.username, .password, .email) input {
	padding-left: 46px;
	background-repeat: no-repeat;
	background-position: 16px center;
	background-size: 18px 18px;
}
body:has(.kp-footer) .cmp_form .username input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238aa0b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
body:has(.kp-footer) .cmp_form .password input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238aa0b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}
body:has(.kp-footer) .cmp_form .email input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238aa0b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
}

/* Tombol */
body:has(.kp-footer) .cmp_form .buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 8px;
}
body:has(.kp-footer) .cmp_form .buttons button,
body:has(.kp-footer) .cmp_form .buttons button.submit {
	float: none;
	height: 50px;
	padding: 0 32px;
	font-size: 0.98rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 50px;
	color: #fff;
	background: linear-gradient(135deg, var(--kp-blue) 0%, var(--kp-teal) 100%);
	border: 0;
	border-radius: 12px;
	box-shadow: 0 10px 22px rgba(30, 98, 146, 0.28);
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
body:has(.kp-footer) .cmp_form .buttons button:hover,
body:has(.kp-footer) .cmp_form .buttons button:focus {
	transform: translateY(-2px);
	filter: brightness(1.06);
	box-shadow: 0 14px 28px rgba(30, 98, 146, 0.34);
	outline: 0;
}
body:has(.kp-footer) .cmp_form .buttons a {
	float: none;
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--kp-blue);
	text-decoration: none;
}
body:has(.kp-footer) .cmp_form .buttons a:hover {
	color: var(--kp-navy);
	text-decoration: underline;
}

/* Pesan error */
body:has(.kp-footer) .cmp_form .pkp_form_error,
body:has(.kp-footer) .page_register #formErrors {
	margin: 0 0 20px;
	padding: 12px 16px;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.5;
	color: #9b2c2c;
	background: #fdecec;
	border: 1px solid #f5c2c2;
	border-left: 4px solid #d64545;
	border-radius: 10px;
}
body:has(.kp-footer) .page_register #formErrors a,
body:has(.kp-footer) .page_register #formErrors .pkp_form_error {
	color: #9b2c2c;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
}

/* ---------- Login & reset password: kartu dua panel ---------- */
body:has(.kp-footer) .pkp_structure_main > .page:is(.page_login, .page_lost_password):not(.page_index_site) {
	position: relative;
	overflow: hidden;
	min-height: 520px;
	padding: 48px 56px 48px calc(44% + 56px);
}
body:has(.kp-footer) :is(.page_login, .page_lost_password)::before {
	/* panel kiri + judul sambutan */
	content: "Welcome back";
	position: absolute;
	inset: 0 auto 0 0;
	width: 44%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 56px 48px 150px;
	font-size: clamp(1.8rem, 1.2rem + 1.4vw, 2.6rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: #fff;
	background: var(--kp-pattern), radial-gradient(circle at 85% 10%, rgba(212, 165, 60, 0.16), transparent 40%), linear-gradient(160deg, var(--kp-navy) 0%, var(--kp-blue) 65%, var(--kp-teal) 100%);
}
body:has(.kp-footer) .page_lost_password::before {
	content: "Forgot your password?";
}
body:has(.kp-footer) :is(.page_login, .page_lost_password)::after {
	/* subjudul panel kiri */
	content: "Sign in to submit manuscripts, follow the review process and manage your work across all journals of the Postgraduate Programme.";
	position: absolute;
	left: 48px;
	bottom: 48px;
	width: calc(44% - 96px);
	padding-top: 18px;
	border-top: 2px solid var(--kp-gold);
	font-size: 0.92rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.8);
}
body:has(.kp-footer) .page_lost_password::after {
	content: "Enter the email address of your account and we will send you a link to set a new password.";
}
body:has(.kp-footer) :is(.page_login, .page_lost_password) :is(.login, .lost_password) {
	max-width: none;
	margin: 0;
}
/* Lupa password: tautan kecil di kanan atas input password */
body:has(.kp-footer) .page_login .password label {
	position: relative;
}
body:has(.kp-footer) .page_login .password a {
	position: absolute;
	top: 0;
	right: 0;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--kp-blue);
	text-decoration: none;
}
body:has(.kp-footer) .page_login .password a:hover {
	text-decoration: underline;
}
body:has(.kp-footer) .page_login .remember {
	padding-bottom: 22px;
}
body:has(.kp-footer) .page_login .remember .label {
	display: inline;
	margin: 0;
	font-weight: 500;
	color: var(--kp-muted);
}
/* Tombol penuh + ajakan daftar */
body:has(.kp-footer) :is(.page_login, .page_lost_password) .buttons {
	flex-direction: column;
	align-items: stretch;
}
body:has(.kp-footer) :is(.page_login, .page_lost_password) .buttons button {
	width: 100%;
}
body:has(.kp-footer) :is(.page_login, .page_lost_password) .buttons a {
	text-align: center;
	font-size: 0;
}
body:has(.kp-footer) :is(.page_login, .page_lost_password) .buttons a::before {
	content: "No account yet? ";
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--kp-muted);
}
body:has(.kp-footer) :is(.page_login, .page_lost_password) .buttons a::after {
	content: "Create one \2192";
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--kp-blue);
}

/* ---------- Register: kartu lebar dengan seksi ---------- */
body:has(.kp-footer) .pkp_structure_main > .page_register {
	max-width: 920px;
	border-top: 5px solid transparent;
	background: linear-gradient(var(--kp-card), var(--kp-card)) padding-box, linear-gradient(90deg, var(--kp-blue), var(--kp-teal), var(--kp-gold)) border-box;
}
body:has(.kp-footer) .page_register .cmp_form > fieldset,
body:has(.kp-footer) .page_register .cmp_form > .fields {
	margin: 0 0 22px;
	padding: 24px 24px 4px;
	background: #fafcfd;
	border: 1px solid var(--kp-line);
	border-radius: 16px;
}
body:has(.kp-footer) .page_register .cmp_form > fieldset > legend {
	float: left;
	width: 100%;
	margin: 0 0 18px;
	padding: 0;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--kp-navy);
}
body:has(.kp-footer) .page_register .cmp_form > fieldset > legend + * {
	clear: both;
}
body:has(.kp-footer) .page_register :is(.identity, .login) .fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 20px;
}
body:has(.kp-footer) .page_register .identity li {
	max-width: none;
	padding-right: 0;
}
/* Daftar jurnal: grid kartu kecil */
body:has(.kp-footer) .page_register .context_optin .contexts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 12px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}
body:has(.kp-footer) .page_register .context_optin .contexts > li {
	margin: 0;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--kp-line);
	border-radius: 12px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
body:has(.kp-footer) .page_register .context_optin .contexts > li:has(input:checked) {
	border-color: var(--kp-blue);
	box-shadow: 0 0 0 3px rgba(30, 98, 146, 0.10);
}
body:has(.kp-footer) .page_register .context_optin .name {
	margin-bottom: 6px;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--kp-navy);
}
body:has(.kp-footer) .page_register .context_optin .roles {
	margin: 0;
	padding: 4px 0 0;
	background: none;
	border: 0;
}
body:has(.kp-footer) .page_register .context_optin .roles label {
	display: inline-flex;
	align-items: center;
	margin: 0 16px 0 0;
	font-size: 0.85rem;
	color: var(--kp-text);
}
body:has(.kp-footer) .page_register .context_optin .context_privacy_visible {
	margin-top: 8px;
	padding: 8px 0 0;
	border-top: 1px dashed var(--kp-line);
	font-size: 0.78rem;
	line-height: 1.5;
	color: var(--kp-muted);
}
body:has(.kp-footer) .page_register .optin label,
body:has(.kp-footer) .page_register .consent label {
	font-size: 0.88rem;
	color: var(--kp-text);
}
body:has(.kp-footer) .page_register .buttons {
	justify-content: space-between;
	padding-top: 8px;
}
body:has(.kp-footer) .page_register .buttons a.login::before {
	content: "Already have an account? ";
	color: var(--kp-muted);
	font-weight: 500;
}

/* ---------- Layar kecil ---------- */
@media (max-width: 767px) {
	body:has(.kp-footer) .pkp_structure_content:not(:has(.page_index_site)) {
		padding: 20px 12px 48px;
	}
	body:has(.kp-footer) .pkp_structure_main > .page:not(.page_index_site) {
		padding: 28px 22px 32px;
		border-radius: 16px;
	}
	body:has(.kp-footer) .pkp_structure_main > .page:is(.page_login, .page_lost_password):not(.page_index_site) {
		min-height: 0;
		padding: 150px 22px 32px;
	}
	body:has(.kp-footer) :is(.page_login, .page_lost_password)::before {
		inset: 0 0 auto 0;
		width: auto;
		height: 118px;
		padding: 0 22px;
		font-size: 1.6rem;
	}
	body:has(.kp-footer) :is(.page_login, .page_lost_password)::after {
		display: none;
	}
	body:has(.kp-footer) .page_register :is(.identity, .login) .fields {
		grid-template-columns: 1fr;
	}
	body:has(.kp-footer) .page_register .cmp_form > fieldset,
	body:has(.kp-footer) .page_register .cmp_form > .fields {
		padding: 18px 16px 2px;
	}
}
body:has(.kp-footer) .cmp_form .buttons::before,
body:has(.kp-footer) .cmp_form .buttons::after {
	display: none;
}
body:has(.kp-footer) .page > h1 + p {
	line-height: 1.6;
}
