/* ==========================================================================
   Custom Login System — Login Page Styles
   Semua selector di-scope ke .cls-login-wrap / .cls-login-page supaya tidak
   bentrok, dan properti kunci (warna, border, outline) diberi !important
   karena banyak tema WordPress punya CSS global untuk elemen button/a/input
   yang bisa menimpa style plugin ini.
   ========================================================================== */

.cls-login-wrap,
.cls-login-page,
.cls-login-wrap *,
.cls-login-page * {
	box-sizing: border-box;
}

.cls-login-wrap,
.cls-login-page {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Layout polos (tanpa background image) ---------- */

.cls-login-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 70vh;
	padding: 40px 20px;
}

/* ---------- Layout full background (dengan background image) ---------- */

.cls-login-page--full {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	width: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #0d1020;
	padding: 40px clamp(20px, 10vw, 180px);
	margin: 0;
}

/* Beberapa tema (lewat wpautop) membungkus output shortcode ini dalam <p>,
   yang punya margin bawaan browser sehingga muncul celah putih di atas/bawah
   section full-background. Paksa margin itu jadi 0. cls-login.js juga akan
   coba "unwrap" tag <p> tersebut sepenuhnya. */
p:has(> .cls-login-page--full),
.entry-content > p:has(> .cls-login-page--full) {
	margin: 0;
	padding: 0;
}

.cls-login-page-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(8, 10, 22, 0.55) 0%, rgba(8, 10, 22, 0.15) 55%, rgba(8, 10, 22, 0.45) 100%),
		linear-gradient(180deg, rgba(8, 10, 22, 0.15) 0%, rgba(8, 10, 22, 0.5) 100%);
	opacity: var(--cls-overlay-opacity, 1);
}

.cls-login-full-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}

@media (max-width: 480px) {
	.cls-login-page--full {
		padding: 24px 14px;
	}
}

/* ---------- Brand panel (kiri) — hanya muncul di mode background ---------- */

.cls-login-brand {
	flex: 1 1 380px;
	color: #f5efe0 !important;
	text-align: left;
	max-width: 560px;
}

.cls-login-brand-top {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
}

