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

body {
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    background-color: #050505;
    color: white;
    /* Nutzt die volle Bildschirmhöhe */
    height: 100svh;
    margin: 0;
    
    /* Flexbox für perfekte Zentrierung */
    display: flex;
    align-items: center;    /* Vertikal mittig */
    justify-content: center; /* Horizontal mittig */
    overflow: hidden;
    touch-action: auto;
}

.content-container {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%; /* Verhindert Shrinking */
    max-width: 600px;
    padding: 2rem;
}

h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #acacac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.btn {
    background: linear-gradient(90deg, #ff3a82, #5233ff);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(255, 58, 130, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 58, 130, 0.4);
}

.gradient-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.sphere-1 {
    width: 40vw;
    height: 40vw;
    background: linear-gradient(40deg, rgba(255, 0, 128, 0.8), rgba(255, 102, 0, 0.4));
    bottom: -10%;
    left: -10%;
    animation: float-1 15s ease-in-out infinite alternate;
}

.sphere-2 {
    width: 45vw;
    height: 45vw;
    background: linear-gradient(240deg, rgba(72, 0, 255, 0.8), rgba(0, 183, 255, 0.4));
    top: -20%;
    right: -10%;
    animation: float-2 18s ease-in-out infinite alternate;
}

.sphere-3 {
    width: 30vw;
    height: 30vw;
    background: linear-gradient(120deg, rgba(133, 89, 255, 0.5), rgba(98, 216, 249, 0.3));
    bottom: 60%;
    left: 20%;
    animation: float-3 20s ease-in-out infinite alternate;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0.05;
    pointer-events: none;

    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.45' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    
    background-size: 250px 250px;
    background-repeat: repeat;
}

@keyframes float-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10%, 10%) scale(1.1);
    }
}

@keyframes float-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-10%, -5%) scale(1.15);
    }
}

@keyframes float-3 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    100% {
        transform: translate(-5%, 10%) scale(1.05);
        opacity: 0.6;
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    z-index: 2;
}

.glow {
    position: absolute;
    width: 40vw;
    height: 40vh;
    background: radial-gradient(circle, rgba(72, 0, 255, 0.15), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: pulse 8s infinite alternate;
    filter: blur(30px);
}

@keyframes pulse {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}











#expand-login {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 3.75rem;
    height: 3.75rem;
    cursor: pointer;
    z-index: 1100; /* Höher als das Formular */
    
    /* Glassmorphism Style */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Feine Lichtkante */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Weicher Schatten statt hartem Schwarz */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#expand-login:hover {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

#expand-login svg {
    width: 1.8rem;
    height: 1.8rem;
    /* Nutzt den Gradienten-Look deiner Buttons für das Icon */
    fill: url(#iconGradient); /* Falls du einen SVG Gradienten nutzt */
    /* Alternative: Einfaches Weiß für maximalen Kontrast auf Glas */
    fill: white; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

/* Kleiner Effekt: Icon drehen, wenn aktiv */
#login-form.visible ~ #expand-login svg {
    transform: rotate(90deg);
}



#login-form {
    position: fixed;
    bottom: 6.25rem;
    right: 1.25rem;
    /* Glas-Effekt: Transparentes Weiß mit starkem Blur */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    padding: 2rem;
    border-radius: 24px;
    /* Subtiler Rand wie eine Lichtkante */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    max-height: 80vh;
    z-index: 1001;
    width: 22rem;
    max-width: 90vw;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Standardmäßig unsichtbar wie in deinem Script */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

#login-form.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Titel im Gradient-Look der Hauptseite */
#login-form h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #acacac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
}

#login-form p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Input Felder */
#login-form .form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#login-form .form-control:focus {
    outline: none;
    border-color: #ff3a82; /* Pinker Fokus passend zum Button */
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 58, 130, 0.2);
}

/* Checkbox Bereich */
#login-form .form-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
    align-items: center;
    margin-bottom: 1.5rem;
}

#login-form .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    accent-color: #ff3a82; /* Moderner Weg zum Einfärben */
}

#login-form .form-check-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

/* Login Button passend zum Haupt-Button */
#login-form .btn-primary {
    background: linear-gradient(90deg, #ff3a82, #5233ff);
    border: none;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 58, 130, 0.3);
    margin-top: 0.5rem;
}

#login-form .btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 58, 130, 0.5);
}

/* Link Styling */
#login-form a {
    color: #ff3a82;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

#login-form a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Mobile Anpassungen (Smartphones) */
@media (max-width: 768px) {
    
    /* Hintergrund-Elemente verkleinern, um Performance zu sparen */
    .sphere-1, .sphere-2, .sphere-3 {
        width: 60vw;
        height: 60vw;
        filter: blur(40px);
    }

    /* Typografie-Korrekturen */
    h1 {
        font-size: 3rem; /* Kleiner auf dem Handy */
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    p {
        font-size: 1rem;
        padding: 0 10px;
        margin-bottom: 1.5rem;
    }

    .content-container {
        padding: 1.5rem;
        max-width: 100%;
    }

    /* Login-Formular für Mobile optimieren */
    #login-form {
        right: 5%;
        left: 5%; /* Zentriert das Formular horizontal */
        width: 90%;
        bottom: 5.5rem;
        padding: 1.5rem;
        border-radius: 20px;
    }

    #login-form h1 {
        font-size: 1.5rem;
    }

    /* Den Button im Formular etwas größer für die Daumen-Bedienung */
    #login-form .btn-primary {
        padding: 1rem;
        font-size: 1rem;
    }

    /* Das Icon zum Öffnen etwas kleiner und griffiger */
    #expand-login {
        width: 3.2rem;
        height: 3.2rem;
        bottom: 1rem;
        right: 1rem;
    }

    /* Scrollen erlauben, falls der Inhalt höher als der Screen ist */
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
        align-items: flex-start; /* Startet oben statt mittig */
        padding-top: 15vh;
    }
}

/* Speziell für sehr kleine Displays (z.B. iPhone SE) */
@media (max-width: 380px) {
    h1 {
        font-size: 2.5rem;
    }
    
    #login-form {
        padding: 1.2rem;
    }
}