:root {
    --max-orange: #FB5E00;
    --max-orange-hover: #E05400;
    --max-ebony: #141932;
    --max-grey: #6B6B6B;
    --max-border: #D5D8E0;
}

/* De achtergrondfoto wordt via wp_add_inline_style() als extra laag toegevoegd. */
body.login {
    font-family: "Inter", "Avenir Next", "Avenir", -apple-system, "Segoe UI", sans-serif;
    color: var(--max-ebony);
    background-color: #f3f4f6;
    background-image: linear-gradient(rgba(20, 25, 50, .55), rgba(20, 25, 50, .55));
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

body.login #login {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0;
    padding: 56px 48px 48px;
    box-sizing: border-box;
    background: #fff;
    border: 0;
    border-radius: 8px;
    box-shadow:
        0 1px 2px rgba(20, 25, 50, .08),
        0 24px 60px rgba(20, 25, 50, .35);
    overflow: hidden;
    animation: max-card-in .3s ease-in-out both;
}

@keyframes max-card-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

body.login #login h1 {
    margin: 0 0 40px;
    padding: 0;
}

body.login #login h1 a {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 110px;
    margin: 0;
    padding: 0;
}

body.login #login form {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.login label {
    font-size: 14px;
    font-weight: 600;
    color: var(--max-ebony);
    margin-bottom: 6px;
}

.login form .input,
.login input[type="text"],
.login input[type="password"] {
    font-size: 16px;
    min-height: 46px;
    padding: 0 14px;
    margin: 0 0 18px;
    border: 1px solid var(--max-border);
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
    transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus {
    border-color: var(--max-orange);
    box-shadow: 0 0 0 3px rgba(251, 94, 0, .2);
    outline: none;
}

.login .button.wp-hide-pw {
    top: 0;
    height: 46px;
    width: 46px;
    color: var(--max-ebony);
}

.login .button.wp-hide-pw:focus {
    border-color: var(--max-orange);
    box-shadow: 0 0 0 3px rgba(251, 94, 0, .2);
}

.login .lostpassword-inline {
    margin: -6px 0 18px;
    font-size: 14px;
}

.login .lostpassword-inline a,
.login #nav a,
.login #backtoblog a {
    color: var(--max-ebony);
    text-decoration: underline;
    text-decoration-color: var(--max-orange);
    text-underline-offset: 3px;
}

.login .lostpassword-inline a:hover,
.login .lostpassword-inline a:focus,
.login #nav a:hover,
.login #nav a:focus,
.login #backtoblog a:hover,
.login #backtoblog a:focus {
    color: var(--max-orange-hover);
}

.login .forgetmenot {
    float: none;
    margin-bottom: 20px;
}

.login .forgetmenot label {
    font-weight: 400;
}

.login input[type="checkbox"]:focus {
    border-color: var(--max-orange);
    box-shadow: 0 0 0 3px rgba(251, 94, 0, .2);
}

.login .submit { clear: both; }

.login .button-primary,
.login #wp-submit {
    float: none;
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    font-weight: 600;
    background: var(--max-orange);
    border: 0;
    border-radius: 6px;
    color: #fff;
    text-shadow: none;
    box-shadow: none;
    transition: background-color .2s ease-in-out;
}

.login .button-primary:hover,
.login #wp-submit:hover {
    background: var(--max-orange-hover);
}

.login .button-primary:focus,
.login #wp-submit:focus {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--max-orange);
    outline: none;
}

.login #login_error,
.login .message,
.login .notice,
.login .success {
    margin: 0 0 20px;
    border-radius: 6px;
    border-left: 4px solid var(--max-orange);
    box-shadow: none;
    background: #FFF4EC;
    font-size: 14px;
}

.login #nav,
.login #backtoblog {
    margin: 16px 0 0;
    padding: 0;
    font-size: 14px;
    text-align: center;
}

/* Alleen op het inlogscherm zonder registratie: daar staat "Wachtwoord vergeten" al in het formulier. */
body.max-hide-nav #nav {
    display: none;
}

.login-credits {
    margin-top: 32px;
    padding: 0 8px;
    box-sizing: border-box;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.login-credits p {
    margin: 0;
}

@media (max-width: 782px) {
    body.login { background-attachment: scroll; }
    body.login #login { padding: 40px 28px 32px; }
    body.login #login h1 { margin-bottom: 32px; }
    body.login #login h1 a { height: 88px; }
    .login-credits { font-size: 14px; margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    body.login #login { animation: none; }
}
