:root {
	--navy: #0B3A67;
	--navy-light: #1E5A94;
	--navy-dark: #082B4D;
	--input-padding-x: 1rem;
	--input-padding-y: 0.65rem;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

.login-page-wrap {
	display: flex;
	min-height: 100vh;
	background: #ffffff;
}

/* ============================================================ */
/* PANEL KIRI — FORM SIGN IN (putih bersih)                      */
/* ============================================================ */

.login-panel-left {
	flex: 0 0 40%;
	max-width: 40%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 4vh 6vw;
	background: #fcfcfd;
	position: relative;
}

.login-brand-mark {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

.login-brand-mark img {
	height: 64px;
	width: auto;
}

.login-brand-mark span {
	font-size: 22px;
	font-weight: 700;
	color: var(--navy);
	letter-spacing: -0.02em;
}

.login-form-container {
	max-width: 420px;
	width: 100%;
}

.login-title {
	font-size: 22px;
	font-weight: 700;
	color: #1a1d29;
	margin: 0 0 6px 0;
}

.login-subtitle {
	font-size: 12.5px;
	color: #8a8f9c;
	margin-bottom: 24px;
}

.login-subtitle a {
	color: var(--navy);
	font-weight: 600;
	text-decoration: underline;
}

.form-field-group {
	margin-bottom: 16px;
}

.form-field-group label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: #4a4f5c;
	margin-bottom: 6px;
}

.form-field-group .input-wrapper {
	position: relative;
}

.form-field-group input {
	width: 100%;
	padding: var(--input-padding-y) var(--input-padding-x);
	border: 1.5px solid #e3e5ea;
	border-radius: 12px;
	font-size: 13px;
	color: #1a1d29;
	background: #ffffff;
	transition: border-color 0.15s ease;
	outline: none;
}

.form-field-group input::placeholder {
	color: #b0b4bd;
}

.form-field-group input:focus {
	border-color: var(--navy);
	box-shadow: 0 0 0 3px rgba(11, 58, 103, 0.1);
}

.toggle-password {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #8a8f9c;
	background: none;
	border: none;
	padding: 0;
	display: flex;
	align-items: center;
}

.login-options-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	font-size: 12px;
}

.remember-me {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #6b7080;
	cursor: pointer;
}

.remember-me input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--navy);
	cursor: pointer;
}

.forgot-link {
	color: var(--navy);
	font-weight: 600;
	text-decoration: none;
}

.forgot-link:hover {
	text-decoration: underline;
}

.btn-signin {
	width: 100%;
	padding: 12px;
	background: var(--navy);
	color: #ffffff;
	border: none;
	border-radius: 12px;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.btn-signin:hover {
	background: var(--navy-dark);
}

.btn-signin:active {
	transform: scale(0.99);
}

.divider-or {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 26px 0;
	color: #a0a4ad;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.divider-or::before,
.divider-or::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e3e5ea;
}

.btn-social {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px;
	border: 1.5px solid #e3e5ea;
	border-radius: 12px;
	background: #ffffff;
	font-size: 14px;
	font-weight: 500;
	color: #2a2d36;
	cursor: pointer;
	margin-bottom: 12px;
	transition: background 0.15s ease, border-color 0.15s ease;
	text-decoration: none;
}

.btn-social:hover {
	background: #f7f8fa;
	border-color: #d1d4db;
}

.btn-social img,
.btn-social svg {
	width: 18px;
	height: 18px;
}

.social-login-row {
	display: flex;
	justify-content: center;
	gap: 32px;
	margin: 0 0 4px;
}

.social-login-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	padding: 0;
	color: #6b7280;
	font-size: 12px;
	font-weight: 500;
	cursor: not-allowed;
}

.social-login-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #f3f4f8;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--navy);
	transition: background 0.15s ease;
}

.social-login-item:hover .social-login-icon {
	background: #e9ebf2;
}

.login-footer-addr {
	margin-top: 36px;
	font-size: 12px;
	color: #a0a4ad;
	text-align: center;
	line-height: 1.6;
}

/* ============================================================ */
/* PANEL KANAN — NAVY PROMOSI                                    */
/* ============================================================ */

