:root {
    --primary-red: #E30613;
    --primary-blue: #005BA9;
    --accent-yellow: #FFD700;
}
/* Grundlegende Anpassungen */
body.login {
margin: 0;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    
    /* Verbesserte Hintergrund-Eigenschaften */
    background: url('https://jsg-wilhelmshaven-nord.de/wp-content/themes/fv-jugend/assets/images/jsg_background.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    
    /* Fallback für mobile Geräte */
    @media (max-width: 768px) {
        background-attachment: scroll;
        background-position: center 30%; /* Verschiebt den Fokus nach unten */
    }
    
    /* Anpassung für sehr große Bildschirme (TV) */
    @media (min-width: 1920px) {
        background-position: center 20%;
    }
}

/* Logo-Anpassungen */
.login h1 a {
    background-image: url('https://jsg-wilhelmshaven-nord.de/wp-content/uploads/2025/06/logo.png');
    background-size: contain;
    width: auto;
    height: 120px;
    margin-bottom: 20px;
}

/* Formular-Stil */
.login form {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: none;
    background: rgba(255,255,255,0.95);
}

.login input[type="text"],
.login input[type="password"] {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 12px;
    font-size: 16px;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 1px var(--primary-blue);
}

/* Button-Stil */
.login .button-primary {
    background: var(--primary-red);
    border: none;
    text-shadow: none;
    box-shadow: none;
    border-radius: 30px;
    padding: 8px 24px;
    height: auto;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s;
}

.login .button-primary:hover {
    background: #c40511;
    transform: translateY(-2px);
}

/* Footer-Links */
.login #nav a,
.login #backtoblog a {
    color: white !important;
    text-decoration: none;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: var(--accent-yellow) !important;
    text-decoration: underline;
}

/* Animationen vom Theme übernehmen */
.login form {
    position: relative;
    overflow: hidden;
}

.login form:before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    background: radial-gradient(ellipse at center, 
                rgba(255,255,255,0.15) 0%, 
                transparent 70%);
    animation: light-sweep 12s infinite alternate;
    z-index: 0;
}

.login .button-primary {
    position: relative;
    z-index: 1;
}

/* Erzwinge Interaktivität für das Benutzername-Feld */
#user_login {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    position: relative;
    z-index: 9999;
}

/* Eventuell vorhandenen "falschen" Overlay entfernen */
#user_login::after {
    display: none !important;
}