Modern Login Code
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modern Login</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(45deg, #0f0c29, #302b63, #24243e);
background-size: 400% 400%;
animation: gradientBG 15s ease infinite;
overflow: hidden;
}
@keyframes gradientBG {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.login-card {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(15px);
border: 1px solid rgba(255, 255, 255, 0.2);
padding: 40px;
border-radius: 20px;
width: 350px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
transform: translateY(20px);
opacity: 0;
animation: fadeIn 0.8s ease forwards;
}
@keyframes fadeIn {
to { opacity: 1; transform: translateY(0); }
}
h2 {
color: white;
text-align: center;
margin-bottom: 30px;
letter-spacing: 2px;
}
.input-group {
margin-bottom: 20px;
}
input {
width: 100%;
padding: 12px;
background: rgba(255, 255, 255, 0.05);
border: none;
border-bottom: 2px solid rgba(255, 255, 255, 0.2);
color: white;
outline: none;
transition: 0.3s;
}
input:focus {
border-bottom: 2px solid #00d2ff;
background: rgba(255, 255, 255, 0.1);
}
button {
width: 100%;
padding: 12px;
margin-top: 20px;
border: none;
border-radius: 25px;
background: linear-gradient(90deg, #00d2ff, #3a7bd5);
color: white;
font-weight: bold;
cursor: pointer;
transition: 0.3s;
}
button:hover {
transform: scale(1.03);
box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}
.links {
margin-top: 15px;
text-align: center;
}
.links a {
color: rgba(255, 255, 255, 0.6);
text-decoration: none;
font-size: 0.8em;
}
.links a:hover {
color: white;
}
</style>
</head>
<body>
<div class="login-card">
<h2>LOGIN</h2>
<form>
<div class="input-group">
<input type="text" placeholder="Benutzername" required>
</div>
<div class="input-group">
<input type="password" placeholder="Passwort" required>
</div>
<button type="submit">Einloggen</button>
</form>
<div class="links">
<a href="#">Passwort vergessen?</a>
</div>
</div>
</body>
</html>