.login-panel-right {
	flex: 1;
	position: relative;
	background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 70%);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 4vh 5vw;
}

/* Dekorasi lingkaran abstrak ala referensi */
.login-panel-right::before {
	content: '';
	position: absolute;
	top: -10%;
	right: -8%;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
}

.login-panel-right::after {
	content: '';
	position: absolute;
	top: 8%;
	right: 12%;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
}

.panel-right-topbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	font-weight: 500;
	position: relative;
	z-index: 2;
}

.panel-right-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	z-index: 2;
}

/* Card showcase produk */
.promo-card {
	background: #ffffff;
	border-radius: 18px;
	padding: 30px;
	max-width: 640px;
	width: 100%;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	position: relative;
	margin-bottom: 36px;
}

.promo-card-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--navy);
	line-height: 1.25;
	margin: 0 0 12px 0;
}

.promo-card-text {
	font-size: 13.5px;
	color: #6b7080;
	line-height: 1.6;
	margin-bottom: 20px;
	max-width: 75%;
}

.promo-card-btn {
	display: inline-block;
	background: var(--navy);
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 22px;
	border-radius: 30px;
	text-decoration: none;
}

.promo-card-laptop {
	position: absolute;
	right: 18px;
	top: 22px;
	width: 160px;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
	border-radius: 8px;
}

.promo-card-stats-row {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #eef0f3;
	display: flex;
	align-items: flex-start;
	gap: 18px;
}

.promo-card-stat {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
}

.promo-card-stat-icon {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: rgba(11, 58, 103, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--navy);
	font-size: 16px;
	flex-shrink: 0;
}

.promo-card-stat-label {
	font-size: 10.5px;
	color: #a0a4ad;
	line-height: 1.3;
}

.promo-card-stat-value {
	font-size: 15px;
	font-weight: 700;
	color: var(--navy);
}

.panel-right-heading {
	color: #ffffff;
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 14px 0;
}

.panel-right-desc {
	color: rgba(255, 255, 255, 0.65);
	font-size: 14px;
	line-height: 1.7;
	max-width: 640px;
}

.panel-right-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: auto;
	position: relative;
	z-index: 2;
	color: rgba(255, 255, 255, 0.5);
	font-size: 13px;
}

.panel-right-dots .dot-active {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #ffffff;
	display: inline-block;
}

/* ============================================================ */
/* RESPONSIVE                                                    */
/* ============================================================ */

@media (max-width: 900px) {
	.login-panel-right {
		display: none;
	}

	.login-panel-left {
		flex: 1;
		max-width: 100%;
	}
}

/* ============================================================ */
/* LOADING SCREEN — tetap dipakai dari versi sebelumnya          */
/* ============================================================ */

.loader-wrap {
	background: #0c1117;
	opacity: .94;
	height: 100%;
	width: 100%;
	position: fixed;
	z-index: 99999;
	top: 0;
	left: 0;
}

