@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
    --rotate-x: 0;
    --rotate-y: 0;
    --glare-x: 50%;
    --glare-y: 50%;
}

body {
    background-color: #18334b;
    overflow: hidden;
    position: relative;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: #fff;
}

/* --- Latar Belakang --- */
.bg-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('../assets/bg-fix.png'); /* Pastikan path ini benar */
    background-size: cover;
    background-position: center;
    opacity: .25;
    z-index: -2;
}

.shimmer-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: shimmer-effect 12s linear infinite;
}

@keyframes shimmer-effect {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* --- Kontainer Utama --- */
main.container {
    position: relative;
    z-index: 2;
}

.logo {
    width: 150px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

/* --- Efek 3D --- */
.scene {
    perspective: 1000px;
    width: 100%;
    max-width: 380px;
}

.login-box {
    width: 100%;
    padding: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    transform: rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
    transition: transform 0.1s ease-out;
    position: relative;
    overflow: hidden;
}

/* Efek Kilap/Glare */
.login-box::before {
    content: '';
    position: absolute;
    top: var(--glare-y);
    left: var(--glare-x);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: top 0.1s ease-out, left 0.1s ease-out;
}

/* --- Animasi --- */
.entry-animation {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Form Styling --- */
.form-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    z-index: 2;
}

.form-control {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding-left: 45px;
    height: 50px;
    border-radius: 8px;
}
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.form-control:focus {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
    color: #fff;
}

.btn-masuk {
    background: #ffffff;
    color: #18334b;
    font-weight: 600;
    border: none;
    padding: 12px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-masuk:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}