/* assets/css/login-page.css */

/* Import Font Inter agar sama persis */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&display=swap");
body {
	font-family: "Inter", sans-serif;
	background-color: #f8f9fa;
	overflow-x: hidden;
}

/* Kartu Utama dengan Shadow Halus */
.card-custom {
	border: none;
	border-radius: 1rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	/* min-height: 600px;  */
	width: 100%;
	max-width: 1000px;
}

/* Input Styling */
.form-control {
	height: 48px;
	border-radius: 0.5rem;
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	padding-left: 2.75rem; /* Space untuk icon */
	font-size: 0.95rem;
	transition: all 0.3s ease;
}

.form-control:focus {
	background-color: #fff;
	border-color: #3b82f6; /* Warna biru primary */
	box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Icon di dalam Input */
.input-icon-wrapper {
	position: relative;
}

.input-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	z-index: 5;
	font-size: 1.1rem;
}

/* Tombol */
.btn-primary {
	background-color: #007bff; /* Sesuaikan dengan biru Vladimire */
	border-color: #007bff;
	height: 60px;
	border-radius: 0.5rem;
	font-weight: 600;
	letter-spacing: 0.3px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.1s;
}

.btn-primary:hover {
	transform: scale(1.01);
}

.btn-primary:active {
	transform: scale(0.99);
}

/* Panel Kanan (Gambar) */
.right-panel-bg {
	background-color: #121220; /* Biru Gelap */
	position: relative;
	overflow: hidden;
    /* Opsional: Border radius untuk sudut bawah di mobile agar tidak kaku */
    /* transition: all 0.3s ease; */
}

/* Background Image Overlay */
.bg-overlay {
	/* background-image: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?q=80&w=2000&auto=format&fit=crop'); */
	/* background-image: url("https://images.unsplash.com/photo-1624639247627-73e6792f1ce3?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8M3x8Y2hlcm5vYnlsfGVufDB8fDB8fHww"); */
	background-image: url('../image/login-bg.png');
	background-size: cover;
	background-position: center;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	/* opacity: 0.8; */
	/* mix-blend-mode: overlay; */
	/* Kunci efek visual */
}

/* Gradient Overlay */
.bg-gradient-overlay {
	background: linear-gradient(
135deg, 
        rgba(37, 99, 235, 0.9), rgba(15, 23, 42, 0.9)
	);
	mix-blend-mode: multiply;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
    z-index: 1;
}

/* Animasi CSS untuk menggantikan Framer Motion */
@keyframes float {
	0% {
		transform: translateY(0px);
		opacity: 0.5;
	}
	50% {
		transform: translateY(-20px);
		opacity: 0.8;
	}
	100% {
		transform: translateY(0px);
		opacity: 0.5;
	}
}
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in-up {
	animation: fadeInUp 0.6s ease-out forwards;
}

.floating-circle {
	position: absolute;
	top: 5rem;
	right: 5rem;
	width: 16rem;
	height: 16rem;
	background: white;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.2;
	animation: float 6s ease-in-out infinite; /* Animasi berulang */
    z-index: 2;
}

/* Styling Captcha agar rapi */
.captcha-box {
	border-radius: 0.5rem;
	overflow: hidden;
	border: 1px solid #dee2e6;
	cursor: pointer;
}
.captcha-box:hover {
	border-color: #007bff;
}

/* --- Tambahan untuk Logo --- */

/* Styling Logo Rumah Sakit (Kiri) */
.logo-rs-container {
	display: flex;
	align-items: center;
	margin-bottom: 1.5rem;
}

.logo-rs-img {
	max-height: 70px; /* Tinggi maksimal agar tidak terlalu besar */
	width: auto; /* Lebar menyesuaikan proporsi */
	object-fit: contain;
}

/* Styling Logo Sistem STECU (Kanan) */
.logo-system-img {
	max-width: 280px; /* Lebar maksimal logo sistem */
	width: 100%;
	height: auto;
	filter: drop-shadow(
		0 4px 6px rgba(0, 0, 0, 0.3)
	); /* Sedikit bayangan agar pop-up di background gelap */
	margin-bottom: 1rem;
}

/* Penyesuaian Mobile: Logo di tengah saat layar kecil */
@media (max-width: 768px) {
	.logo-rs-container {
		justify-content: center;
	}
}

/* === */
/* assets/css/login-page.css */

/* ... (Kode CSS sebelumnya tetap sama, pastikan bagian ini ada/diupdate) ... */

/* --- Typography Khusus Panel Kanan --- */

.tagline-text {
	font-size: 1.75rem;
	font-weight: 800;
	font-style: italic;
	letter-spacing: 0.5px;
	margin-bottom: 1.5rem;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.divider-custom {
	border-top: 1px solid rgba(255, 255, 255, 0.3);
	width: 60%;
	margin: 0 auto 1.5rem auto; /* Center divider */
}

.hospital-name-right {
	font-family: "Cinzel", serif;
	font-size: 1.4rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 0.5rem;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.system-desc {
	font-size: 0.95rem;
	font-weight: 300;
	opacity: 0.9;
	line-height: 1.5;
}

/* Pastikan logo responsif */
.logo-rs-img {
	max-height: 110px; /* Dikecilkan sedikit agar proporsional di panel kiri */
	width: auto;
}

.logo-system-img {
	max-width: 450px; /* Besar sesuai instruksi wireframe */
	width: 100%;
	height: auto;
	margin-bottom: 2rem;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* --- PENYESUAIAN MOBILE (RESPONSIVE) --- */

@media (max-width: 767.98px) {
    .floating-circle {
        width: 14rem;       /* Ukuran lebih kecil untuk HP */
        height: 14rem;
        margin-left: -7rem; /* Setengah dari 14rem */
        margin-top: -7rem;
        
        filter: blur(50px); /* Kurangi blur agar tetap terlihat "bersinar" di area kecil */
        opacity: 0.25;      /* Sedikit lebih terang di mobile agar terlihat jelas */
    }
	/* 1. Panel Biru (Banner) jadi Header */
	.right-panel-bg {
		padding: 1.5rem 1rem !important; /* Kurangi padding agar tidak terlalu tinggi */
		min-height: auto !important; /* Tinggi menyesuaikan konten, bukan full screen */
		border-bottom-left-radius: 0; /* Opsional: Membuat sudut bawah kotak */
		border-bottom-right-radius: 0;
	}

	/* 2. Logo Sistem di Mobile */
	.logo-system-img {
		max-width: 200px; /* Perkecil logo sistem agar pas di HP */
		margin-bottom: 0.3rem !important;
	}

	/* 3. Nama Hospital di Mobile */
	.hospital-name-right {
		font-size: 1.3rem; /* Font lebih kecil */
		margin-bottom: 0;
	}

	/* 4. Sembunyikan Logo RS kecil di form karena sudah ada Header */
	.logo-rs-container {
		display: none;
	}
}
