* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    font-family: Arial, sans-serif;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.login-form {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    width: 300px;
}

.login-form h2 {
    margin-bottom: 20px;
    color: #333;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.login-form button:hover {
    background: #45a049;
}

.logo {
    position: fixed;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    mix-blend-mode: screen;
}

.logo img {
    height: 180px;
    width: auto;
    display: block;
    margin-top: -10px;
    filter: brightness(1.2) contrast(1.1);
    animation: pulse 4s ease-in-out infinite;
}

.code-text {
    color: #fff;
    font-size: 180px;
    font-weight: 900;
    text-shadow: 
        0 0 20px rgba(255,255,255,0.5),
        0 0 40px rgba(120,255,120,0.3),
        0 0 60px rgba(120,255,120,0.2);
    font-family: Arial, sans-serif;
    letter-spacing: 5px;
    line-height: 1;
    margin-top: -10px;
    height: 180px;
    display: flex;
    align-items: center;
    mix-blend-mode: screen;
    animation: textGlow 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        filter: brightness(1.2) contrast(1.1);
    }
    50% {
        filter: brightness(1.4) contrast(1.2);
    }
}

@keyframes textGlow {
    0%, 100% {
        opacity: 0.9;
        text-shadow: 
            0 0 20px rgba(255,255,255,0.5),
            0 0 40px rgba(120,255,120,0.3),
            0 0 60px rgba(120,255,120,0.2);
    }
    50% {
        opacity: 1;
        text-shadow: 
            0 0 30px rgba(255,255,255,0.6),
            0 0 60px rgba(120,255,120,0.4),
            0 0 90px rgba(120,255,120,0.3);
    }
}

/* Responsive Breakpoints */
@media screen and (max-height: 800px), screen and (max-width: 1200px) {
    /* Ketika tinggi layar < 800px atau lebar < 1200px, form pindah ke tengah */
    .logo {
        left: 30px;
    }

    .login-form {
        right: 50%;
        transform: translate(50%, -50%);
    }
}

/* Tablet & Mobile */
@media screen and (max-width: 768px) {
    .logo {
        position: fixed;
        top: 5%;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 10px;
    }

    .logo img {
        height: 100px;
        margin-top: 0;
    }

    .code-text {
        font-size: 100px;
        height: 100px;
        margin-top: 0;
    }

    .login-form {
        position: fixed;
        top: auto;
        bottom: 5%;
        right: 50%;
        transform: translateX(50%);
        width: 90%;
        max-width: 350px;
    }
}

/* Smaller Mobile Devices */
@media screen and (max-width: 480px) {
    .logo {
        top: 5%;
    }

    .logo img {
        height: 60px;
    }

    .code-text {
        font-size: 60px;
        height: 60px;
        letter-spacing: 3px;
    }

    .login-form {
        padding: 20px;
        bottom: 5%;
    }
}

/* Landscape Mode Mobile */
@media screen and (max-height: 600px) {
    .logo {
        top: 10px;
    }

    .login-form {
        bottom: 10px;
        padding: 15px;
    }

    .login-form h2 {
        margin-bottom: 10px;
    }

    .login-form input {
        margin: 5px 0;
    }
}

/* Sangat kecil */
@media screen and (max-width: 360px) {
    .logo img {
        height: 50px;
    }

    .code-text {
        font-size: 50px;
        height: 50px;
        letter-spacing: 2px;
    }
}