@font-face {
    font-family: 'MIREX Artifex';
    src: url('ArtifexCF-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
body.login { background: #002F6C; }
body.login #login {
    box-sizing: border-box;
    width: min(100% - 32px, 372px);
    margin: 5vh auto 24px;
    padding: 28px 24px 22px;
    background: #fff;
    border-radius: 8px;
}
body.login #login h1 a {
    background-image: url('Escudo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100px;
    height: 100px;
    margin: 0 auto 8px;
}
body.login .mirex-login-title {
    font-family: 'MIREX Artifex', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: #003870;
    margin: 0 8px 10px;
    overflow-wrap: anywhere;
}
body.login .mirex-login-divider {
    display: block;
    width: 18%;
    border-bottom: 2.6px solid #EF3340;
    margin: 0 auto 20px;
}
body.login #login form { margin-top: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
body.login #login form .input { font-size: 18px; }
body.login #login .button-primary { background: #003870; border-color: #003870; color: #fff; }
body.login #login .button-primary:hover { background: #0072CF; border-color: #0072CF; color: #fff; }
body.login #login .button-primary:focus-visible { outline: 2px solid #0072CF; outline-offset: 3px; }
body.login #login .wp-hide-pw { color: #003870; }
body.login #login #nav, body.login #login #backtoblog { padding: 0; text-align: center; }
body.login #login #nav a, body.login #login #backtoblog a { color: #003870; }
body.login .language-switcher { margin: 0 auto 24px; }
body.login .language-switcher label { color: #fff; }
body.login #login a:focus-visible { outline: 2px solid #0072CF; outline-offset: 3px; }
@media (max-width: 400px) { body.login #login { padding: 24px 16px 18px; } }

/* MIREX 1.0.1: scoped overrides for the existing AIO login designer.
   Keep authentication, message visibility and Wordfence controls untouched. */
html body.login { background: #002F6C !important; }
html body.login #login {
    box-sizing: border-box !important;
    width: min(calc(100% - 32px), 372px) !important;
    max-width: 372px !important;
    margin: 5vh auto 24px !important;
    padding: 28px 24px 22px !important;
    background: #FFFFFF !important;
    border-radius: 8px !important;
}
html body.login #login form {
    box-sizing: border-box !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
html body.login #login form .input:focus {
    border-color: #0072CF !important;
    box-shadow: 0 0 0 1px #0072CF !important;
    outline: 2px solid transparent;
}
html body.login #login .button-primary {
    background: #003870 !important;
    border-color: #003870 !important;
    color: #FFFFFF !important;
}
html body.login #login .button-primary:hover {
    background: #0072CF !important;
    border-color: #0072CF !important;
    color: #FFFFFF !important;
}
html body.login #login .button-primary:focus-visible {
    outline: 2px solid #0072CF !important;
    outline-offset: 3px !important;
}
@media (max-width: 400px) {
    html body.login #login { padding: 24px 16px 18px !important; }
}

/* MIREX 1.0.3: compact native language controls; retain accessible label. */
html body.login .language-switcher {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: min(calc(100vw - 32px), 324px) !important;
    margin: 16px auto 0 !important;
    padding: 0 !important;
}
html body.login .language-switcher #language-switcher {
    position: relative !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
/* Visually hidden, not removed: keep the native accessible name. */
html body.login #language-switcher label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
html body.login #language-switcher input[type="hidden"] { display: none !important; }
html body.login #language-switcher select {
    grid-column: 1 !important;
    grid-row: 1 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    color: #003870 !important;
    background-color: #FFFFFF !important;
    font-size: 14px !important;
}
html body.login #language-switcher .button,
html body.login #language-switcher input[type="submit"] {
    grid-column: 2 !important;
    grid-row: 1 !important;
    box-sizing: border-box !important;
    height: 36px !important;
    min-height: 36px !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border-color: #003870 !important;
    background: #003870 !important;
    color: #FFFFFF !important;
    font-size: 14px !important;
    line-height: normal !important;
}
html body.login #language-switcher .button:hover,
html body.login #language-switcher input[type="submit"]:hover {
    border-color: #0072CF !important;
    background: #0072CF !important;
    color: #FFFFFF !important;
}
html body.login #language-switcher select:focus-visible,
html body.login #language-switcher .button:focus-visible,
html body.login #language-switcher input[type="submit"]:focus-visible {
    outline: 2px solid #0072CF !important;
    outline-offset: 2px !important;
}
@media (max-width: 340px) {
    html body.login .language-switcher #language-switcher { grid-template-columns: minmax(0, 1fr) !important; }
    html body.login #language-switcher .button,
    html body.login #language-switcher input[type="submit"] {
        grid-column: 1 !important;
        grid-row: 2 !important;
        justify-self: center !important;
    }
}

/* MIREX 1.0.4: native language form inside the card. */
html body.login #login .language-switcher {
    max-width: 100% !important;
    margin: 20px auto 0 !important;
}
