html Copy code
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ConnectCable - Login & Registrierung</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(135deg, #1a1a2e, #16213e);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
position: relative;
overflow: hidden;
}
.background-animation {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
opacity: 0.15;
}
.cable-line {
position: absolute;
height: 2px;
background: #ff6b01;
animation: moveLine 15s linear infinite;
box-shadow: 0 0 10px rgba(255, 107, 1, 0.7);
}
@keyframes moveLine {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(100vw);
}
}
.container {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border-radius: 20px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
overflow: hidden;
width: 90%;
max-width: 420px;
z-index: 1;
position: relative;
padding: 30px;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.logo {
text-align: center;
margin-bottom: 30px;
}
.logo img {
height: 60px;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
}
.tabs {
display: flex;
margin-bottom: 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.tab {
padding: 10px 0;
width: 50%;
text-align: center;
color: #fff;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
}
.tab.active {
color: #ff6b01;
}
.tab.active::after {
content: '';
position: absolute;
bottom: -1px;
left: 0;
width: 100%;
height: 3px;
background: #ff6b01;
border-radius: 3px 3px 0 0;
}
.form-container {
position: relative;
height: 300px;
}
form {
position: absolute;
top: 0;
left: 0;
width: 100%;
opacity: 0;
transform: translateX(50px);
transition: all 0.4s ease;
pointer-events: none;
}
form.active {
opacity: 1;
transform: translateX(0);
pointer-events: all;
}
.input-group {
margin-bottom: 20px;
position: relative;
}
.input-group input {
width: 100%;
padding: 12px 15px;
background: rgba(255, 255, 255, 0.07);
border: none;
border-radius: 8px;
color: #fff;
outline: none;
font-size: 16px;
transition: all 0.3s;
}
.input-group input::placeholder {
color: rgba(255, 255, 255, 0.5);
}
.input-group input:focus {
background: rgba(255, 255, 255, 0.1);
box-shadow: 0 0 0 2px rgba(255, 107, 1, 0.5);
}
.button {
width: 100%;
padding: 12px;
background: #ff6b01;
color: #fff;
border: none;
border-radius: 8px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
margin-top: 10px;
position: relative;
overflow: hidden;
}
.button:hover {
background: #ff8534;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(255, 107, 1, 0.4);
}
.button:active {
transform: translateY(0);
}
.button::after {
content: '';
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: -100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
animation: btnShine 3s infinite;
}
@keyframes btnShine {
0% {
left: -100%;
}
20% {
left: 100%;
}
100% {
left: 100%;
}
}
.footer {
text-align: center;
margin-top: 30px;
color: rgba(255, 255, 255, 0.5);
font-size: 14px;
}
.cable-icon {
font-size: 24px;
margin-right: 10px;
color: #ff6b01;
}
@media (max-width: 480px) {
.container {
width: 95%;
padding: 20px;
}
}
</style>
</head>
<body>
<div class="background-animation"></div>
<div class="container">
<div class="logo">
<div style="font-size: 28px; font-weight: bold; color: white;">
<span class="cable-icon">📡</span>ConnectCable
</div>
</div>
<div class="tabs">
<div class="tab active" id="login-tab">Login</div>
<div class="tab" id="register-tab">Registrieren</div>
</div>
<div class="form-container">
<form id="login-form" class="active">
<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" class="button">Anmelden</button>
<div style="margin-top: 15px; text-align: center;">
<a href="#" style="color: #ff6b01; text-decoration: none; font-size: 14px;">Passwort vergessen?</a>
</div>
</form>
<form id="register-form">
<div class="input-group">
<input type="email" placeholder="E-Mail" required>
</div>
<div class="input-group">
<input type="text" placeholder="Benutzername" required>
</div>
<div class="input-group">
<input type="password" placeholder="Passwort" required>
</div>
<div class="input-group">
<input type="password" placeholder="Passwort bestätigen" required>
</div>
<button type="submit" class="button">Registrieren</button>
</form>
</div>
<div class="footer">
Ihr vertrauenswürdiger Partner für Hochgeschwindigkeits-Internetverbindungen
</div>
</div>
<script>
// Hintergrundanimation erstellen
function createCableLines() {
const background = document.querySelector('.background-animation');
for (let i = 0; i < 15; i++) {
const line = document.createElement('div');
line.classList.add('cable-line');
line.style.top = `${Math.random() * 100}%`;
line.style.width = `${Math.random() * 150 + 50}px`;
line.style.animationDuration = `${Math.random() * 10 + 5}s`;
line.style.animationDelay = `${Math.random() * 5}s`;
background.appendChild(line);
}
}
// Tabs-Funktionalität
function setupTabs() {
const loginTab = document.getElementById('login-tab');
const registerTab = document.getElementById('register-tab');
const loginForm = document.getElementById('login-form');
const registerForm = document.getElementById('register-form');
loginTab.addEventListener('click', () => {
loginTab.classList.add('active');
registerTab.classList.remove('active');
loginForm.classList.add('active');
registerForm.classList.remove('active');
});
registerTab.addEventListener('click', () => {
registerTab.classList.add('active');
loginTab.classList.remove('active');
registerForm.classList.add('active');
loginForm.classList.remove('active');
});
}
// Seite initialisieren
window.addEventListener('load', () => {
createCableLines();
setupTabs();
});
</script>
</body>
</html>