/* --- RESET & BASE STYLES --- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
	background-color: #020617;
	color: #f8fafc;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	position: relative;
	padding: 20px;
}

/* --- ANIMATED BACKGROUND ORBS --- */
.bg-wrapper {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	overflow: hidden;
	z-index: 1;
}

.orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.4;
	mix-blend-mode: screen;
	animation: floatOrb 12s infinite alternate ease-in-out;
}

.orb-1 {
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, #38bdf8 0%, #0369a1 100%);
	top: -50px;
	left: -50px;
}

.orb-2 {
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, #ec4899 0%, #be185d 100%);
	bottom: -100px;
	right: -50px;
	animation-delay: -6s;
}

/* --- PORTAL RING ANIMATION --- */
.portal-ring {
	position: absolute;
	width: 450px;
	height: 450px;
	border: 2px dashed rgba(56, 189, 248, 0.2);
	border-radius: 50%;
	z-index: 1;
	animation: rotateRing 20s linear infinite;
}

.portal-ring::before {
	content: '';
	position: absolute;
	inset: -10px;
	border: 1px solid rgba(236, 72, 153, 0.1);
	border-radius: 50%;
	animation: rotateRing 10s linear infinite reverse;
}

/* --- MAIN LOGIN CONTAINER --- */
.login-container {
	position: relative;
	z-index: 10;
	width: 100%;
	max-width: 420px;
	perspective: 1000px;
}

/* --- ELEGANT GLASSMORPHISM CARD --- */
.login-card {
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 24px;
	padding: 40px 32px;
	text-align: center;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
				inset 0 1px 0 rgba(255, 255, 255, 0.1);
	transform: translateY(20px);
	opacity: 0;
	animation: slideUpCard 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- BRANDING & LOGO (PINTU DORAEMON) --- */
.brand-container {
	display: inline-block;
	margin-bottom: 24px;
}

.brand-logo {
	width: 72px;
	height: 72px;
	background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
	border-radius: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 32px;
	color: #fff;
	box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
	position: relative;
	transition: transform 0.5s ease;
}

.brand-logo::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 24px;
	background: linear-gradient(135deg, #38bdf8, #ec4899);
	z-index: -1;
	opacity: 0.5;
	filter: blur(4px);
}

.login-card:hover .brand-logo {
	transform: scale(1.05) rotate(5deg);
}

/* --- TYPOGRAPHY --- */
.title-app {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.5px;
	background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 12px;
}

.subtitle-app {
	font-size: 14px;
	color: #94a3b8;
	line-height: 1.6;
	margin-bottom: 36px;
	padding: 0 10px;
}

/* --- LUXURY GOOGLE BUTTON --- */
.btn-google {
	width: 100%;
	padding: 14px 24px;
	background: #ffffff;
	color: #0f172a;
	border: none;
	border-radius: 14px;
	font-size: 15px;
	font-weight: 600;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
}

.btn-google:hover {
	background: #f8fafc;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15), 
				0 0 0 4px rgba(56, 189, 248, 0.2);
}

.btn-google:active {
	transform: translateY(0);
}

#gLogo {
	transition: transform 0.3s ease;
}

/* --- LOADING SPINNER --- */
.loading-spinner {
	display: none;
	width: 20px;
	height: 20px;
	border: 2.5px solid #cbd5e1;
	border-top: 2.5px solid #0284c7;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

/* --- VERSION TAG --- */
.version-tag {
	margin-top: 40px;
	font-size: 11px;
	color: #475569;
	letter-spacing: 1px;
	font-weight: 500;
}

/* --- KEYFRAMES ANIMATIONS --- */
@keyframes floatOrb {
	0% { transform: translate(0, 0) scale(1); }
	100% { transform: translate(60px, 40px) scale(1.15); }
}

@keyframes rotateRing {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

@keyframes slideUpCard {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* --- RESPONSIVE MOBILE OPTIMIZATION --- */
@media (max-width: 480px) {
	body {
		padding: 16px;
	}
	
	.portal-ring {
		width: 320px;
		height: 320px;
	}

	.login-card {
		padding: 36px 24px;
		border-radius: 20px;
	}

	.title-app {
		font-size: 24px;
	}

	.subtitle-app {
		font-size: 13px;
		margin-bottom: 30px;
	}

	.btn-google {
		padding: 12px 20px;
		font-size: 14px;
	}
}
/* --- CUSTOM SWEETALERT2 GLASSMORPHISM --- */
.swal2-container {
    overflow-x: hidden !important; /* Mengunci layar agar tidak bisa geser kanan-kiri */
}

.swal2-popup.custom-swal-popup {
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    padding: 30px 20px !important;
    width: 380px !important; /* Sedikit dikecilkan untuk standar PC */
    max-width: 90% !important; 
    box-sizing: border-box !important; /* Memastikan padding tidak menambah lebar elemen */
}

/* Optimasi Ukuran Icon */
.swal2-icon {
    transform: scale(0.9) !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.swal2-title.custom-swal-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    letter-spacing: -0.5px !important;
    background: linear-gradient(135deg, #ffffff 60%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 !important;
}

.swal2-html-container.custom-swal-text {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #cbd5e1 !important;
    font-size: 14px !important;
    margin-top: 8px !important;
    line-height: 1.5 !important;
}

/* Kustomisasi Tombol OK jika muncul */
.swal2-confirm.custom-swal-confirm {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
    border-radius: 12px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 12px 28px !important;
    margin-top: 15px !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4) !important;
}

/* Animasi Masuk Popup */
.swal2-show {
    animation: swalScaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes swalScaleIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- PERBAIKAN TOTAL UNTUK LAYAR HP (MOBILE) --- */
@media (max-width: 480px) {
    /* Mereset paksa lebar default bawaan library di mobile */
    div.swal2-popup.custom-swal-popup {
        width: 85% !important; /* Menggunakan persentase murni agar fleksibel mengikuti layar HP */
        min-width: auto !important;
        max-width: 85% !important;
        padding: 24px 16px !important;
        border-radius: 20px !important;
        margin: 0 auto !important;
    }
    
    .swal2-icon {
        transform: scale(0.75) !important;
        margin-top: 5px !important;
        margin-bottom: 5px !important;
    }

    .swal2-title.custom-swal-title {
        font-size: 18px !important;
    }

    .swal2-html-container.custom-swal-text {
        font-size: 13px !important;
        margin-top: 6px !important;
    }

    .swal2-actions {
        width: 100% !important; /* Memastikan kontainer tombol tidak melar */
    }

    .swal2-confirm.custom-swal-confirm {
        width: 100% !important;
        padding: 12px !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
    }
}