:root {
    --primary: #1a237e;
    --primary-dark: #0d1242;
    --accent: #ffa000;
    --bg-soft: #f8fafc;
    --glass: rgba(255, 255, 255, 0.85);
    --text-main: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background: var(--bg-soft);
    background-image: radial-gradient(at 0% 0%, rgba(26, 35, 126, 0.05) 0px, transparent 50%), 
                      radial-gradient(at 100% 100%, rgba(255, 160, 0, 0.05) 0px, transparent 50%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* --- WATERMARK GLOBAL SIMAK-KIP --- */
body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url('/absensi_sederhana/simak.jpg'); /* Jalur absolut aman dari sub-folder */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 350px;
    opacity: 0.04; /* Tipis samar agar form login tetap kontras */
    width: 100%;
    height: 100%;
    z-index: -9999;
    pointer-events: none;
}

/* --- BACKGROUND SHAPES --- */
.shape {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.1;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--primary);
    border-radius: 50%;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: var(--accent);
    border-radius: 50%;
}

/* --- FLOATING BUTTON --- */
.btn-floating-home {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--primary);
    color: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(26, 35, 126, 0.2);
    text-decoration: none;
    z-index: 100;
    transition: all 0.3s ease;
}

.btn-floating-home:hover {
    transform: translateY(-5px);
    background: var(--primary-dark);
}

/* --- LOGIN CARD CONTAINER --- */
.login-container {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 50px 40px;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: slideUp 0.7s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-kpu {
    width: 90px;
    margin-bottom: 25px;
}

h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.sub-title {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- FORM ELEMENTS --- */
.form-group {
    text-align: left;
    margin-bottom: 22px;
}

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

input {
    width: 100%;
    padding: 16px 16px 16px 45px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 16px;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.05);
}

/* --- BUTTONS --- */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
}

.btn-register {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border: 2px solid var(--primary);
    border-radius: 16px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    margin-top: 15px;
    transition: 0.3s;
    text-align: center;
}

.btn-register:hover {
    background: var(--primary);
    color: white;
}

#installBtn {
    display: none;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 16px;
    background: #16a34a;
    color: white;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s;
}

#installBtn:hover {
    opacity: 0.9;
}

.footer-text {
    margin-top: 30px;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 40px 25px;
    }
    .btn-floating-home {
        display: none;
    }
}
