/* Import font Quicksand dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

/* Reset default styling dan pengaturan global */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Quicksand', sans-serif; /* Menggunakan font Quicksand untuk seluruh elemen */
	color: #fff; /* Warna teks default putih */
}

/* Styling untuk body: menggunakan flexbox untuk memusatkan konten */
body {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh; /* Tinggi minimum viewport penuh */
	background: #000; /* Latar belakang hitam */
}

/* Section utama untuk background animasi */
section {
	position: absolute;
	width: 100vw;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2px; /* Celah kecil antar elemen */
	flex-wrap: wrap;
	overflow: hidden;
}

/* Efek gradient untuk background animasi */
section::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background: linear-gradient(#000, rgb(0, 8, 255), #000);
	animation: animate 5s linear infinite; /* Animasi gradient bergerak */
}

/* Keyframe animasi untuk efek bergerak */
@keyframes animate {
	0% {
		transform: translateY(-100%); /* Mulai dari atas */
	}
	100% {
		transform: translateY(100%); /* Bergerak ke bawah */
	}
}

/* Styling untuk kotak-kotak kecil latar belakang */
section span {
	position: relative;
	display: block;
	width: calc(6.25vw - 2px); /* Lebar responsif */
	height: calc(6.25vw - 2px); /* Tinggi responsif */
	background: #181818;
	z-index: 2;
	transition: 1.5s; /* Transisi warna */
}

/* Efek hover pada kotak-kotak */
section span:hover {
	background: rgb(0, 8, 255); /* Berubah warna saat dihover */
	transition: 0s;
}

/* Container sign in */
section .signin {
	position: absolute;
	width: 400px;
	background: #222;  
	z-index: 1000;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px;
	border-radius: 4px;
	box-shadow: 0 15px 35px rgba(0,0,0,9);
}

/* Styling konten sign in */
section .signin .content {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	gap: 40px;
}

/* Judul sign in */
section .signin .content h2 {
	font-size: 2em;
	color: rgb(255, 255, 255);
	text-transform: uppercase;
}

/* Styling form */
section .signin .content .form {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 25px;
}

/* Container input */
section .signin .content .form .inputBox {
	position: relative;
	width: 100%;
}

/* Styling input field */
section .signin .content .form .inputBox input {
	position: relative;
	width: 100%;
	background: #333;
	border: none;
	outline: none;
	padding: 25px 10px 7.5px;
	border-radius: 4px;
	color: #fff;
	font-weight: 500;
	font-size: 1em;
}

/* Label/placeholder input */
section .signin .content .form .inputBox i {
	position: absolute;
	left: 0;
	padding: 15px 10px;
	font-style: normal;
	color: #aaa;
	transition: 0.5s;
	pointer-events: none;
}

/* Efek animasi label saat input difokus atau terisi */
.signin .content .form .inputBox input:focus ~ i,
.signin .content .form .inputBox input:valid ~ i {
	transform: translateY(-7.5px);
	font-size: 0.8em;
	color: #fff;
}

/* Styling link di bawah form */
.signin .content .form .links {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: space-between;
}

.signin .content .form .links a {
	color: #fff;
	text-decoration: none;
}

.signin .content .form .links a:nth-child(2) {
	color: rgb(0, 8, 255);
	font-weight: 600;
}

/* Styling tombol submit */
.signin .content .form .inputBox input[type="submit"] {
	padding: 10px;
	background: rgb(0, 8, 255);
	color: #ffffff;
	font-weight: 600;
	font-size: 1.35em;
	letter-spacing: 0.05em;
	cursor: pointer;
}

/* Efek aktif saat tombol ditekan */
input[type="submit"]:active {
	opacity: 0.6;
}

/* Media query untuk responsivitas */
@media (max-width: 900px) {
	section span {
		width: calc(10vw - 2px); /* Ukuran kotak lebih kecil */
		height: calc(10vw - 2px);
	}
}

@media (max-width: 600px) {
	section span {
		width: calc(20vw - 2px); /* Ukuran kotak paling kecil untuk layar sempit */
		height: calc(20vw - 2px);
	}
}