/* marketing/usuario/login — se apoya en marketing-home.css (tokens --mh-*) */

.lg-body *,
.lg-body *::before,
.lg-body *::after {
    box-sizing: border-box;
}

.lg-shell {
    display: grid;
    grid-template-columns: minmax(360px, 42%) 1fr;
    min-height: 100vh;
}

/* ---------- Marca ---------- */

.lg-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 48px 48px;
    background: var(--mh-ink);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.lg-logo {
    width: 150px;
    height: auto;
}

/* El símbolo va completo, al centro del panel */
.lg-mark {
    position: absolute;
    z-index: -1;
    top: 46%;
    right: 5%;
    width: 80%;
    max-width: 560px;
    transform: translateY(-50%);
    height: auto;
    pointer-events: none;
}

.lg-mark__body {
    fill: var(--mh-gold);
}

.lg-mark__top {
    fill: #e0b52a;
}

.lg-brand__copy {
    max-width: 30ch;
}

.lg-brand__name {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lg-brand__text {
    margin: 0;
    color: #a9b4c2;
    font-size: 15px;
}

/* ---------- Acceso ---------- */

.lg-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 24px 64px;
}

.lg-card {
    width: min(100%, 400px);
}

.lg-intro {
    margin: 16px 0 28px;
    color: var(--mh-slate);
}

.lg-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lg-form .mh-field {
    min-width: 0;
}

.lg-form .mh-label {
    color: var(--mh-ink);
    font-size: 14px;
}

.lg-input.mh-input {
    height: 46px;
    font-size: 15px;
}

.lg-error {
    color: var(--mh-danger);
    font-size: 13px;
    font-weight: 500;
}

.lg-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 22px;
    padding: 12px 14px;
    background: var(--mh-danger-wash);
    border-radius: var(--mh-radius);
    color: var(--mh-danger);
    font-size: 14px;
    font-weight: 500;
}

.lg-alert svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.lg-alert p {
    margin: 0;
}

.lg-password {
    position: relative;
    display: block;
}

.lg-password .mh-input {
    padding-right: 48px;
}

.mh-body .lg-reveal {
    position: absolute;
    top: 50%;
    right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 36px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 6px;
    color: var(--mh-mist);
    transform: translateY(-50%);
    cursor: pointer;
}

.mh-body .lg-reveal:hover,
.mh-body .lg-reveal.is-on {
    color: var(--mh-ink);
}

.mh-body .lg-reveal:focus-visible {
    outline: 2px solid var(--mh-gold);
    outline-offset: 0;
}

.lg-reveal svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lg-reveal__closed,
.lg-reveal.is-on .lg-reveal__open {
    display: none;
}

.lg-reveal.is-on .lg-reveal__closed {
    display: block;
}

.mh-body .lg-submit {
    width: 100%;
    height: 46px;
    margin-top: 6px;
    font-size: 15px;
}

.lg-note {
    margin: 28px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--mh-line);
    color: var(--mh-slate);
    font-size: 14px;
}

/* ---------- Idioma ---------- */

.lg-lang {
    position: absolute;
    top: 28px;
    right: 32px;
    display: inline-flex;
    padding: 3px;
    background: #e2e7ee;
    border-radius: 9px;
}

.mh-body .lg-lang__option {
    height: 30px;
    min-width: 38px;
    padding: 0 9px;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--mh-slate);
    font: 600 13px / 1 var(--mh-font);
    letter-spacing: 0.02em;
    cursor: pointer;
}

.mh-body .lg-lang__option:hover {
    color: var(--mh-ink);
}

.mh-body .lg-lang__option[aria-pressed="true"] {
    background: #fff;
    box-shadow: 0 1px 2px rgba(21, 32, 44, 0.12);
    color: var(--mh-ink);
    cursor: default;
}

.mh-body .lg-lang__option:focus-visible {
    outline: 2px solid var(--mh-gold);
    outline-offset: 1px;
}

/* ---------- Entrada: el símbolo se arma una sola vez ---------- */

@media (prefers-reduced-motion: no-preference) {
    .lg-mark__body {
        animation: lg-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .lg-mark__top {
        animation: lg-in-top 0.9s 0.18s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }
}

@keyframes lg-in {
    from {
        opacity: 0;
        transform: translate(-6%, 6%);
    }
}

@keyframes lg-in-top {
    from {
        opacity: 0;
        transform: translate(8%, -8%);
    }
}

/* ---------- Pantallas chicas ---------- */

@media (max-width: 860px) {
    .lg-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .lg-brand {
        min-height: 140px;
        padding: 24px 16px 22px;
    }

    .lg-logo {
        width: 124px;
    }

    .lg-mark {
        top: 50%;
        right: 16px;
        width: 116px;
    }

    .lg-brand__copy {
        margin-top: 28px;
    }

    .lg-brand__name {
        margin: 0;
        font-size: 18px;
    }

    .lg-brand__text {
        display: none;
    }

    .lg-main {
        align-items: flex-start;
        padding: 72px 16px 48px;
    }

    .lg-lang {
        top: 20px;
        right: 16px;
    }
}
