/* File: public/assets/css/login.css */

*, *::before, *::after {
	box-sizing: border-box;
}

body {
	font-family: 'Plus Jakarta Sans', sans-serif;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	position: relative;
	overflow: hidden;
}

/* ── Background ── */
#particles-js {
	position: fixed;
	inset: 0;
	z-index: 0;
	background: linear-gradient(145deg,
	#f0f4ff 0%, #e8f0fe 30%, #dce8fd 60%, #d4e2fc 100%);
}

.lp-geo {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.lp-geo::before {
	content: '';
	position: absolute;
	top: -120px;
	right: -120px;
	width: 480px;
	height: 480px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(37, 99, 235, .08) 0%, transparent 70%);
}

.lp-geo::after {
	content: '';
	position: absolute;
	bottom: -80px;
	left: -80px;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(37, 99, 235, .06) 0%, transparent 70%);
}

.lp-grid {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-image: linear-gradient(rgba(37, 99, 235, .025) 1px, transparent 1px),
	linear-gradient(90deg, rgba(37, 99, 235, .025) 1px, transparent 1px);
	background-size: 48px 48px;
}

/* ── Card ── */
.login-card {
	position: relative;
	z-index: 10;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 0 0 1px rgba(37, 99, 235, .08),
	0 4px 6px -1px rgba(15, 23, 42, .04),
	0 20px 60px -10px rgba(37, 99, 235, .12);
	overflow: hidden;
	animation: lp-slide-up .45s cubic-bezier(.34, 1.4, .64, 1) both;
}

@keyframes lp-slide-up {
	from { opacity: 0; transform: translateY(28px) scale(.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Header ── */
.lp-header {
	background: linear-gradient(150deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
	padding: 28px 28px 22px;
	position: relative;
	overflow: hidden;
}

.lp-header::before {
	content: '';
	position: absolute;
	top: -60px; right: -60px;
	width: 180px; height: 180px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .07);
}

.lp-header::after {
	content: '';
	position: absolute;
	bottom: -40px; left: 40px;
	width: 120px; height: 120px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .04);
}

.lp-header-inner {
	position: relative;
	z-index: 2;
	text-align: center;
}

.lp-logo-wrap {
	width: 68px; height: 68px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .15);
	border: 2px solid rgba(255, 255, 255, .25);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
	position: relative;
}

.lp-logo-wrap img { height: 46px; width: auto; object-fit: contain; }
.lp-logo-wrap i   { font-size: 34px; color: rgba(255, 255, 255, .9); }

.lp-logo-dot {
	position: absolute;
	top: -4px; right: -4px;
	width: 14px; height: 14px;
	background: #4ade80;
	border: 2px solid #fff;
	border-radius: 50%;
}

.lp-title {
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .01em;
	line-height: 1.3;
	margin-bottom: 2px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

.lp-sub {
	color: rgba(255, 255, 255, .7);
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: .02em;
}

.lp-badges {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 13px;
	flex-wrap: wrap;
}

.lp-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	border-radius: 20px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.lp-badge-sec {
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .2);
	color: rgba(255, 255, 255, .9);
}

.lp-badge-online {
	background: rgba(74, 222, 128, .18);
	border: 1px solid rgba(74, 222, 128, .3);
	color: #86efac;
}

.lp-badge-online .lp-dot {
	width: 5px; height: 5px;
	background: #4ade80;
	border-radius: 50%;
	animation: lp-pulse 1.8s ease-in-out infinite;
}

@keyframes lp-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%       { opacity: .5; transform: scale(.7); }
}

.lp-live-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
}

.lp-live-item {
	display: flex;
	align-items: center;
	gap: 3px;
	color: rgba(255, 255, 255, .5);
	font-size: 9px;
	font-weight: 600;
}

.lp-live-item i { font-size: 10px; }

.lp-live-sep {
	width: 2px; height: 2px;
	background: rgba(255, 255, 255, .25);
	border-radius: 50%;
}

/* ── Body ── */
.lp-body { padding: 22px 26px 18px; }

/* ── Tab ── */
.lp-tabs {
	display: flex;
	gap: 4px;
	background: #f1f5f9;
	border-radius: 12px;
	padding: 4px;
	margin-bottom: 18px;
}

.lp-tab {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 10px;
	border-radius: 9px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: all .2s;
	background: transparent;
	color: #94a3b8;
	font-family: 'Plus Jakarta Sans', sans-serif;
}

.lp-tab i { font-size: 15px; }

.lp-tab.active {
	background: #fff;
	color: #2563eb;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .08), 0 0 0 1px rgba(37, 99, 235, .06);
}

/* ── Alert ── */
.lp-alert {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 12.5px;
	font-weight: 500;
	margin-bottom: 14px;
	line-height: 1.45;
}

.lp-alert i { font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.lp-alert-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.lp-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }
.lp-alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }

/* ============================================================
   .field-group RESET — WAJIB karena dashboard.css override
   semua input di dalam .field-group menjadi h-[30px] compact.
   Parsley config.js mencari .field-group dan .errors-container
   jadi class-nya TIDAK boleh diganti.
   ============================================================ */
.login-card .field-group {
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
	margin-bottom: 14px !important;
}

