/* Portada de login con la marca (plugin login_branding).
   Siempre en claro: con !important para ganar al modo oscuro de elastic. */

@font-face {
    font-family: "Outfit";
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    src: url(fonts/outfit-latin.woff2) format("woff2");
}

body.lb {
    --lb-panel: #1c1b33;
    --lb-panel-text: #ffffff;
    --lb-panel-muted: #c9c9cf;
    --lb-kicker: #a3a3aa;
    --lb-ink: #1c1b33;
    --lb-muted: #55546b;
    --lb-border: #c9c8d6;
    --lb-button: #1f6b33;
    --lb-button-hover: #174f26;
    --lb-focus: #2e7d3f;
    --lb-link: #1f6b33;
    --lb-font: Roboto, "Segoe UI", system-ui, sans-serif;
    --lb-radius: 8px;
}

body.lb-flowline {
    --lb-panel: #f2f4f0;
    --lb-panel-text: #1c1b33;
    --lb-panel-muted: #44435a;
    --lb-kicker: #1f6b33;
}

body.lb-frakline {
    --lb-panel: #0c0c0e;
    --lb-kicker: #a3a3aa;
    --lb-ink: #0c0c0e;
    --lb-muted: #55555c;
    --lb-border: #cacacf;
    --lb-button: #0c0c0e;
    --lb-button-hover: #2c2c31;
    --lb-focus: #4a8ae0;
    --lb-link: #2a66c4;
    --lb-font: "Outfit", "Segoe UI", system-ui, sans-serif;
    --lb-radius: 6px;
}

body.lb-covline {
    --lb-panel: #26282c;
    --lb-panel-muted: #d3d5da;
    --lb-kicker: #a9b9ff;
    --lb-ink: #2b2d31;
    --lb-muted: #5a5d63;
    --lb-border: #c8cad0;
    --lb-button: #2f55e8;
    --lb-button-hover: #2445c4;
    --lb-focus: #3d64ff;
    --lb-link: #2448d8;
}

/* ---- estructura: panel de marca + formulario ---- */

html body.lb {
    display: flex !important;
    flex-wrap: wrap;
    min-height: 100vh;
    height: auto !important;
    overflow: auto !important;
    margin: 0;
    background: #ffffff !important;
    color: var(--lb-ink) !important;
    font-family: var(--lb-font);
}

body.lb .lb-brand {
    flex: 1 1 440px;
    min-height: 320px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 56px 56px 48px;
    background: var(--lb-panel);
    color: var(--lb-panel-text);
}

body.lb .lb-kicker {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lb-kicker);
}

body.lb .lb-claim {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 420px;
}

body.lb .lb-h1 {
    margin: 0;
    font-size: 44px;
    line-height: 1.1;
    font-weight: 700;
}

body.lb .lb-text {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--lb-panel-muted);
}

body.lb .lb-domain {
    position: relative;
    font-size: 13px;
    color: var(--lb-panel-muted);
}

/* flowline: las rayitas del logo a todo el ancho */
body.lb-flowline .lb-deco {
    display: block;
    width: calc(100% + 112px);
    max-width: none;
    height: auto;
    margin: 0 -56px;
}

/* FRAKLINE: monograma blanco abajo */
body.lb-frakline .lb-kicker { letter-spacing: 0.22em; }
body.lb-frakline .lb-h1 { font-size: 48px; line-height: 1.05; }
body.lb-frakline .lb-accent { color: #4a8ae0; }
body.lb-frakline .lb-domain { letter-spacing: 0.08em; }
body.lb-frakline .lb-deco {
    display: block;
    width: 180px;
    height: 180px;
}

/* COVLINE: los dos arcos del logo detras del texto */
body.lb-covline .lb-deco {
    position: absolute;
    right: -90px;
    bottom: -70px;
    width: 72%;
    max-width: 480px;
    height: auto;
    pointer-events: none;
}
body.lb-covline .lb-kicker,
body.lb-covline .lb-claim { position: relative; }

/* ---- lado del formulario ---- */

html body.lb #layout {
    flex: 1 1 440px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: auto !important;
    min-height: 0;
    padding: 48px 24px;
    box-sizing: border-box;
    background: #ffffff !important;
}

html body.lb #layout-content {
    width: 100%;
    max-width: 380px;
    flex: 0 1 380px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 28px;
    text-align: left !important;
    background: transparent !important;
    border: 0 !important;
    color: var(--lb-ink) !important;
}

html body.lb #logo {
    display: block;
    position: static !important;
    top: auto !important;
    align-self: flex-start;
    width: 200px;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0 !important;
}

html body.lb-covline #logo { width: 240px; }
html body.lb-frakline #logo { width: 72px; height: 72px; }

body.lb .lb-intro h2 {
    margin: 0 0 6px;
    font-family: var(--lb-font);
    font-size: 24px;
    font-weight: 500;
    color: var(--lb-ink) !important;
}

body.lb .lb-intro p {
    margin: 0;
    font-size: 15px;
    color: var(--lb-muted) !important;
}

html body.lb #login-form {
    position: static !important;
    top: auto !important;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

html body.lb #login-form table,
html body.lb #login-form tbody {
    display: block;
    width: 100%;
    margin: 0 !important;
}

html body.lb #login-form tr {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 18px !important;
    width: 100%;
}

html body.lb #login-form td {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
}

html body.lb #login-form td.title label {
    display: block;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--lb-muted) !important;
}

html body.lb #login-form .input-group-prepend { display: none !important; }

html body.lb #login-form input.form-control {
    display: block;
    width: 100% !important;
    flex: none !important;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--lb-border) !important;
    border-radius: var(--lb-radius) !important;
    background: #ffffff !important;
    color: var(--lb-ink) !important;
    font-family: var(--lb-font);
    font-size: 16px;
    box-shadow: none !important;
}

html body.lb #login-form input.form-control:focus {
    outline: 2px solid var(--lb-focus);
    outline-offset: 1px;
    border-color: var(--lb-focus) !important;
}

html body.lb #login-form input.form-control::placeholder { color: transparent; }

html body.lb #login-form .formbuttons {
    margin: 0 !important;
    padding: 0 !important;
}

html body.lb #rcmloginsubmit {
    width: 100%;
    height: 48px;
    border: 0 !important;
    border-radius: var(--lb-radius) !important;
    background: var(--lb-button) !important;
    color: #ffffff !important;
    font-family: var(--lb-font);
    font-size: 16px !important;
    font-weight: 500;
    text-transform: none !important;
    box-shadow: none !important;
}

html body.lb #rcmloginsubmit:hover,
html body.lb #rcmloginsubmit:focus {
    background: var(--lb-button-hover) !important;
}


html body.lb #login-footer {
    margin: 0 !important;
    padding-top: 18px;
    border-top: 1px solid #e6e5ee;
    text-align: left !important;
    font-size: 13px;
    color: var(--lb-muted) !important;
}

html body.lb #login-footer a { color: var(--lb-link) !important; }

/* movil: el panel de marca arriba y mas bajo */
@media (max-width: 899px) {
    body.lb .lb-brand {
        min-height: 0;
        padding: 32px 24px;
        gap: 20px;
    }
    body.lb .lb-h1 { font-size: 32px; }
    body.lb-frakline .lb-h1 { font-size: 34px; }
    body.lb-flowline .lb-deco { width: calc(100% + 48px); margin: 0 -24px; }
    body.lb-frakline .lb-deco { width: 96px; height: 96px; }
    body.lb-covline .lb-deco { width: 46%; right: -50px; bottom: -40px; }
}

