/* Algemene layout */
body.login {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    overflow: hidden;
    position: relative;
}

/* Achtergrondvideo */
body.login::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 0, 0, 0.5); /* Lichte rode gloed */
    z-index: -1;
    pointer-events: none;
}

/* Video styling */
body.login video.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

body.login::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 0, 0, 0.5); /* Lichte rode gloed */
    z-index: -1;
    pointer-events: none;
}

/* Video styling */
body.login video.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Voeg video toe via plugin */


/* Login-paneel */
body.login #login {
    width: 40vw;
    height: 100vh;
    background: white;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    padding: 0;
    margin: 0;
    position: relative;
}

/* Logo */
body.login h1 {
    margin: 0 0 40px 0;
    width: 100%;
    text-align: center;
}
body.login h1 a {
    background-image: url('logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 180px;
    height: 80px;
    display: block;
    margin: 0 auto;
    text-indent: -9999px;
    overflow: hidden;
}

/* Formulier */
body.login form {
    width: 100%;
    max-width: 360px;
    padding: 0 20px;
    margin: 0;
    box-shadow: none !important;
    background: none !important;
    border: none !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Inputvelden */
body.login input[type="text"],
body.login input[type="password"] {
    font-size: 18px;
    padding: 14px 12px;
    width: 100%;
    margin-bottom: 20px;
    border: none;
    border-bottom: 2px solid #ccc;
    background-color: transparent;
    border-radius: 0;
    outline: none;
    box-shadow: none !important;
    transition: border-bottom-color 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

/* Focus styling */
body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
    border-bottom: 2px solid #8B0000;
    transform: scale(1.02);
}

/* Container zodat input + oogje goed gepositioneerd zijn */
body.login .user-pass-wrap {
    position: relative;
    width: 350px;
}

body.login input[type="password"] {
    width: 100%;
    padding-right: 40px; /* ruimte voor het oogje */
}

body.login .wp-hide-pw {
    position: absolute;
    top: 12px; /* Aangepaste waarde om het beter uit te lijnen */
    right: 10px;
    cursor: pointer;
    color: #8B0000;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    outline: none;
    box-shadow: none !important;
    line-height: 1;
    height: 18px; /* Match de hoogte van het inputveld */
}

body.login input:-webkit-autofill {
    background-color: transparent !important;
    box-shadow: 0 0 0px 1000px transparent inset !important;
    -webkit-text-fill-color: #000 !important; /* Kleur van de tekst */
}


/* Zorg dat er geen border of blauwe focusring verschijnt */
body.login .wp-hide-pw:focus {
    outline: none;
    box-shadow: none;
    color: #a30000; /* Wordt rood bij klik */
}

body.login input[type="submit"] {
    background: linear-gradient(45deg, #8B0000, #a30000);
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 14px 40px;
    margin-top: 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background 0.5s ease, transform 0.2s ease;
}

body.login input[type="submit"]:hover {
    background: linear-gradient(45deg, #a30000, #8B0000);
}


/* Checkbox naast label */
body.login .forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

/* Links onderaan verbergen */
body.login #backtoblog,
body.login #nav,
body.login .language-switcher {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    body.login {
        flex-direction: column;
        align-items: center;
        overflow: auto;
    }

    body.login #login {
        width: 100vw;
        height: auto;
        clip-path: none;
        box-shadow: none;
        padding: 40px 10px;
    }

    body.login form {
        width: 100%;
        max-width: 300px; /* smaller dan voorheen */
        padding: 0;
    }

    body.login input[type="submit"] {
        width: 100%;
    }

    body.login .wp-hide-pw {
        right: 10px;
    }
}