.login-card .field-group label {
	display: block !important;
	font-size: 11.5px !important;
	font-weight: 700 !important;
	color: #334155 !important;
	margin-bottom: 6px !important;
	letter-spacing: .01em !important;
	font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.login-card .field-group label span.text-danger-500 {
	color: #ef4444 !important;
}

.login-card .field-group input[type="text"],
.login-card .field-group input[type="password"],
.login-card .field-group input[type="email"] {
	height: 42px !important;
	min-height: 42px !important;
	padding: 0 42px 0 38px !important;
	border: 1.5px solid #e2e8f0 !important;
	border-radius: 10px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #1e293b !important;
	background: #fff !important;
	box-shadow: none !important;
	outline: none !important;
	width: 100% !important;
	transition: border-color .18s, box-shadow .18s !important;
	font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.login-card .field-group input::placeholder {
	color: #cbd5e1 !important;
	font-weight: 400 !important;
}

.login-card .field-group input:focus {
	border-color: #3b82f6 !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .1) !important;
}

.login-card .field-group input.parsley-success {
	border-color: #22c55e !important;
	box-shadow: none !important;
}

.login-card .field-group input.parsley-error {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, .08) !important;
	background: #fff !important;
}

.login-card .errors-container {
	min-height: 0 !important;
	margin-top: 0 !important;
}

.login-card .parsley-errors-list {
	list-style: none !important;
	margin: 5px 0 0 !important;
	padding: 0 !important;
}

.login-card .parsley-errors-list li {
	font-size: 11px !important;
	font-weight: 600 !important;
	color: #ef4444 !important;
	display: flex !important;
	align-items: center !important;
	gap: 4px !important;
	line-height: 1.3 !important;
	margin-top: 0 !important;
}

.login-card .parsley-errors-list li::before {
	content: '\EF22' !important;
	font-family: 'remixicon' !important;
	font-size: 12px !important;
	line-height: 1 !important;
	flex-shrink: 0 !important;
	color: #ef4444 !important;
	font-style: normal !important;
	font-weight: normal !important;
}

/* ── Input wrapper ── */
.lp-input-wrap { position: relative; }

.lp-input-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 16px;
	color: #60a5fa;
	pointer-events: none;
	z-index: 1;
}

.lp-eye-btn {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #94a3b8;
	font-size: 18px;
	padding: 2px;
	display: flex;
	align-items: center;
	transition: color .15s;
}

.lp-eye-btn:hover { color: #3b82f6; }

/* ── Label row + forgot ── */
.lp-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.lp-label-row label { margin-bottom: 0 !important; }

.lp-forgot {
	font-size: 11px;
	font-weight: 600;
	color: #2563eb;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	font-family: 'Plus Jakarta Sans', sans-serif;
	transition: color .15s;
}

.lp-forgot:hover { color: #1e40af; }
.lp-forgot i { font-size: 12px; }

/* ── Submit ── */
.lp-submit {
	width: 100%;
	height: 44px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: #fff;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	transition: transform .15s, box-shadow .15s, opacity .15s;
	box-shadow: 0 2px 8px rgba(37, 99, 235, .3);
	margin-top: 4px;
}

.lp-submit i { font-size: 18px; }
.lp-submit:hover  { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37, 99, 235, .35); }
.lp-submit:active { transform: translateY(0); }
.lp-submit:disabled { opacity: .65; cursor: not-allowed; transform: none !important; }

/* ── Back link ── */
.lp-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
	color: #94a3b8;
	text-decoration: none;
	transition: color .15s;
	margin-top: 12px;
}

.lp-back:hover { color: #3b82f6; }
.lp-back i { font-size: 13px; }

/* ── Reset password ── */
.lp-reset { animation: lp-fade-in .2s ease; }

@keyframes lp-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.lp-reset-icon {
	width: 52px; height: 52px;
	background: #eff6ff;
	border: 1.5px solid #bfdbfe;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 12px;
}

.lp-reset-icon i { font-size: 26px; color: #3b82f6; }

.lp-contact-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lp-contact-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.lp-contact-ico {
	width: 32px; height: 32px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 16px;
}

.lp-contact-ico.email { background: #eff6ff; color: #3b82f6; }
.lp-contact-ico.phone { background: #f0fdf4; color: #16a34a; }

.lp-contact-lbl {
	font-size: 9.5px;
	color: #94a3b8;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.lp-contact-val {
	font-size: 12.5px;
	font-weight: 700;
	color: #334155;
	text-decoration: none;
}

.lp-contact-val:hover { color: #2563eb; }

.lp-btn-back {
	width: 100%;
	height: 40px;
	border: 1.5px solid #bfdbfe;
	border-radius: 10px;
	background: #eff6ff;
	color: #2563eb;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: background .15s, border-color .15s;
}

.lp-btn-back:hover { background: #dbeafe; border-color: #60a5fa; }

/* ── Footer ── */
.lp-footer {
	background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
	border-top: 1px solid rgba(37, 99, 235, .08);
	padding: 10px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}

.lp-footer-badges {
	display: flex;
	align-items: center;
	gap: 8px;
}

.lp-footer-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .04em;
	color: #2563eb;
}

.lp-footer-badge i { font-size: 11px; }

.lp-footer-sep {
	width: 2px; height: 2px;
	background: #bfdbfe;
	border-radius: 50%;
}

.lp-footer-copy {
	font-size: 9.5px;
	color: #94a3b8;
	font-weight: 500;
	text-align: center;
}

.lp-footer-copy strong { color: #1d4ed8; font-weight: 700; }

.lp-text-center { text-align: center; }

.hidden { display: none !important; }