137 lines
2.3 KiB
CSS
137 lines
2.3 KiB
CSS
/* Animasi muncul */
|
|
@keyframes fadeSlideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(40px); /* mulai agak ke bawah */
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0); /* kembali ke posisi normal */
|
|
}
|
|
}
|
|
|
|
/* Terapkan ke card login */
|
|
.login-card {
|
|
background: #fff;
|
|
padding: 35px;
|
|
border-radius: 14px;
|
|
width: 100%;
|
|
max-width: 580px;
|
|
box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
|
|
text-align: center;
|
|
|
|
/* efek animasi */
|
|
animation: fadeSlideIn 0.8s ease-out;
|
|
}
|
|
|
|
/* Background dengan gambar */
|
|
body {
|
|
position: relative;
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100vh;
|
|
background: url("../img/hero.jpg") no-repeat center center fixed;
|
|
background-size: cover;
|
|
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
|
}
|
|
|
|
/* Overlay transparan di atas gambar */
|
|
body::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.4);
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Logo di login card */
|
|
.login-logo {
|
|
width: 180px; /* lebih proporsional */
|
|
height: auto;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
/* Divider setelah logo */
|
|
.login-divider {
|
|
width: 80%;
|
|
margin: 15px auto 25px auto;
|
|
border: none;
|
|
border-top: 2px solid #007bff;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Container login */
|
|
.login-container {
|
|
position: relative;
|
|
z-index: 2;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
padding: 15px;
|
|
}
|
|
|
|
/* Kotak login */
|
|
.login-card {
|
|
background: #fff;
|
|
padding: 35px 30px;
|
|
border-radius: 14px;
|
|
width: 100%;
|
|
max-width: 420px;
|
|
box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
|
|
text-align: center;
|
|
}
|
|
|
|
/* Judul */
|
|
.login-card h2 {
|
|
font-size: 22px;
|
|
font-weight: 600;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.login-card p {
|
|
font-size: 14px;
|
|
color: #555;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
/* Input custom */
|
|
.custom-input {
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
font-size: 15px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
/* Toggle password icon */
|
|
.toggle-password {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 15px;
|
|
transform: translateY(-120%);
|
|
cursor: pointer;
|
|
color: #6c757d;
|
|
font-size: 18px;
|
|
}
|
|
.toggle-password:hover {
|
|
color: #0d6efd;
|
|
}
|
|
|
|
/* Tombol utama */
|
|
.btn-primary {
|
|
width: 100%;
|
|
padding: 12px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
border-radius: 8px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
/* Link kecil */
|
|
.login-card a {
|
|
font-size: 13px;
|
|
}
|