/* ═══════════════════════════════════════
   LOGIN CARD — Glass Design
   Works with both .light and .dark on body
   ═══════════════════════════════════════ */

/* Card shell */
.lc-card {
	width: 100%;
	max-width: 940px;
	border-radius: 24px;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr 1fr;
	/* glass effect */
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(28px) saturate(160%);
	-webkit-backdrop-filter: blur(28px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.18),
		inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

/* light-mode card */
.apm-body.light .lc-card {
	background: rgba(255, 255, 255, 0.55);
	border-color: rgba(255, 255, 255, 0.45);
	box-shadow:
		0 8px 40px rgba(99, 102, 241, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
	.lc-card {
		grid-template-columns: 1fr;
	}

	.lc-left {
		display: none !important;
	}
}

/* ── LEFT PANEL ─────────────────────────── */
.lc-left {
	display: flex;
	flex-direction: column;
	padding: 2.5rem;
	position: relative;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.06);
	border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.apm-body.light .lc-left {
	background: rgba(99, 102, 241, 0.07);
	border-right-color: rgba(99, 102, 241, 0.1);
}

/* inner shine strip */
.lc-left::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.35),
		transparent
	);
}

/* Brand / logo */
.lc-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 2rem;
}

.lc-brand-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.15);
	display: grid;
	place-items: center;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	flex-shrink: 0;
}

/* uploaded logo image */
.lc-brand-logo {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	object-fit: contain;
	background: rgba(255, 255, 255, 0.15);
	padding: 5px;
	flex-shrink: 0;
}

.apm-body.light .lc-brand-logo {
	background: rgba(99, 102, 241, 0.12);
}

/* brand name + description block */
.lc-brand-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.lc-brand-name {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	color: rgba(255, 255, 255, 0.95);
}

.lc-brand-desc {
	font-size: 11px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.45);
}

.apm-body.light .lc-brand-name {
	color: #3730a3;
}

.apm-body.light .lc-brand-desc {
	color: #6366f1;
	opacity: 0.65;
}

.apm-body.light .lc-brand-icon {
	background: rgba(99, 102, 241, 0.15);
	color: #4f46e5;
	border-color: rgba(99, 102, 241, 0.3);
}

/* ── CAROUSEL (info slides) ──────────────── */
.lc-carousel {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.lc-slide {
	display: none;
	flex-direction: row;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 1.5rem;
}

.lc-slide.active {
	display: flex;
}

/* Icon box — kini sejajar di samping kiri judul/deskripsi */
.lc-slide-icon-wrap {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.apm-body.light .lc-slide-icon-wrap {
	background: rgba(99, 102, 241, 0.1);
	border-color: rgba(99, 102, 241, 0.16);
}

.lc-slide-content {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding-top: 2px;
}

.lc-slide-title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.97);
	margin: 0 0 4px;
}

.apm-body.light .lc-slide-title {
	color: #1e1b4b;
}

.lc-slide-desc {
	font-size: 12.5px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}

.apm-body.light .lc-slide-desc {
	color: #4338ca;
	opacity: 0.8;
}

/* ── FULL MAINTENANCE MODE (left panel) ──── */
.lc-maint-full {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.85rem;
}

.lc-maint-full-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: rgba(251, 191, 36, 0.15);
	border: 1px solid rgba(251, 191, 36, 0.22);
	color: #fde68a;
}

.apm-body.light .lc-maint-full-icon {
	background: rgba(245, 158, 11, 0.1);
	border-color: rgba(245, 158, 11, 0.28);
	color: #92400e;
}

.lc-maint-full h2 {
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	color: rgba(255, 255, 255, 0.97);
}

.apm-body.light .lc-maint-full h2 {
	color: #1e1b4b;
}

.lc-maint-full p {
	font-size: 13px;
	line-height: 1.6;
	max-width: 300px;
	margin: 0;
	color: rgba(255, 255, 255, 0.6);
}

.apm-body.light .lc-maint-full p {
	color: #4338ca;
	opacity: 0.8;
}

/* Dots */
.lc-dots {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 2rem;
}

.lc-dot {
	height: 6px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.3);
	border: none;
	cursor: pointer;
	transition:
		width 0.3s,
		background 0.3s;
	width: 6px;
	padding: 0;
}

.lc-dot.active {
	width: 22px;
	background: rgba(255, 255, 255, 0.95);
}

.apm-body.light .lc-dot {
	background: rgba(99, 102, 241, 0.25);
}

.apm-body.light .lc-dot.active {
	background: #6366f1;
}

/* ── Version / status bar (disederhanakan) ── */
.lc-status {
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.apm-body.light .lc-status {
	border-top-color: rgba(99, 102, 241, 0.1);
}

/* baris atas: versi + status (paling penting, paling menonjol) */
.lc-status-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.lc-status-ver {
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.92);
}

.apm-body.light .lc-status-ver {
	color: #3730a3;
}

/* baris bawah: info tambahan (build, update terakhir) */
.lc-status-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.4);
}

.apm-body.light .lc-status-meta {
	color: #6366f1;
	opacity: 0.7;
}

.lc-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 99px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.lc-badge-prod {
	background: rgba(52, 211, 153, 0.15);
	color: #6ee7b7;
	border: 1px solid rgba(52, 211, 153, 0.2);
}

.lc-badge-dev {
	background: rgba(251, 191, 36, 0.15);
	color: #fde68a;
	border: 1px solid rgba(251, 191, 36, 0.2);
}

.apm-body.light .lc-badge-prod {
	background: rgba(16, 185, 129, 0.12);
	color: #047857;
	border-color: rgba(16, 185, 129, 0.25);
}

