/**
 * Cotive login — split-screen layout. Links een gebrand intro-paneel (foto +
 * overlay + logo + tekst + profiel), rechts het inlogformulier.
 */

body.login.cotive-login {
    --cotive-accent: #d93615;
    background: #faf9f8;
    color: #141414;
    font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
}

/* Rechterhelft voor het formulier (desktop) */
@media (min-width: 783px) {
    body.login.cotive-login {
        margin-left: 50%;
    }
}

/* Intro-paneel (links) */
.cotive-login-aside {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    display: flex;
    background-color: #1e1e1e;
    background-size: cover;
    background-position: center;
}

.cotive-login-aside__overlay {
    position: absolute;
    inset: 0;
    /* Instelbaar via Cotive → Inlogpagina (kleur + sterkte); dit is de fallback. */
    background: var(--cotive-overlay, linear-gradient(160deg, rgba(217, 54, 21, .88) 0%, rgba(20, 20, 20, .82) 100%));
}

.cotive-login-aside__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
    padding: 52px;
    color: #fff;
}

.cotive-login-aside__logo {
    max-width: 160px;
    max-height: 48px;
    width: auto;
    height: auto;
    /* Wit maken zodat elk logo op de donkere overlay zichtbaar is */
    filter: brightness(0) invert(1);
}

/* Instelling "Logo wit maken" uit: het logo in de eigen kleuren. */
body.cotive-login--logo-original .cotive-login-aside__logo {
    filter: none;
}

.cotive-login-aside__contact {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cotive-login-aside__photo {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .55);
}

.cotive-login-aside__bottom {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cotive-login-aside__heading {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: #fff;
}

.cotive-login-aside__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .9);
    max-width: 44ch;
}

.cotive-login-aside__contact-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.cotive-login-aside__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cotive-login-cbtn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease;
}

.cotive-login-cbtn:hover,
.cotive-login-cbtn:focus {
    background: rgba(255, 255, 255, .26);
    color: #fff;
}

.cotive-login-cbtn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

@media (max-width: 782px) {
    .cotive-login-aside {
        display: none;
    }
}

/* Formulier (rechts) */
body.login.cotive-login #login {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 9vh 24px 6vh;
}

/* Standaard WordPress-logo boven het formulier verbergen (branding zit links) */
body.login.cotive-login #login h1 {
    display: none;
}

body.login.cotive-login #loginform,
body.login.cotive-login #registerform,
body.login.cotive-login #lostpasswordform {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 30px 28px;
    box-shadow: 0 10px 30px rgba(20, 20, 20, .06);
}

body.login.cotive-login label {
    color: #141414;
    font-size: 14px;
}

body.login.cotive-login input[type="text"],
body.login.cotive-login input[type="password"],
body.login.cotive-login input[type="email"] {
    border-radius: 10px;
    border: 1px solid #e2e2e2;
    padding: 11px 12px;
    font-size: 15px;
    box-shadow: none;
}

body.login.cotive-login input[type="text"]:focus,
body.login.cotive-login input[type="password"]:focus,
body.login.cotive-login input[type="email"]:focus {
    border-color: var(--cotive-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cotive-accent) 18%, transparent);
    outline: none;
}

body.login.cotive-login .button-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin-top: 4px;
    padding: 11px 16px !important;
    background: var(--cotive-accent) !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 15px;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: filter .15s ease;
}

body.login.cotive-login .button-primary:hover,
body.login.cotive-login .button-primary:focus {
    filter: brightness(.93);
}

body.login.cotive-login #nav,
body.login.cotive-login #backtoblog {
    text-align: center;
    padding: 0 24px;
}

body.login.cotive-login #nav a,
body.login.cotive-login #backtoblog a {
    color: #6b6b6b;
}

body.login.cotive-login #nav a:hover,
body.login.cotive-login #backtoblog a:hover {
    color: var(--cotive-accent);
}

body.login.cotive-login .login .message,
body.login.cotive-login .notice {
    border-radius: 10px;
    border-left-color: var(--cotive-accent);
}

/* Titel boven het formulier — alleen op mobiel, want op desktop staat de
   tekst al in het intro-paneel (voorkomt dubbele "Welkom terug"). */
body.login.cotive-login .cotive-login-formhead {
    display: none;
    margin: 0 0 20px;
    text-align: left;
}

@media (max-width: 782px) {
    body.login.cotive-login .cotive-login-formhead {
        display: block;
    }
}

body.login.cotive-login .cotive-login-formhead h2 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: #141414;
}

body.login.cotive-login .cotive-login-formhead p {
    margin: 0;
    color: #6b6b6b;
    font-size: 14px;
}

/* Credit onderaan ("Website ontwikkeld door Cotive") */
body.login.cotive-login .cotive-login-credit {
    max-width: 380px;
    margin: 18px auto 0;
    padding: 0 24px;
    text-align: center;
    color: #9a9a9a;
    font-size: 12px;
}

body.login.cotive-login .cotive-login-credit a {
    color: var(--cotive-accent);
    font-weight: 600;
    text-decoration: none;
}

/* Voorbeeld-badge (alleen in de preview) */
.cotive-login-preview-badge {
    position: fixed;
    z-index: 10;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #141414;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    font-family: "Instrument Sans", sans-serif;
}
