/* Maak de body van de login-pagina een flex-container */
body.login {
    position: relative;
    display: flex;
    min-height: 100vh;
    margin: 0;
    font-size: 14px;
    background-color: #ffffff;
}

/* Stijl voor het loginformulier aan de linkerkant */
body.login #login {
    width: 30%;
    background-color: #ffffff;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Verberg het standaard login-logo en vervang het door een aangepast logo */
body.login h1 a {
    background-image: url('../assets/images/logo_color.png') !important;
    width: 336px !important;
    height: 31px !important;
    background-size: contain !important;
    margin: 0;
}

/* Verwijder rand en schaduw van het loginformulier */
body.login #loginform {
    border: none !important;
    box-shadow: none !important;
}

/* Maak navigatielinks inline */
body.login #nav,
body.login #backtoblog {
    display: inline-block;
}

/* Stijl voor de inlogknop */
.wp-core-ui #login .button-primary, body.wp-core-ui #login .two-factor-email-resend .button {
    background: #ed800f;
    border-color: #ef800d;
    width: 100%;
    margin-top: 10px;
}
/* Stijl voor de inlogknop */
.wp-core-ui #login .button-primary:hover {
    background: #d2710c;
    border-color: #d2710c;
    transition: all 0.1s ease-out;
}

/* Stijl voor de achtergrondafbeelding aan de rechterkant */
body.login::before {
    content: '';
    position: absolute;
    left: 30%;
    top: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/achtergrond.webp') no-repeat center center;
    background-size: cover;
}

/* Donkere overlay over de achtergrondafbeelding */
body.login::after {
    content: '';
    position: absolute;
    left: 30%;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* 50% opacity */
}

.language-switcher {
    display: none;
}

body.login #login-message {
    margin: 26px 24px;
}

.login .message, .login .notice, .login .success {
    border-left: 4px solid #ef800d;
    margin-left: 0;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
    word-wrap: break-word;
}

/* Responsive aanpassingen */
@media screen and (max-width: 1053px) { /* 768px */
    body.login h1 a {
        background-image: url('../assets/images/logo_white.png') !important;
        width: 350px !important;
        height: 31px !important;
        background-size: contain !important;
        margin: 0 auto 20px;
    }
    body.login #loginform{
        border-radius: 10px;
        background-color: #ffffff;
    }
    body.login #backtoblog a, .login #nav a {
        color: #ffffff;
    }
    body.login #backtoblog a:hover, .login #nav a:hover {
        color: #1d1d1d;
    }
    body.login #login {
        width: 100%;
        background-color: #ef800d;
        display: block;
        padding: 20px;
    }
    body.login::before,
    body.login::after {
        display: none;
    }
    body.login::after {
        top: 0;
        bottom: auto;
    }
    body.login::before,
    body.login::after {
        order: 1;
    }
    body.login::after {
        content: '';
        position: absolute;
        background-color: rgba(0, 0, 0, 0.5); /* 50% opacity */
        height: 100vh;
        width: 100%;
    }
}

.login form .input, .login input[type=checkbox] {
    border-radius: 0;
}

.login form .input, .login input[type=submit] {
    border-radius: 0;
}

.login form .input, .login input[type=text] {
    border-radius: 0;
    background-color: #F1F1F1;
    border: none;
    font-size: 16px;
    padding: 10px 15px 10px 15px;
    transition: all 0.1s ease-out;
}

/*body.login #backtoblog a:hover, .login #nav a:hover {
    color: #ef800d;
}*/

input[type="text"]:focus,
input[type="password"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
select:focus,
textarea:focus {
    border-color: #ef800d;
    box-shadow: 0 0 0 1px #ef800d;
    background-color: white;
}

/* Forms */
input[type=checkbox]:checked::before {
    content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23ef800d%27%2F%3E%3C%2Fsvg%3E");
}

input[type=radio]:checked::before {
    background: #ef800d;
}

.login .button.wp-hide-pw .dashicons {
    color: #ef800d;
}
.login .button.wp-hide-pw:focus {
    border-color: #ef800d;
    box-shadow: 0 0 0 1px #ef800d;
}

/*Lost password*/

.login form {
    margin-top: 0;
    margin-left: 0;
    padding: 26px 24px;
    font-weight: 400;
    overflow: hidden;
    background: #fff;
    border: none !important;
    box-shadow: none !important;

}
