/* AI Kennisbank — login.css
   Laadt uitsluitend op wp-login.php
   Zie style.css voor de volledige designtokens
*/

body.login {
    background: #F0EFF9 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

body.login #login {
    width: 100% !important;
    max-width: 860px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(60,52,137,0.14);
    display: flex !important;
    min-height: 460px;
}

/* ── Linker visueel paneel ── */
.kb-login-left {
    flex: 0 0 40%;
    background: #3C3489;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.kb-login-left::before {
    content: '';
    position: absolute;
    width: 260px; height: 260px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.1);
    top: -80px; right: -80px;
    pointer-events: none;
}

.kb-login-left::after {
    content: '';
    position: absolute;
    width: 140px; height: 140px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.07);
    bottom: 40px; right: -45px;
    pointer-events: none;
}

.kb-login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.kb-login-logo-icon {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.kb-login-logo-icon svg { width: 18px; height: 18px; }

.kb-login-logo-text {
    font-size: 15px; font-weight: 700; color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kb-login-logo-sub {
    font-size: 11px; color: rgba(255,255,255,0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kb-login-copy {
    position: relative; z-index: 2;
    flex: 1;
    padding: 28px 0 20px;
}

.kb-login-copy h2 {
    font-size: 20px; font-weight: 700; color: #fff;
    line-height: 1.3; margin: 0 0 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kb-login-copy p {
    font-size: 13px; color: rgba(255,255,255,0.6);
    line-height: 1.6; margin: 0 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kb-login-features {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 11px;
}

.kb-login-features li {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: rgba(255,255,255,0.8);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kb-login-features li .icon {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0;
}

.kb-login-tagline {
    font-size: 11px; color: rgba(255,255,255,0.3);
    position: relative; z-index: 2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Rechter formulier-paneel ── */
body.login #login > div:not(.kb-login-left),
body.login #login > form {
    flex: 1;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 40px 40px !important;
    background: #fff;
}

body.login h1 { display: none !important; }

body.login #loginform,
body.login #registerform,
body.login #lostpasswordform {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.kb-form-tag {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    color: #993556; background: #FBEAF0;
    border-radius: 9999px; padding: 4px 14px;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kb-form-title {
    font-size: 22px; font-weight: 800; color: #2C2C2A;
    margin-bottom: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kb-form-sub {
    font-size: 13px; color: #5F5E5A;
    margin-bottom: 24px; line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.login label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #5F5E5A !important;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.login .input,
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #D3D1C7 !important;
    border-radius: 10px !important;
    background: #F8F7FE !important;
    font-size: 14px !important;
    color: #2C2C2A !important;
    box-shadow: none !important;
    transition: border-color .2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.login .input:focus,
body.login input:focus {
    border-color: #7F77DD !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(127,119,221,0.12) !important;
}

body.login .forgetmenot { display: none !important; }

body.login .button-primary,
body.login input[type="submit"] {
    width: 100% !important;
    padding: 11px !important;
    background: #534AB7 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background .2s;
    margin-top: 8px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.login .button-primary:hover,
body.login input[type="submit"]:hover {
    background: #3C3489 !important;
}

body.login #nav,
body.login #backtoblog {
    text-align: center !important;
    margin-top: 14px !important;
    padding: 0 !important;
    font-size: 12px !important;
    color: #5F5E5A;
}

body.login #nav a,
body.login #backtoblog a { color: #534AB7 !important; text-decoration: none; }

body.login #login_error {
    border-left: 4px solid #ED93B1 !important;
    background: #FBEAF0 !important;
    color: #993556 !important;
    padding: 10px 14px !important;
    border-radius: 0 10px 10px 0 !important;
    font-size: 13px !important;
    margin: 0 0 16px !important;
}

body.login .message {
    border-left: 4px solid #5DCAA5 !important;
    background: #E1F5EE !important;
    color: #0F6E56 !important;
    padding: 10px 14px !important;
    border-radius: 0 10px 10px 0 !important;
    font-size: 13px !important;
    margin: 0 0 16px !important;
}

/* ── Mobiel ── */
@media (max-width: 640px) {
    body.login #login {
        flex-direction: column !important;
        border-radius: 14px;
    }
    .kb-login-left { flex: 0 0 auto; padding: 20px; }
    .kb-login-copy, .kb-login-tagline { display: none; }
    body.login #login > div:not(.kb-login-left) { padding: 28px 24px !important; }
}