.cls-login-brand-logo {
	width: 52px;
	height: 52px;
	object-fit: contain;
	flex-shrink: 0;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.cls-login-brand-name {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: clamp(26px, 3.2vw, 36px);
	font-weight: 700;
	letter-spacing: 1.5px;
	line-height: 1.15;
	color: #2b9cf2 !important;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.cls-login-card .cls-gold {
	color: #e8c273 !important;
}

.cls-login-brand .cls-name-blue {
	color: #2b9cf2 !important;
}

.cls-login-brand .cls-name-red {
	color: #ff3b3b !important;
}

.cls-login-brand-tagline {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 4px;
	color: #d9d6cf !important;
	margin: 0 0 20px 68px;
	text-transform: uppercase;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.cls-login-brand-divider {
	width: 70px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, #e8c273, #c9973c);
	margin: 0 0 18px 68px;
}

.cls-login-brand-badges {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: 16px;
	letter-spacing: 1.5px;
	color: #f1ead8 !important;
	margin-left: 68px;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.cls-badge-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #e8c273;
	flex-shrink: 0;
}

.cls-login-brand-desc {
	margin: 14px 0 0 68px;
	font-size: 12.5px;
	letter-spacing: 1px;
	color: #c9c5bb !important;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
	.cls-login-full-inner {
		justify-content: center;
		text-align: center;
	}
	.cls-login-brand {
		text-align: center;
		max-width: 100%;
	}
	.cls-login-brand-top {
		justify-content: center;
	}
	.cls-login-brand-tagline,
	.cls-login-brand-badges,
	.cls-login-brand-desc {
		margin-left: 0;
		justify-content: center;
	}
	.cls-login-brand-divider {
		margin-left: auto;
		margin-right: auto;
	}
}

/* ---------- Dark glass card (mode background) ---------- */

.cls-login-page--full .cls-login-card {
	flex: 0 1 400px;
	max-width: 400px;
	padding: 34px 32px 26px;
	border-radius: 22px;
	background: linear-gradient(160deg, rgba(26, 29, 44, var(--cls-card-alpha, 0.88)) 0%, rgba(14, 16, 28, var(--cls-card-alpha, 0.88)) 100%);
	border: 1px solid rgba(232, 194, 115, 0.45);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.cls-login-page--full .cls-login-header {
	margin-bottom: 22px;
}

.cls-login-icon--logo img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.cls-login-page--full .cls-login-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 10px;
	background: transparent;
	border: 0 !important;
	border-radius: 0;
	color: #e8c273 !important;
}

.cls-login-page--full .cls-login-header h2 {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: 26px;
	letter-spacing: 0.5px;
	color: #ffffff !important;
}

.cls-login-page--full .cls-login-header p {
	font-size: 12.5px;
	color: #b8bcc8 !important;
}

.cls-login-page--full .cls-field {
	margin-bottom: 16px;
}

.cls-login-page--full .cls-field label {
	font-size: 12.5px;
	font-weight: 600;
	color: #e6e8ee !important;
}

.cls-login-page--full .cls-input-group input[type="text"],
.cls-login-page--full .cls-input-group input[type="password"] {
	padding: 14px 44px 14px 44px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06) !important;
	border: 1px solid rgba(255, 255, 255, 0.16) !important;
	color: #ffffff !important;
	font-size: 13px;
}

.cls-login-page--full .cls-input-group input::placeholder {
	color: #8e93a3 !important;
}

.cls-login-page--full .cls-input-group input:focus {
	border-color: #e8c273 !important;
	box-shadow: 0 0 0 3px rgba(232, 194, 115, 0.16) !important;
	background: rgba(255, 255, 255, 0.09) !important;
}

.cls-login-page--full .cls-input-icon {
	left: 15px;
	color: #e8c273 !important;
}

.cls-login-page--full button.cls-toggle-pass {
	color: #a7acba !important;
}

.cls-login-page--full button.cls-toggle-pass:hover {
	color: #e8c273 !important;
	background: rgba(232, 194, 115, 0.12) !important;
}

.cls-login-page--full button.cls-submit-btn {
	margin-top: 22px;
	padding: 14px;
	border-radius: 12px;
	background: linear-gradient(180deg, #f3d58c 0%, #d9a94a 55%, #c9973c 100%) !important;
	color: #2a1f08 !important;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 10px 26px rgba(217, 169, 74, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.cls-login-page--full button.cls-submit-btn:hover {
	background: linear-gradient(180deg, #f8e0a2 0%, #e2b559 55%, #d2a043 100%) !important;
	box-shadow: 0 14px 30px rgba(217, 169, 74, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
	transform: translateY(-1px);
}

.cls-login-page--full button.cls-submit-btn:active {
	background: linear-gradient(180deg, #e2b559 0%, #c9973c 100%) !important;
	transform: translateY(0);
}

.cls-login-page--full .cls-alert-error {
	background: rgba(220, 70, 70, 0.14);
	border-color: rgba(220, 70, 70, 0.4);
	color: #ff9d9d !important;
}

.cls-login-card-footer {
	margin-top: 20px;
	text-align: center;
}

.cls-footer-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #e8c273;
}

.cls-footer-line {
	flex: 1;
	max-width: 80px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(232, 194, 115, 0.45));
}

.cls-footer-divider .cls-footer-line:last-child {
	background: linear-gradient(90deg, rgba(232, 194, 115, 0.45), transparent);
}

.cls-footer-text {
	margin-top: 10px;
	font-size: 11.5px;
	letter-spacing: 0.6px;
	color: #9a9fae !important;
}

/* ---------- Card ---------- */

.cls-login-card {
	width: 100%;
	max-width: 400px;
	background: #ffffff;
	border-radius: 18px;
	padding: 40px 36px;
	box-shadow: 0 20px 50px rgba(23, 20, 60, 0.1), 0 2px 8px rgba(23, 20, 60, 0.05);
	position: relative;
}

.cls-login-header {
	text-align: center;
	margin-bottom: 28px;
}

.cls-login-icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 16px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #4f46e5;
	color: #fff !important;
}

.cls-login-icon svg {
	fill: currentColor;
}

.cls-login-header h2 {
	margin: 0 0 6px;
	font-size: 21px;
	font-weight: 700;
	color: #17143c;
	line-height: 1.3;
}

.cls-login-header p {
	margin: 0;
	font-size: 13.5px;
	color: #7c7c93;
}

.cls-alert {
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 13px;
	margin-bottom: 18px;
}

.cls-alert-error {
	background: #fdecec;
	color: #c0392b !important;
	border: 1px solid #f5c6c6;
}

/* ---------- Fields ---------- */

.cls-field {
	margin-bottom: 18px;
}

.cls-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #33334a !important;
	margin-bottom: 6px;
}

.cls-input-group {
	position: relative;
	display: flex;
	align-items: center;
}

.cls-login-wrap .cls-input-group input[type="text"],
.cls-login-wrap .cls-input-group input[type="password"],
.cls-login-page .cls-input-group input[type="text"],
.cls-login-page .cls-input-group input[type="password"] {
	width: 100%;
	padding: 12px 42px 12px 40px;
	border-radius: 10px;
	border: 1.5px solid #e4e4ee !important;
	font-size: 14px;
	outline: none !important;
	box-shadow: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	background: #fbfbfe !important;
	color: #22223a !important;
	margin: 0;
	height: auto;
	line-height: normal;
}

.cls-login-wrap .cls-input-group input:focus,
.cls-login-page .cls-input-group input:focus {
	border-color: #4f46e5 !important;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
	background: #fff !important;
}

.cls-input-icon {
	position: absolute;
	left: 13px;
	color: #a3a3b8 !important;
	display: flex;
	align-items: center;
	pointer-events: none;
	line-height: 0;
}

.cls-input-icon svg {
	fill: currentColor;
}

/* Tombol show/hide password — di-reset total supaya tidak kena style
   tombol bawaan tema (ukuran, border merah/pink, dsb). */
.cls-login-wrap button.cls-toggle-pass,
.cls-login-page button.cls-toggle-pass {
	all: unset;
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #a3a3b8 !important;
	border-radius: 6px;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	line-height: 0;
}

.cls-login-wrap button.cls-toggle-pass svg,
.cls-login-page button.cls-toggle-pass svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
	pointer-events: none;
}

