/* =========================================================
   Halaman login CAT Perahu Dinatu
   Warna diambil dari logo: biru, biru muda, emas.
   ========================================================= */
:root {
	--biru: #1f4fae;
	--biru-muda: #0b8fd8;
	--emas: #f2b01e;
	--emas-tua: #d98c0a;
	--gelap: #070b16;
	--navy: #0d1b3d;
	--teks: #e9eef8;
	--redup: #9aa8c3;
	--kartu: rgba(255, 255, 255, .07);
	--garis: rgba(255, 255, 255, .14);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
	font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: var(--teks);
	background: var(--gelap);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.halaman { display: flex; min-height: 100vh; }

/* ---------- panel merek (kiri) ---------- */
.merek {
	position: relative;
	flex: 1.25;
	overflow: hidden;
	background: #0b0b0d;
	display: flex; flex-direction: column;
	padding: 3vh 6% 6vh;
	height: 100vh; /* tinggi pasti supaya gambar bisa mengecil di layar pendek */
	position: sticky; top: 0;
}
/* gambar logo mengisi ruang di atas; keterangan selalu di bawahnya (tidak bertumpuk) */
.merek .bingkai-foto {
	flex: 1; min-height: 0;
	display: flex; align-items: center; justify-content: center;
}
.merek .foto {
	display: block;
	max-width: 112%; max-height: 100%;
	object-fit: contain;
	/* tepi gambar dipudarkan supaya menyatu dengan latar gelap */
	-webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
	mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
	animation: kenburns 26s ease-in-out infinite alternate, pudar 1.2s both;
}
.merek .kilau {
	position: absolute; top: 0; right: 0; bottom: 0; left: 0;
	background: linear-gradient(115deg, transparent 35%, rgba(255, 230, 160, .18) 48%, rgba(255, 255, 255, .05) 52%, transparent 65%);
	background-size: 250% 100%;
	animation: kilau 7s ease-in-out infinite;
	mix-blend-mode: screen;
}
.merek .bayang {
	position: absolute; top: 0; right: 0; bottom: 0; left: 0;
	background: linear-gradient(180deg, rgba(7, 11, 22, 0) 45%, rgba(7, 11, 22, .85) 100%),
	            linear-gradient(90deg, rgba(7, 11, 22, 0) 70%, rgba(7, 11, 22, .9) 100%);
}
.merek .kilau, .merek .bayang { pointer-events: none; }
.merek .keterangan {
	position: relative; z-index: 2;
	flex: none;
	padding-right: 8%;
	animation: naik .9s .3s both cubic-bezier(.2, .8, .2, 1);
}
.merek .label-kecil {
	display: inline-block;
	font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
	color: var(--emas); font-weight: 600;
	padding: 6px 12px; border: 1px solid rgba(242, 176, 30, .45); border-radius: 30px;
	background: rgba(242, 176, 30, .08);
}
.merek h2 { font-size: 34px; line-height: 1.2; margin: 14px 0 10px; font-weight: 700; }
.merek h2 span {
	background: linear-gradient(90deg, #9fd3ff, #ffffff 40%, var(--emas));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.merek p { color: var(--redup); max-width: 520px; line-height: 1.6; margin: 0 0 18px; }
.fitur { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.fitur li {
	display: flex; align-items: center; gap: 8px;
	font-size: 13px; color: #d7e2f5;
	padding: 8px 12px; border-radius: 10px;
	background: rgba(255, 255, 255, .06); border: 1px solid var(--garis);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.fitur svg { width: 16px; height: 16px; flex: none; color: var(--emas); }

/* ---------- panel form (kanan) ---------- */
.panel-form {
	position: relative;
	flex: 1;
	min-width: 380px;
	display: flex; align-items: center; justify-content: center;
	padding: 40px 28px;
	overflow: hidden;
	background: radial-gradient(120% 80% at 100% 0%, #13285a 0%, var(--navy) 45%, var(--gelap) 100%);
}
/* cahaya bergerak di latar */
.cahaya { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.cahaya.c1 { width: 360px; height: 360px; background: var(--biru); top: -80px; right: -60px; animation: melayang 18s ease-in-out infinite alternate; }
.cahaya.c2 { width: 280px; height: 280px; background: var(--emas-tua); bottom: -90px; left: -40px; opacity: .35; animation: melayang 22s ease-in-out infinite alternate-reverse; }
.cahaya.c3 { width: 220px; height: 220px; background: var(--biru-muda); top: 45%; left: 55%; opacity: .3; animation: melayang 26s ease-in-out infinite alternate; }
/* partikel kecil naik perlahan */
.partikel { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.partikel i {
	position: absolute; bottom: -20px;
	width: 6px; height: 6px; border-radius: 50%;
	background: rgba(255, 255, 255, .5);
	box-shadow: 0 0 8px rgba(159, 211, 255, .8);
	animation: partikel linear infinite;
}
.partikel i:nth-child(1) { left: 8%;  animation-duration: 14s; animation-delay: 0s; }
.partikel i:nth-child(2) { left: 22%; animation-duration: 19s; animation-delay: 3s; width: 4px; height: 4px; }
.partikel i:nth-child(3) { left: 37%; animation-duration: 16s; animation-delay: 6s; background: rgba(242, 176, 30, .7); box-shadow: 0 0 8px rgba(242, 176, 30, .8); }
.partikel i:nth-child(4) { left: 52%; animation-duration: 21s; animation-delay: 1s; width: 3px; height: 3px; }
.partikel i:nth-child(5) { left: 66%; animation-duration: 15s; animation-delay: 8s; }
.partikel i:nth-child(6) { left: 78%; animation-duration: 18s; animation-delay: 4s; background: rgba(242, 176, 30, .7); box-shadow: 0 0 8px rgba(242, 176, 30, .8); width: 4px; height: 4px; }
.partikel i:nth-child(7) { left: 90%; animation-duration: 23s; animation-delay: 10s; }
.partikel i:nth-child(8) { left: 45%; animation-duration: 25s; animation-delay: 12s; width: 3px; height: 3px; }

/* ---------- kartu login ---------- */
.kartu-login {
	position: relative; z-index: 2;
	width: 100%; max-width: 400px;
	padding: 34px 30px 26px;
	border-radius: 20px;
	background: var(--kartu);
	border: 1px solid var(--garis);
	box-shadow: 0 25px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
	backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
	animation: kartuMasuk .8s cubic-bezier(.2, .8, .2, 1) both;
}
.kartu-login::before { /* garis tepi bercahaya di atas kartu */
	content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px;
	background: linear-gradient(90deg, transparent, var(--biru-muda), var(--emas), transparent);
	border-radius: 2px;
	animation: garisCahaya 4s ease-in-out infinite;
}
.kartu-login.goyang { animation: kartuMasuk .8s cubic-bezier(.2, .8, .2, 1) both, goyang .5s .8s; }

.banner-hp { display: none; }
.kepala { text-align: center; margin-bottom: 22px; }
.kepala .ikon-merek {
	width: 56px; height: 56px; margin: 0 auto 12px;
	border-radius: 16px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--biru) 0%, var(--biru-muda) 55%, var(--emas) 100%);
	box-shadow: 0 10px 25px rgba(11, 143, 216, .35);
	animation: denyut 3s ease-in-out infinite;
}
.kepala .ikon-merek svg { width: 28px; height: 28px; color: #fff; }
.kepala h1 { font-size: 24px; margin: 0; font-weight: 700; letter-spacing: .2px; }
.kepala p { margin: 6px 0 0; color: var(--redup); font-size: 14px; }

/* isian dengan label mengambang */
.isian { position: relative; margin-bottom: 16px; }
.isian input {
	width: 100%; height: 54px;
	padding: 20px 46px 6px 46px;
	font-size: 15px; color: #fff;
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--garis);
	border-radius: 12px;
	outline: none;
	transition: border-color .25s, background .25s, box-shadow .25s;
}
.isian input:focus {
	border-color: var(--biru-muda);
	background: rgba(255, 255, 255, .09);
	box-shadow: 0 0 0 4px rgba(11, 143, 216, .18);
}
.isian label {
	position: absolute; left: 46px; top: 17px;
	font-size: 15px; color: var(--redup);
	pointer-events: none;
	transition: all .2s ease;
}
.isian input:focus + label,
.isian input:not(:placeholder-shown) + label {
	top: 8px; font-size: 11px; letter-spacing: .4px; color: #9fd3ff;
}
.isian .ikon { position: absolute; left: 15px; top: 17px; width: 20px; height: 20px; color: var(--redup); transition: color .25s; }
.isian input:focus ~ .ikon { color: var(--emas); }
.isian input:-webkit-autofill {
	-webkit-text-fill-color: #fff;
	-webkit-box-shadow: 0 0 0 40px #18264a inset;
	transition: background-color 9999s;
}
.lihat-sandi {
	position: absolute; right: 8px; top: 9px;
	width: 36px; height: 36px; border: 0; border-radius: 8px;
	background: transparent; color: var(--redup); cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.lihat-sandi:hover, .lihat-sandi:focus { color: #fff; background: rgba(255, 255, 255, .08); outline: none; }
.lihat-sandi svg { width: 20px; height: 20px; }
.capslock { display: none; font-size: 12px; color: var(--emas); margin: -8px 0 12px 4px; }
.capslock.tampil { display: block; animation: muncul .3s both; }

/* tombol masuk */
.tombol-masuk {
	position: relative; overflow: hidden;
	width: 100%; height: 52px; margin-top: 6px;
	border: 0; border-radius: 12px; cursor: pointer;
	font-size: 16px; font-weight: 700; letter-spacing: .5px; color: #fff;
	background: linear-gradient(100deg, var(--biru) 0%, var(--biru-muda) 60%, #2bb3f0 100%);
	box-shadow: 0 12px 28px rgba(11, 143, 216, .35);
	transition: transform .15s, box-shadow .25s, filter .25s;
	display: flex; align-items: center; justify-content: center; gap: 10px;
}
.tombol-masuk::after { /* kilau melintas */
	content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
	transform: skewX(-20deg);
	animation: kilauTombol 3.5s ease-in-out infinite;
}
.tombol-masuk:hover { filter: brightness(1.08); box-shadow: 0 16px 34px rgba(11, 143, 216, .45); }
.tombol-masuk:active { transform: translateY(1px) scale(.99); }
.tombol-masuk svg { width: 20px; height: 20px; transition: transform .25s; }
.tombol-masuk:hover svg { transform: translateX(4px); }
.tombol-masuk .putar { display: none; width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: putar .8s linear infinite; }
.tombol-masuk.memuat { pointer-events: none; filter: saturate(.7); }
.tombol-masuk.memuat .putar { display: inline-block; }
.tombol-masuk.memuat .panah { display: none; }

/* pesan */
.pesan {
	display: flex; gap: 10px; align-items: flex-start;
	font-size: 13.5px; line-height: 1.45;
	padding: 11px 14px; margin-bottom: 16px;
	border-radius: 12px;
	animation: muncul .4s both;
}
.pesan svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.pesan.galat { background: rgba(239, 68, 68, .14); border: 1px solid rgba(239, 68, 68, .45); color: #ffc9c9; }
.pesan.peringatan { background: rgba(242, 176, 30, .12); border: 1px solid rgba(242, 176, 30, .45); color: #ffe2a3; }
.pesan.info { background: rgba(11, 143, 216, .14); border: 1px solid rgba(11, 143, 216, .45); color: #cdeaff; }
.pesan.sukses { background: rgba(46, 158, 91, .15); border: 1px solid rgba(46, 158, 91, .5); color: #c9f2da; }

.bantuan { margin: 18px 0 0; text-align: center; font-size: 12.5px; color: var(--redup); line-height: 1.6; }
.jam-server {
	margin-top: 18px; padding-top: 16px;
	border-top: 1px dashed var(--garis);
	display: flex; align-items: center; justify-content: center; gap: 8px;
	font-size: 12.5px; color: var(--redup);
}
.jam-server svg { width: 15px; height: 15px; color: var(--emas); }
.jam-server b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.kaki { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 12px; color: rgba(154, 168, 195, .7); z-index: 2; }

/* kemunculan bertahap isi kartu */
.bertahap > * { animation: naik .6s both cubic-bezier(.2, .8, .2, 1); }
.bertahap > *:nth-child(1) { animation-delay: .15s; }
.bertahap > *:nth-child(2) { animation-delay: .25s; }
.bertahap > *:nth-child(3) { animation-delay: .35s; }
.bertahap > *:nth-child(4) { animation-delay: .45s; }
.bertahap > *:nth-child(5) { animation-delay: .55s; }
.bertahap > *:nth-child(6) { animation-delay: .65s; }

/* ---------- animasi ---------- */
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, -1%); } }
@keyframes kilau { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
@keyframes naik { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes kartuMasuk { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes melayang { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 50px) scale(1.15); } }
@keyframes partikel { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: .8; } 100% { transform: translateY(-110vh); opacity: 0; } }
@keyframes garisCahaya { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes denyut { 0%, 100% { transform: translateY(0); box-shadow: 0 10px 25px rgba(11, 143, 216, .35); } 50% { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(242, 176, 30, .35); } }
@keyframes kilauTombol { 0% { left: -60%; } 60%, 100% { left: 130%; } }
@keyframes putar { to { transform: rotate(360deg); } }
@keyframes pudar { from { opacity: 0; } to { opacity: 1; } }
@keyframes muncul { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes goyang { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }

/* ---------- layar kecil ---------- */
@media (max-width: 991px) {
	.halaman { display: block; }
	.merek { display: none; }
	.panel-form {
		min-width: 0; min-height: 100vh;
		padding: 24px 16px 56px;
		align-items: flex-start;
		background: radial-gradient(140% 70% at 100% 0%, #13285a 0%, var(--navy) 50%, var(--gelap) 100%);
	}
	.banner-hp {
		display: block;
		height: 150px; margin: -10px -6px 18px;
		border-radius: 16px;
		background: url(../images/bg-login-900.jpg) center 37% / cover no-repeat;
		box-shadow: inset 0 -40px 40px -20px rgba(7, 11, 22, .9);
		animation: naik .8s both;
	}
	.kartu-login { margin-top: 8px; padding: 24px 20px 20px; }
	.kepala .ikon-merek { display: none; }
}

/* hormati pengaturan "kurangi gerakan" */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
