:root {
    --accent: #00f7ff;
    --pink: #ff007f;
    --yellow: #ffff00;
    --purple: #9d00ff;
    --bg-card: #1a1a1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.login-page {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../assets/unrika.png') no-repeat center center/cover !important;
    background-color: #000 !important;
    overflow: hidden;
    position: relative;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* 1. OVERLAY BACKGROUND */
body.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: -1;
    pointer-events: none;
}

/* 2. WRAPPER (Area Sensor Hover) */
.login-wrapper {
    position: relative;
    z-index: 10; 
    width: 400px; 
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3. LOGIKA ELEMEN */
.entry-stage { 
    position: absolute; 
    z-index: 50; 
    transition: 0.4s ease;
    opacity: 1;
    visibility: visible;
}

.card-stage { 
    position: absolute; 
    z-index: 10; 
    opacity: 0; 
    visibility: hidden; 
    transform: scale(0.9);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Penting: display none akan diatur oleh JavaScript agar tidak menghalangi klik */
}

/* Efek Hover CSS untuk Animasi */
.login-wrapper:hover .entry-stage { 
    opacity: 0; 
    visibility: hidden; 
    transform: scale(0.6);
}

.login-wrapper:hover .card-stage { 
    opacity: 1; 
    visibility: visible; 
    z-index: 100; 
    transform: scale(1);
}

/* 4. ANIMASI BORDER BERPUTAR */
.animated-login-btn::before, .card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(var(--accent), var(--pink), var(--yellow), var(--purple), var(--accent));
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 5. PERAPI BOX */
.animated-login-btn, .card {
    background: #111;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
}

.animated-login-btn::after, .card::after {
    content: ''; 
    position: absolute; 
    inset: 3px; 
    background: var(--bg-card); 
    border-radius: 22px; 
    z-index: 2;
}

.animated-login-btn span, .card-inner { position: relative; z-index: 5; }

.animated-login-btn { 
    width: 220px; 
    height: 70px; 
    color: var(--accent); 
    border: none; 
    cursor: pointer; 
    font-weight: bold; 
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card { 
    width: 380px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
}

.card-inner { padding: 40px 30px; text-align: center; }

.logo-lc { width: 120px; margin-bottom: 25px; filter: drop-shadow(0 0 8px var(--accent)); }

.card-inner h5 { color: var(--accent); font-size: 11px; letter-spacing: 2px; }
.card-inner h2 { color: #fff; font-size: 26px; margin-bottom: 25px; }

/* 6. FORM INPUT */
input { 
    width: 100%; 
    padding: 14px; 
    margin-bottom: 15px; 
    background: rgba(255,255,255,0.05); 
    border: 1px solid #333; 
    border-radius: 12px; 
    color: #fff; 
    outline: none;
}

input:focus { border-color: var(--accent); }

.submit-btn { 
    width: 100%; 
    padding: 14px; 
    background: var(--accent); 
    color: #000; 
    border: none; 
    border-radius: 12px; 
    font-weight: bold; 
    cursor: pointer;
}

.submit-btn:hover { background: #fff; box-shadow: 0 0 20px var(--accent); }

/* 7. FOOTER & LINK */
.footer { 
    display: flex; 
    justify-content: space-between; 
    margin-top: 30px;
    position: relative;
    z-index: 110; 
}

.footer a { 
    color: #888; 
    text-decoration: none; 
    font-size: 13px;
    padding: 5px;
    transition: 0.3s;
}

.footer a:hover { color: var(--accent); }
.signup { color: var(--pink) !important; font-weight: bold; }