.apm-body.light .lc-badge-dev {
	background: rgba(245, 158, 11, 0.12);
	color: #92400e;
	border-color: rgba(245, 158, 11, 0.25);
}

/* dot separator */
.lc-sep {
	color: rgba(255, 255, 255, 0.2);
}

.apm-body.light .lc-sep {
	color: rgba(99, 102, 241, 0.2);
}

/* ── RIGHT PANEL ────────────────────────── */
.lc-right {
	display: flex;
	flex-direction: column;
	padding: 2.5rem 2.75rem;
	position: relative;
}

.lc-right h1 {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: rgba(255, 255, 255, 0.97);
	margin: 0 0 6px;
}

.apm-body.light .lc-right h1 {
	color: #1e1b4b;
}

.lc-sub {
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.55);
	margin: 0 0 1.75rem;
}

.apm-body.light .lc-sub {
	color: #6366f1;
	opacity: 0.7;
}

/* error (right) */
.lc-alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 13px;
	margin-bottom: 1.25rem;
}

.lc-alert-error {
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(239, 68, 68, 0.3);
	color: #fca5a5;
}

.apm-body.light .lc-alert-error {
	background: rgba(239, 68, 68, 0.08);
	color: #991b1b;
	border-color: rgba(239, 68, 68, 0.3);
}

/* badge maintenance — pojok kanan atas panel form */
.lc-maint-corner {
	position: absolute;
	top: 1.1rem;
	right: 1.1rem;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 99px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	background: rgba(251, 191, 36, 0.15);
	border: 1px solid rgba(251, 191, 36, 0.25);
	color: #fde68a;
}

.apm-body.light .lc-maint-corner {
	background: rgba(245, 158, 11, 0.1);
	border-color: rgba(245, 158, 11, 0.3);
	color: #92400e;
}

/* ── FORM ───────────────────────────────── */
.lc-label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 6px;
	letter-spacing: 0.02em;
}

.apm-body.light .lc-label {
	color: #3730a3;
	opacity: 0.85;
}

.lc-input {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	border-radius: 12px;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.95);
	outline: none;
	transition:
		border-color 0.2s,
		background 0.2s,
		box-shadow 0.2s;
}

.lc-input::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

.lc-input:focus {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(99, 102, 241, 0.7);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.apm-body.light .lc-input {
	background: rgba(255, 255, 255, 0.7);
	border-color: rgba(99, 102, 241, 0.18);
	color: #1e1b4b;
}

.apm-body.light .lc-input::placeholder {
	color: rgba(30, 27, 75, 0.3);
}

.apm-body.light .lc-input:focus {
	background: rgba(255, 255, 255, 0.95);
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

/* pw wrapper */
.lc-pw-wrap {
	position: relative;
}

.lc-pw-wrap .lc-input {
	padding-right: 44px;
}

.lc-toggle-pw {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.4);
	transition: color 0.2s;
}

.lc-toggle-pw:hover {
	color: rgba(255, 255, 255, 0.8);
}

.apm-body.light .lc-toggle-pw {
	color: rgba(99, 102, 241, 0.45);
}

.apm-body.light .lc-toggle-pw:hover {
	color: #6366f1;
}

/* captcha row */
.lc-captcha-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.lc-captcha-box {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 6px;
}

.apm-body.light .lc-captcha-box {
	background: rgba(255, 255, 255, 0.7);
	border-color: rgba(99, 102, 241, 0.14);
}

.lc-captcha-box img {
	height: 44px;
	width: 128px;
	border-radius: 8px;
	object-fit: contain;
	background: rgba(255, 255, 255, 0.9);
}

.lc-captcha-refresh {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: grid;
	place-items: center;
	background: none;
	border: none;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.5);
	transition:
		background 0.2s,
		color 0.2s;
}

.lc-captcha-refresh:hover {
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.9);
}

.apm-body.light .lc-captcha-refresh {
	color: rgba(99, 102, 241, 0.55);
}

.apm-body.light .lc-captcha-refresh:hover {
	background: rgba(99, 102, 241, 0.1);
	color: #4f46e5;
}

/* input kode captcha: huruf besar & rapi, tapi placeholder normal */
.lc-captcha-row .lc-input {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 600;
}

.lc-captcha-row .lc-input::placeholder {
	text-transform: none;
	letter-spacing: normal;
	font-weight: 400;
}

/* field group */
.lc-field {
	margin-bottom: 1rem;
}

.lc-field-error {
	font-size: 11.5px;
	color: #fca5a5;
	margin-top: 4px;
	display: none;
}

.apm-body.light .lc-field-error {
	color: #dc2626;
}

/* submit */
.lc-submit {
	width: 100%;
	margin-top: 0.5rem;
	padding: 13px 20px;
	border-radius: 12px;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	border: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #fff;
	box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition:
		opacity 0.2s,
		transform 0.15s,
		box-shadow 0.2s;
}

.lc-submit:hover:not(:disabled) {
	opacity: 0.93;
	transform: translateY(-1px);
	box-shadow: 0 6px 24px rgba(99, 102, 241, 0.55);
}

.lc-submit:active:not(:disabled) {
	transform: translateY(0);
}

.lc-submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* copyright */
.lc-copy {
	margin-top: auto;
	padding-top: 1.25rem;
	font-size: 11px;
	text-align: center;
	color: rgba(255, 255, 255, 0.3);
}

.apm-body.light .lc-copy {
	color: rgba(99, 102, 241, 0.45);
}

/* spinner */
.lc-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	animation: spin 0.7s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
