html, body.login { height: 100%; margin: 0; padding: 0; overflow: hidden; }

/* Hintergrund – lokales CSS-Gradient, keine externen Requests */
body.login {
    background-color: #1a202c;
    background-image:
        linear-gradient(135deg, rgba(26, 32, 44, 0.92) 0%, rgba(43, 108, 176, 0.75) 100%),
        radial-gradient(circle at 20% 80%, rgba(43, 108, 176, 0.35) 0%, transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(99, 179, 237, 0.2) 0%, transparent 50%);
    background-size: cover;
    background-position: left center;
}

/* Rechte Spalte */
body.login div#login {
    position: absolute; right: 0; top: 0; width: 50%; height: 100vh;
    background: #fff; padding: 0; margin: 0 !important;
    display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 10;
}

/* Breite begrenzen */
body.login div#login h1, body.login div#login form, body.login div#login #nav, body.login div#login #backtoblog, .login .message {
    width: 100%; max-width: 400px; padding-left: 20px; padding-right: 20px; box-sizing: border-box;
}

/* Logo – lokale SVG-Datei neben dieser CSS-Datei (assets/login-logo.svg) */
body.login div#login h1 a {
    background-image: url('login-logo.svg');
    background-size: contain; background-position: center left; width: 100%; height: 60px; margin-bottom: 20px;
}

/* Formular */
.login form {
    background: #fff; border: none; padding: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: 20px; border-radius: 12px;
}

.login label { font-weight: 600; color: #4a5568; font-size: 13px; text-transform: uppercase; margin-bottom: 5px; display: block; }

.login input[type="text"], .login input[type="password"] {
    background: #f7fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 12px 15px;
    font-size: 16px; color: #2d3748; margin-top: 5px; margin-bottom: 20px; box-shadow: none; width: 100%;
}
.login input[type="text"]:focus, .login input[type="password"]:focus,
.login input[type="text"]:focus-visible, .login input[type="password"]:focus-visible {
    background: #fff; border-color: #2b6cb0; box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.2);
    outline: 2px solid #2b6cb0;
    outline-offset: 2px;
}

/* Checkbox */
.forgetmenot { display: flex !important; align-items: center; margin-bottom: 20px !important; }
.login input[type="checkbox"] {
    width: 20px !important; height: 20px !important; margin: 0 10px 0 0 !important;
    background: #f7fafc; border: 1px solid #e2e8f0; border-radius: 4px;
    appearance: none; -webkit-appearance: none; display: flex; align-items: center; justify-content: center;
}
.login input[type="checkbox"]:checked { background: #2b6cb0; border-color: #2b6cb0; }
.login input[type="checkbox"]:checked::before {
    content: ''; width: 6px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -2px;
}

/* Button */
.wp-core-ui .button-primary {
    background: #2b6cb0; border: none; border-radius: 6px; width: 100%; padding: 12px;
    font-size: 16px; font-weight: 600; text-shadow: none; transition: background 0.2s;
}
.wp-core-ui .button-primary:hover { background: #2c5282; }
.wp-core-ui .button-primary:focus-visible {
    background: #2c5282;
    outline: 2px solid #1a365d;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.35);
}

.login input[type="checkbox"]:focus-visible {
    outline: 2px solid #2b6cb0;
    outline-offset: 2px;
}

.login #nav a:focus-visible, .login #backtoblog a:focus-visible {
    outline: 2px solid #2b6cb0;
    outline-offset: 2px;
    color: #2b6cb0;
}

/* Links */
.login #nav, .login #backtoblog { padding-top: 15px; text-align: left; }
.login #nav a, .login #backtoblog a { color: #a0aec0; font-size: 14px; text-decoration: none; }
.login #nav a:hover { color: #2b6cb0; }

@media screen and (max-width: 900px) {
    body.login { background: #fff; overflow: auto; }
    body.login div#login { width: 100%; position: relative; height: auto; min-height: 100vh; padding: 40px 0; }
    .login form { box-shadow: none; padding: 20px; }
}