.loader {
	font-size: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.loader-spinner {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 3px solid rgba(11, 58, 103, 0.2);
	border-top-color: var(--navy);
	border-right-color: var(--navy);
	margin-bottom: 20px;
	animation: spinnerRotate 0.85s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
	box-shadow: 0 0 18px rgba(11, 58, 103, 0.35);
}

@keyframes spinnerRotate {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.loader-text {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: #ffffff;
	opacity: 0.85;
	text-transform: uppercase;
}

.loader-text::after {
	content: '';
	display: inline-block;
	width: 1.2em;
	text-align: left;
	animation: loaderDots 1.4s steps(4, end) infinite;
}

@keyframes loaderDots {
	0% { content: ''; }
	25% { content: '.'; }
	50% { content: '..'; }
	75% { content: '...'; }
}

/* ============================================================ */
/* RESET PASSWORD — Elemen tambahan khusus                       */
/* ============================================================ */

.captcha-image-wrap {
	width: 100%;
	background: #f7f8fa;
	border: 1.5px solid #e3e5ea;
	border-radius: 12px;
	padding: 10px;
	margin-bottom: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.btn-back-login {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 14px;
	padding: 11px;
	border-radius: 12px;
	background: transparent;
	color: var(--navy);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	border: 1.5px solid #e3e5ea;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-back-login:hover {
	background: #f7f8fa;
	border-color: #d1d4db;
	color: var(--navy);
}

/* Card keamanan di panel kanan (varian dari .promo-card) */
.security-card {
	max-width: 640px !important;
}

.security-icon-wrap {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: rgba(11, 58, 103, 0.08);
	color: var(--navy);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}

.security-tips {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #eef0f3;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.security-tip-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #4a4f5c;
}

.security-tip-item svg {
	flex-shrink: 0;
	color: #1f9d55;
}

/* Varian ikon sukses (lingkaran centang hijau) untuk halaman verifikasi */
.success-icon-wrap {
	background: rgba(31, 157, 85, 0.1) !important;
	color: #1f9d55 !important;
}

/* ============================================================ */
/* ALERT MESSAGE — Notifikasi error/sukses (konsisten desain login) */
/* ============================================================ */

.alert-login {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.5;
	margin-bottom: 22px;
	border: 1.5px solid transparent;
}

.alert-login-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
}

/* Varian Error */
.alert-login.alert-login-error {
	background: #fdf2f2;
	border-color: #f8d7d7;
	color: #b3261e;
}

.alert-login.alert-login-error .alert-login-icon {
	color: #d33;
}

/* Varian Sukses */
.alert-login.alert-login-success {
	background: #f1faf4;
	border-color: #c8ecd4;
	color: #157a3f;
}

.alert-login.alert-login-success .alert-login-icon {
	color: #1f9d55;
}

/* Varian Warning */
.alert-login.alert-login-warning {
	background: #fff8ec;
	border-color: #f5e2b8;
	color: #8a6212;
}

.alert-login.alert-login-warning .alert-login-icon {
	color: #d99a1b;
}

/* ============================================================ */
/* OVERRIDE BOOTSTRAP ALERT — agar pesan dari controller (PHP)   */
/* otomatis ikut tema desain login baru, tanpa ubah controller   */
/* ============================================================ */

.login-form-container .alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px !important;
	border-radius: 12px !important;
	font-size: 13.5px !important;
	font-weight: 500;
	line-height: 1.5;
	margin-bottom: 22px;
	border: 1.5px solid transparent;
	text-align: left !important;
}

.login-form-container .alert center,
.login-form-container .alert > center {
	text-align: left !important;
	width: 100%;
}

/* Ikon Font Awesome (<i class="fas fa-times/fa-check">) yang dipakai langsung
   dari controller PHP — distyle agar ukuran & posisinya konsisten dengan box */
.login-form-container .alert i.fas,
.login-form-container .alert i.fa {
	flex-shrink: 0;
	font-size: 15px;
	margin-top: 2px;
	margin-right: 4px;
}

/* Fallback ikon SVG untuk alert yang TIDAK menyertakan <i class="fas">
   (dipakai hanya bila tidak ada child <i> di dalam .alert) */
.login-form-container .alert-no-icon::before {
	content: '';
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

/* Danger / Error */
.login-form-container .alert-danger {
	background: #fdf2f2 !important;
	border-color: #f8d7d7 !important;
	color: #b3261e !important;
}

.login-form-container .alert-danger i.fas,
.login-form-container .alert-danger i.fa {
	color: #d33;
}

/* Success */
.login-form-container .alert-success {
	background: #f1faf4 !important;
	border-color: #c8ecd4 !important;
	color: #157a3f !important;
}

.login-form-container .alert-success i.fas,
.login-form-container .alert-success i.fa {
	color: #1f9d55;
}

/* Warning */
.login-form-container .alert-warning {
	background: #fff8ec !important;
	border-color: #f5e2b8 !important;
	color: #8a6212 !important;
}

.login-form-container .alert-warning i.fas,
.login-form-container .alert-warning i.fa {
	color: #d99a1b;
}

/* ============================================================ */
/* FIX — hilangkan ikon bawaan ::before/::after dari Bootstrap/  */
/* AdminLTE pada .alert, supaya hanya ikon Font Awesome dari     */
/* controller (<i class="fas">) yang tampil — tidak dobel        */
/* ============================================================ */

.login-form-container .alert::before,
.login-form-container .alert::after {
	content: none !important;
	display: none !important;
}
