```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Animated Login Form</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
font-family: Arial, sans-serif;
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.login-form {
background: rgba(255, 255, 255, 0.8);
padding: 40px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.login-form h2 {
margin: 0 0 20px;
text-align: center;
color: #333;
}
.input-group {
position: relative;
margin-bottom: 20px;
}
.input-group input {
width: 100%;
padding: 10px 0;
font-size: 16px;
color: #333;
border: none;
border-bottom: 1px solid #333;
outline: none;
background: transparent;
}
.input-group label {
position: absolute;
top: 0;
left: 0;
padding: 10px 0;
font-size: 16px;
color: #333;
pointer-events: none;
transition: 0.5s;
}
.input-group input:focus ~ label,
.input-group input:valid ~ label {
top: -20px;
left: 0;
color: #23a6d5;
font-size: 12px;
}
button {
width: 100%;
padding: 10px;
background: #23a6d5;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
}
button:hover {
background: #1c8fb6;
}
</style>
</head>
<body>
<div class="login-form">
<h2>Login</h2>
<form>
<div class="input-group">
<input type="text" required>
<label>Username ๐ค</label>
</div>
<div class="input-group">
<input type="password" required>
<label>Password ๐</label>
</div>
<button type="submit">Login</button>
</form>
</div>
</body>
</html>
```
This HTML file includes:
1. A moving gradient background
2. An animated login form with floating labels
3. Input fields for username and password with emojis
4. A submit button
5. Responsive design
The CSS is included in the <style> tag for simplicity, but for larger projects, it's recommended to use a separate CSS file.