.cls-login-wrap button.cls-toggle-pass:hover,
.cls-login-page button.cls-toggle-pass:hover {
	color: #4f46e5 !important;
	background: #f1f0fe !important;
}

/* ---------- Submit button ---------- */

.cls-login-wrap button.cls-submit-btn,
.cls-login-page button.cls-submit-btn {
	all: unset;
	box-sizing: border-box;
	display: block;
	width: 100%;
	padding: 13px;
	border-radius: 10px;
	background: #4f46e5 !important;
	color: #ffffff !important;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.cls-login-wrap button.cls-submit-btn:hover,
.cls-login-page button.cls-submit-btn:hover {
	background: #4338ca !important;
	color: #ffffff !important;
	box-shadow: 0 10px 22px rgba(79, 70, 229, 0.28);
}

.cls-login-wrap button.cls-submit-btn:active,
.cls-login-page button.cls-submit-btn:active {
	background: #3730a3 !important;
}

/* ---------- Info / logout (untuk halaman dashboard) ---------- */

.cls-user-info {
	padding: 10px 14px;
	background: #f1f0fe;
	border-radius: 8px;
	font-size: 14px;
	display: inline-block;
	color: #3d3d55 !important;
}

.cls-logout-link {
	color: #c0392b !important;
	text-decoration: none;
	font-weight: 600;
}

.cls-logout-link:hover {
	text-decoration: underline;
}

@media (max-width: 480px) {
	.cls-login-card {
		padding: 30px 22px;
		border-radius: 16px;
	}
}
