:root {
    --hf-bg: #06090e;
    --hf-panel: rgba(10, 16, 24, .74);
    --hf-panel-strong: rgba(13, 19, 28, .88);
    --hf-border: rgba(255, 255, 255, .13);
    --hf-border-gold: rgba(245, 177, 45, .45);
    --hf-text: #f8fafc;
    --hf-muted: #a8b4c7;
    --hf-soft: #d5deeb;
    --hf-gold: #f5b12d;
    --hf-gold-2: #ffd66b;
    --hf-blue: #8bc5ff;
    --hf-danger: #fb7185;
    --hf-green: #38d17a;
    --hf-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.hefesto-login-body {
    margin: 0;
    background: var(--hf-bg);
    color: var(--hf-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
}

.hf-login-page {
    min-height: 100svh;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 24% 52%, rgba(245, 177, 45, .14), transparent 34%),
        radial-gradient(circle at 70% 20%, rgba(70, 128, 190, .14), transparent 34%),
        linear-gradient(135deg, #07101c 0%, #06090e 50%, #090b0f 100%);
}

.hf-login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 13, .1), rgba(2, 6, 13, .45) 48%, rgba(2, 6, 13, .78) 100%),
        url("../hefesto-login/fleet-hero.svg") left bottom / 72% auto no-repeat;
    opacity: .98;
    z-index: -3;
}

.hf-login-page::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .55)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0, rgba(255,255,255,.025) 1px, transparent 1px, transparent 120px);
    pointer-events: none;
    z-index: -2;
}

.hf-shell {
    width: min(1480px, calc(100vw - 56px));
    min-height: 100svh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.hf-header {
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hf-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hf-brand-mark {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--hf-gold-2), var(--hf-gold));
    color: #0a0a0a;
    font-weight: 950;
    font-size: 34px;
    box-shadow: 0 18px 42px rgba(245, 177, 45, .28), inset 0 1px 0 rgba(255,255,255,.5);
}

.hf-brand-title {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: .9;
    letter-spacing: .02em;
    font-weight: 950;
}

.hf-brand-subtitle {
    margin: 8px 0 0;
    color: var(--hf-muted);
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 750;
}

.hf-top-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.055);
    color: var(--hf-soft);
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    backdrop-filter: blur(12px);
}

.hf-top-chip span {
    color: var(--hf-gold);
}

.hf-main {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(420px, 520px);
    align-items: center;
    gap: clamp(34px, 5vw, 80px);
    padding: 6px 0 34px;
}

.hf-visual {
    min-height: 550px;
    position: relative;
}

.hf-command-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(245, 177, 45, .28);
    color: var(--hf-gold);
    background: rgba(10, 16, 24, .62);
    border-radius: 999px;
    padding: 11px 18px;
    font-size: 15px;
    font-weight: 850;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 60px rgba(0,0,0,.24);
}

.hf-kpi-card {
    width: 245px;
    margin-top: 34px;
    padding: 22px;
    border: 1px solid var(--hf-border);
    border-radius: 22px;
    background: rgba(9, 15, 23, .55);
    backdrop-filter: blur(16px);
    box-shadow: var(--hf-shadow);
}

.hf-kpi-title {
    color: var(--hf-gold);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hf-kpi-row {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.hf-kpi-row:last-child {
    border-bottom: 0;
}

.hf-kpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--hf-gold);
    background: rgba(245,177,45,.1);
    border: 1px solid rgba(245,177,45,.16);
}

.hf-kpi-number {
    font-size: 19px;
    font-weight: 900;
}

.hf-kpi-label {
    color: var(--hf-muted);
    font-size: 12px;
    margin-top: 1px;
}

.hf-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--hf-green);
    box-shadow: 0 0 18px rgba(56, 209, 122, .85);
}

.hf-feature-grid {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: grid;
    grid-template-columns: repeat(5, minmax(96px, 1fr));
    gap: 12px;
}

.hf-feature {
    min-height: 128px;
    padding: 16px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(8, 13, 20, .57);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 20px 48px rgba(0,0,0,.24);
}

.hf-feature svg {
    width: 29px;
    height: 29px;
    color: var(--hf-gold);
}

.hf-feature strong {
    font-size: 15px;
    line-height: 1.12;
}

.hf-feature small {
    color: var(--hf-muted);
    font-size: 11px;
    line-height: 1.2;
}

.hf-login-card {
    position: relative;
    padding: clamp(30px, 4vw, 48px);
    border-radius: 34px;
    border: 1px solid var(--hf-border);
    background:
        linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018)),
        rgba(7, 13, 21, .78);
    backdrop-filter: blur(26px);
    box-shadow:
        0 0 0 1px rgba(245,177,45,.08),
        0 34px 100px rgba(0,0,0,.58),
        inset 0 1px 0 rgba(255,255,255,.1);
    overflow: hidden;
}

.hf-login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(245,177,45,.36);
    mask: linear-gradient(#000, transparent 72%);
    pointer-events: none;
}

.hf-login-eyebrow {
    margin: 0 0 16px;
    color: var(--hf-gold);
    font-size: 14px;
    letter-spacing: .18em;
    font-weight: 950;
    text-transform: uppercase;
}

.hf-login-title {
    margin: 0;
    font-size: clamp(44px, 5vw, 64px);
    letter-spacing: -.055em;
    line-height: .92;
    font-weight: 950;
}

.hf-login-copy {
    max-width: 440px;
    margin: 18px 0 26px;
    color: var(--hf-muted);
    font-size: clamp(16px, 1.45vw, 21px);
    line-height: 1.45;
    font-weight: 520;
}

.hf-alert {
    margin: 0 0 18px;
    padding: 13px 15px;
    border-radius: 16px;
    border: 1px solid rgba(251, 113, 133, .24);
    color: #ffdbe2;
    background: rgba(251, 113, 133, .1);
    font-weight: 700;
}

.hf-field {
    margin-top: 18px;
}

.hf-label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--hf-soft);
    font-weight: 850;
}

.hf-input-wrap {
    position: relative;
}

.hf-input-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #aebbd0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.hf-input-icon svg {
    width: 22px;
    height: 22px;
}

.hf-input {
    width: 100%;
    height: 60px;
    border: 1px solid rgba(180, 197, 219, .28);
    border-radius: 18px;
    background: rgba(18, 29, 43, .82);
    color: var(--hf-text);
    outline: none;
    padding: 0 54px;
    font-size: 17px;
    font-weight: 650;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.hf-input:focus {
    border-color: rgba(245, 177, 45, .72);
    background: rgba(22, 35, 52, .92);
    box-shadow: 0 0 0 4px rgba(245, 177, 45, .12);
}

.hf-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    color: #b8c4d6;
    background: transparent;
    cursor: pointer;
}

.hf-password-toggle:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.hf-submit {
    width: 100%;
    height: 62px;
    margin-top: 22px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffd86f 0%, #f5b12d 46%, #e89a13 100%);
    color: #090909;
    cursor: pointer;
    font-size: 18px;
    font-weight: 950;
    box-shadow: 0 18px 44px rgba(245, 177, 45, .24), inset 0 1px 0 rgba(255,255,255,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.hf-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 24px 58px rgba(245, 177, 45, .32), inset 0 1px 0 rgba(255,255,255,.55);
}

.hf-forgot {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
    color: #8bc5ff;
    text-decoration: none;
    font-weight: 760;
}

.hf-forgot:hover {
    color: #b9ddff;
}

.hf-security-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 24px;
    color: var(--hf-muted);
    font-size: 12px;
    font-weight: 750;
}

.hf-security-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hf-footer {
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translateY(30px);
    display: flex;
    gap: 18px;
    color: rgba(213, 222, 235, .76);
    font-size: 14px;
    font-weight: 700;
}

.hf-footer b {
    color: var(--hf-gold);
}

@media (max-height: 820px) and (min-width: 920px) {
    .hf-shell {
        width: min(1420px, calc(100vw - 44px));
    }

    .hf-header {
        height: 88px;
    }

    .hf-brand-mark {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        font-size: 28px;
    }

    .hf-brand-title {
        font-size: 31px;
    }

    .hf-brand-subtitle {
        font-size: 14px;
        margin-top: 5px;
    }

    .hf-main {
        grid-template-columns: minmax(390px, 1fr) minmax(410px, 500px);
        padding-bottom: 18px;
    }

    .hf-visual {
        min-height: 500px;
    }

    .hf-kpi-card {
        width: 228px;
        margin-top: 24px;
        padding: 18px;
    }

    .hf-feature {
        min-height: 112px;
        padding: 13px 12px;
    }

    .hf-feature strong {
        font-size: 13px;
    }

    .hf-feature small {
        font-size: 10px;
    }

    .hf-login-card {
        padding: 30px;
        border-radius: 28px;
    }

    .hf-login-title {
        font-size: 46px;
    }

    .hf-login-copy {
        font-size: 17px;
        margin: 14px 0 20px;
    }

    .hf-input,
    .hf-submit {
        height: 55px;
    }
}

@media (max-width: 980px) {
    body.hefesto-login-body {
        overflow: auto;
    }

    .hf-login-page::before {
        background:
            linear-gradient(180deg, rgba(2, 6, 13, .45), rgba(2, 6, 13, .9)),
            url("../hefesto-login/fleet-hero.svg") center top / cover no-repeat;
    }

    .hf-shell {
        width: min(100% - 28px, 620px);
    }

    .hf-header {
        height: auto;
        padding: 24px 0 14px;
        align-items: flex-start;
        flex-direction: column;
    }

    .hf-top-chip {
        display: none;
    }

    .hf-main {
        display: block;
        padding: 10px 0 34px;
    }

    .hf-visual {
        min-height: auto;
        margin-bottom: 18px;
    }

    .hf-kpi-card,
    .hf-feature-grid,
    .hf-footer {
        display: none;
    }

    .hf-command-badge {
        margin-bottom: 16px;
    }

    .hf-login-card {
        border-radius: 26px;
    }
}

/* === HEFESTO LOGIN SAFE FIT START === */
/* Ajuste seguro: reduce proporciones sin desplazar el layout fuera del viewport */

@media (min-width: 981px) {
    html,
    body.hefesto-login-body {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .hf-login-page {
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }

    .hf-login-page::before {
        background:
            linear-gradient(90deg, rgba(2, 6, 13, .10), rgba(2, 6, 13, .34) 48%, rgba(2, 6, 13, .78) 100%),
            url("../hefesto-login/fleet-hero.svg") left 47% bottom 4% / 63% auto no-repeat;
    }

    .hf-shell {
        width: min(1420px, calc(100vw - 48px));
        min-height: 100vh;
        max-height: 100vh;
        transform: none !important;
        margin-inline: auto;
    }

    .hf-header {
        height: 78px;
        min-height: 78px;
    }

    .hf-brand {
        gap: 13px;
    }

    .hf-brand-mark {
        width: 54px;
        height: 54px;
        border-radius: 17px;
        font-size: 26px;
    }

    .hf-brand-title {
        font-size: 33px;
        line-height: .88;
    }

    .hf-brand-subtitle {
        margin-top: 5px;
        font-size: 13.5px;
    }

    .hf-top-chip {
        max-width: 390px;
        padding: 9px 15px;
        font-size: 13.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hf-main {
        height: calc(100vh - 78px);
        min-height: 0;
        grid-template-columns: minmax(520px, 1fr) minmax(390px, 470px);
        gap: clamp(22px, 3.2vw, 52px);
        align-items: center;
        padding: 0 0 18px;
    }

    .hf-visual {
        min-height: calc(100vh - 112px);
        height: calc(100vh - 112px);
    }

    .hf-command-badge {
        padding: 8px 14px;
        font-size: 13.5px;
    }

    .hf-kpi-card {
        width: 205px;
        margin-top: 22px;
        padding: 16px;
        border-radius: 18px;
    }

    .hf-kpi-title {
        font-size: 10.5px;
        margin-bottom: 10px;
    }

    .hf-kpi-row {
        grid-template-columns: 28px 1fr auto;
        gap: 9px;
        padding: 8px 0;
    }

    .hf-kpi-icon {
        width: 28px;
        height: 28px;
        border-radius: 10px;
    }

    .hf-kpi-number {
        font-size: 17px;
    }

    .hf-kpi-label {
        font-size: 10.5px;
    }

    .hf-feature-grid {
        bottom: 26px;
        gap: 9px;
        grid-template-columns: repeat(5, minmax(92px, 1fr));
    }

    .hf-feature {
        min-height: 88px;
        padding: 10px 11px;
        border-radius: 15px;
        gap: 6px;
    }

    .hf-feature svg {
        width: 23px;
        height: 23px;
    }

    .hf-feature strong {
        font-size: 11.5px;
        line-height: 1.05;
    }

    .hf-feature small {
        font-size: 9.5px;
    }

    .hf-footer {
        transform: none;
        bottom: 0;
        font-size: 12px;
        gap: 14px;
    }

    .hf-login-card {
        width: 100%;
        max-width: 470px;
        justify-self: end;
        padding: 26px 30px;
        border-radius: 26px;
        max-height: calc(100vh - 116px);
        overflow: hidden;
    }

    .hf-login-eyebrow {
        font-size: 11.5px;
        margin-bottom: 11px;
        letter-spacing: .17em;
    }

    .hf-login-title {
        font-size: 44px;
        line-height: .9;
    }

    .hf-login-copy {
        font-size: 16px;
        line-height: 1.32;
        margin: 13px 0 18px;
    }

    .hf-field {
        margin-top: 13px;
    }

    .hf-label {
        margin-bottom: 7px;
        font-size: 13.5px;
    }

    .hf-input {
        height: 48px;
        border-radius: 15px;
        font-size: 14.5px;
        padding: 0 48px;
    }

    .hf-input-icon {
        left: 15px;
    }

    .hf-input-icon svg {
        width: 20px;
        height: 20px;
    }

    .hf-password-toggle {
        width: 34px;
        height: 34px;
        right: 11px;
    }

    .hf-submit {
        height: 50px;
        margin-top: 17px;
        border-radius: 15px;
        font-size: 15.5px;
    }

    .hf-forgot {
        margin-top: 11px;
        font-size: 13.5px;
    }

    .hf-security-row {
        margin-top: 12px;
        gap: 10px;
        font-size: 10.5px;
    }
}

/* Pantallas bajas: compactar mÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡s, pero sin mover el formulario fuera del ancho */
@media (min-width: 981px) and (max-height: 760px) {
    .hf-header {
        height: 68px;
        min-height: 68px;
    }

    .hf-brand-mark {
        width: 48px;
        height: 48px;
        border-radius: 15px;
        font-size: 23px;
    }

    .hf-brand-title {
        font-size: 29px;
    }

    .hf-brand-subtitle {
        font-size: 12px;
    }

    .hf-top-chip {
        padding: 7px 13px;
        font-size: 12px;
        max-width: 330px;
    }

    .hf-main {
        height: calc(100vh - 68px);
        grid-template-columns: minmax(500px, 1fr) minmax(360px, 430px);
        gap: 28px;
        padding-bottom: 10px;
    }

    .hf-visual {
        min-height: calc(100vh - 86px);
        height: calc(100vh - 86px);
    }

    .hf-command-badge {
        padding: 7px 13px;
        font-size: 12.5px;
    }

    .hf-kpi-card {
        width: 190px;
        margin-top: 16px;
        padding: 14px;
    }

    .hf-feature-grid {
        bottom: 18px;
    }

    .hf-feature {
        min-height: 78px;
        padding: 9px 10px;
    }

    .hf-feature svg {
        width: 20px;
        height: 20px;
    }

    .hf-feature strong {
        font-size: 10.5px;
    }

    .hf-feature small {
        display: none;
    }

    .hf-footer {
        display: none;
    }

    .hf-login-card {
        max-width: 430px;
        padding: 22px 26px;
        border-radius: 24px;
        max-height: calc(100vh - 88px);
    }

    .hf-login-eyebrow {
        font-size: 10.5px;
        margin-bottom: 9px;
    }

    .hf-login-title {
        font-size: 38px;
    }

    .hf-login-copy {
        font-size: 14.5px;
        margin: 10px 0 14px;
    }

    .hf-field {
        margin-top: 10px;
    }

    .hf-label {
        font-size: 12.5px;
        margin-bottom: 6px;
    }

    .hf-input {
        height: 43px;
        font-size: 13.5px;
    }

    .hf-submit {
        height: 45px;
        margin-top: 13px;
        font-size: 14.5px;
    }

    .hf-forgot {
        margin-top: 8px;
        font-size: 12.5px;
    }

    .hf-security-row {
        display: none;
    }
}

/* Pantallas medianas: evitar que el chip o el login se salgan */
@media (min-width: 981px) and (max-width: 1280px) {
    .hf-shell {
        width: calc(100vw - 34px);
    }

    .hf-main {
        grid-template-columns: minmax(430px, 1fr) minmax(350px, 420px);
        gap: 24px;
    }

    .hf-login-card {
        max-width: 420px;
    }

    .hf-login-title {
        font-size: 38px;
    }

    .hf-login-copy {
        font-size: 14.5px;
    }

    .hf-feature-grid {
        grid-template-columns: repeat(5, minmax(78px, 1fr));
    }

    .hf-feature strong {
        font-size: 10.5px;
    }

    .hf-feature small {
        display: none;
    }

    .hf-top-chip {
        max-width: 300px;
    }
}
/* === HEFESTO LOGIN SAFE FIT END === */

/* === HEFESTO LOGIN CONSISTENCY START === */
/* UnificaciÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â³n estÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â©tica de formas, inputs, tarjetas y CTA */

:root {
    --hf-radius-card: 24px;
    --hf-radius-md: 18px;
    --hf-radius-sm: 14px;

    --hf-panel-bg: rgba(10, 16, 24, .72);
    --hf-panel-bg-2: rgba(12, 19, 29, .82);
    --hf-panel-border: rgba(255,255,255,.10);
    --hf-panel-border-gold: rgba(245,177,45,.26);

    --hf-input-bg: rgba(16, 28, 43, .86);
    --hf-input-border: rgba(180,197,219,.18);
    --hf-input-border-focus: rgba(245,177,45,.48);

    --hf-shadow-soft: 0 18px 46px rgba(0,0,0,.30);
    --hf-shadow-card: 0 24px 64px rgba(0,0,0,.36);
}

/* Tarjeta principal login */
.hf-login-card {
    border-radius: var(--hf-radius-card) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)),
        var(--hf-panel-bg-2) !important;
    border: 1px solid var(--hf-panel-border-gold) !important;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.04),
        var(--hf-shadow-card),
        inset 0 1px 0 rgba(255,255,255,.06) !important;
}

/* KPI card izquierda */
.hf-kpi-card {
    width: 270px !important;
    border-radius: var(--hf-radius-card) !important;
    background: var(--hf-panel-bg) !important;
    border: 1px solid var(--hf-panel-border) !important;
    box-shadow: var(--hf-shadow-soft) !important;
    backdrop-filter: blur(16px);
}

.hf-kpi-title {
    line-height: 1.25;
    font-size: 12px !important;
    letter-spacing: .06em !important;
}

/* Chip superior y badge */
.hf-top-chip,
.hf-command-badge {
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    background: rgba(10,16,24,.62) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

/* Inputs consistentes */
.hf-input {
    height: 54px !important;
    border-radius: var(--hf-radius-md) !important;
    background: var(--hf-input-bg) !important;
    border: 1px solid var(--hf-input-border) !important;
    color: #f8fafc !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

.hf-input:focus {
    border-color: var(--hf-input-border-focus) !important;
    box-shadow:
        0 0 0 4px rgba(245,177,45,.08),
        inset 0 1px 0 rgba(255,255,255,.03) !important;
    background: rgba(18, 31, 47, .92) !important;
}

/* Forzar autofill oscuro para Chrome/Edge */
.hf-input:-webkit-autofill,
.hf-input:-webkit-autofill:hover,
.hf-input:-webkit-autofill:focus,
.hf-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(16, 28, 43, .98) inset !important;
    -webkit-text-fill-color: #f8fafc !important;
    caret-color: #f8fafc !important;
    border: 1px solid var(--hf-input-border) !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* Iconos de inputs */
.hf-input-icon {
    color: rgba(214, 224, 236, .78) !important;
}

.hf-password-toggle {
    border-radius: 12px !important;
    color: rgba(214, 224, 236, .72) !important;
}

/* BotÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â³n */
.hf-submit {
    height: 56px !important;
    border-radius: var(--hf-radius-md) !important;
    background: linear-gradient(135deg, #ffd86f 0%, #f5b12d 48%, #eb9f18 100%) !important;
    box-shadow:
        0 14px 34px rgba(245,177,45,.22),
        inset 0 1px 0 rgba(255,255,255,.40) !important;
    font-size: 17px !important;
    font-weight: 900 !important;
}

.hf-submit:hover {
    filter: brightness(1.03);
    box-shadow:
        0 18px 42px rgba(245,177,45,.26),
        inset 0 1px 0 rgba(255,255,255,.44) !important;
}

/* Tarjetas inferiores */
.hf-feature-grid {
    gap: 12px !important;
}

.hf-feature {
    min-height: 104px !important;
    border-radius: 20px !important;
    background: rgba(9, 15, 23, .68) !important;
    border: 1px solid var(--hf-panel-border) !important;
    box-shadow: 0 12px 34px rgba(0,0,0,.22) !important;
    justify-content: flex-start !important;
    padding: 14px 14px 12px !important;
}

.hf-feature strong {
    font-size: 12.5px !important;
    line-height: 1.1 !important;
}

.hf-feature small {
    font-size: 10px !important;
    line-height: 1.2 !important;
    color: rgba(200,210,225,.72) !important;
}

/* IconografÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â­a mÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¡s coherente */
.hf-feature svg,
.hf-kpi-icon svg,
.hf-input-icon svg {
    stroke-width: 1.9 !important;
}

.hf-kpi-icon {
    border-radius: 12px !important;
    background: rgba(245,177,45,.08) !important;
    border: 1px solid rgba(245,177,45,.15) !important;
}

/* TipografÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â­a refinada */
.hf-login-title {
    letter-spacing: -.045em !important;
}

.hf-login-copy {
    color: rgba(214, 224, 236, .78) !important;
    max-width: 420px !important;
}

.hf-label {
    color: #e8eef7 !important;
    font-weight: 800 !important;
}

/* Enlace inferior */
.hf-forgot {
    color: #8fc7ff !important;
    font-weight: 800 !important;
}

/* Footer informativo */
.hf-footer {
    opacity: .9;
    font-size: 13px !important;
}

/* Responsive fino */
@media (min-width: 981px) and (max-width: 1400px) {
    .hf-kpi-card {
        width: 245px !important;
    }

    .hf-feature {
        min-height: 96px !important;
    }

    .hf-feature strong {
        font-size: 11.5px !important;
    }

    .hf-feature small {
        font-size: 9px !important;
    }
}

@media (min-width: 981px) and (max-height: 760px) {
    .hf-login-card {
        border-radius: 22px !important;
    }

    .hf-kpi-card {
        border-radius: 22px !important;
    }

    .hf-feature {
        border-radius: 18px !important;
    }
}
/* === HEFESTO LOGIN CONSISTENCY END === */

/* === HEFESTO BACKGROUND IMAGE START === */
/* Fondo final usando public/assets/hefesto-login/fondo.png */

.hf-login-page {
    min-height: 100svh;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 55%, rgba(245, 177, 45, .08), transparent 30%),
        radial-gradient(circle at 78% 18%, rgba(61, 110, 168, .10), transparent 28%),
        linear-gradient(135deg, #06101b 0%, #06090e 55%, #080b10 100%);
}

.hf-login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(
            90deg,
            rgba(2, 6, 13, .18) 0%,
            rgba(2, 6, 13, .14) 20%,
            rgba(2, 6, 13, .18) 42%,
            rgba(2, 6, 13, .42) 62%,
            rgba(2, 6, 13, .82) 100%
        ),
        linear-gradient(
            180deg,
            rgba(3, 7, 12, .10) 0%,
            rgba(3, 7, 12, .18) 45%,
            rgba(3, 7, 12, .34) 100%
        ),
        url("../hefesto-login/fondo.png") center center / cover no-repeat !important;
    opacity: 1;
}

.hf-login-page::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .34)),
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,.018) 0,
            rgba(255,255,255,.018) 1px,
            transparent 1px,
            transparent 120px
        );
}

.hf-shell {
    position: relative;
    z-index: 1;
}

.hf-visual {
    position: relative;
    min-height: 550px;
    z-index: 1;
}

/* Tarjetas flotantes para que se lean bien sobre la imagen */
.hf-kpi-card,
.hf-feature,
.hf-command-badge,
.hf-top-chip {
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
        rgba(8, 14, 22, .74) !important;
    backdrop-filter: blur(18px);
}

.hf-login-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
        rgba(8, 14, 22, .88) !important;
    backdrop-filter: blur(22px);
}

/* Ajuste desktop grande */
@media (min-width: 981px) {
    .hf-login-page::before {
        background:
            linear-gradient(
                90deg,
                rgba(2, 6, 13, .16) 0%,
                rgba(2, 6, 13, .12) 18%,
                rgba(2, 6, 13, .16) 40%,
                rgba(2, 6, 13, .40) 60%,
                rgba(2, 6, 13, .82) 100%
            ),
            linear-gradient(
                180deg,
                rgba(3, 7, 12, .08) 0%,
                rgba(3, 7, 12, .14) 48%,
                rgba(3, 7, 12, .30) 100%
            ),
            url("../hefesto-login/fondo.png") center center / cover no-repeat !important;
    }
}

/* Ajuste laptop / ancho mediano */
@media (min-width: 981px) and (max-width: 1400px) {
    .hf-login-page::before {
        background:
            linear-gradient(
                90deg,
                rgba(2, 6, 13, .18) 0%,
                rgba(2, 6, 13, .14) 18%,
                rgba(2, 6, 13, .20) 42%,
                rgba(2, 6, 13, .48) 64%,
                rgba(2, 6, 13, .84) 100%
            ),
            linear-gradient(
                180deg,
                rgba(3, 7, 12, .08) 0%,
                rgba(3, 7, 12, .16) 48%,
                rgba(3, 7, 12, .32) 100%
            ),
            url("../hefesto-login/fondo.png") 42% center / cover no-repeat !important;
    }
}

/* Pantallas bajas */
@media (min-width: 981px) and (max-height: 760px) {
    .hf-login-page::before {
        background:
            linear-gradient(
                90deg,
                rgba(2, 6, 13, .20) 0%,
                rgba(2, 6, 13, .16) 20%,
                rgba(2, 6, 13, .22) 44%,
                rgba(2, 6, 13, .50) 66%,
                rgba(2, 6, 13, .84) 100%
            ),
            linear-gradient(
                180deg,
                rgba(3, 7, 12, .10) 0%,
                rgba(3, 7, 12, .18) 50%,
                rgba(3, 7, 12, .34) 100%
            ),
            url("../hefesto-login/fondo.png") 40% center / cover no-repeat !important;
    }
}

/* Mobile: usar la misma imagen pero más centrada */
@media (max-width: 980px) {
    .hf-login-page::before {
        background:
            linear-gradient(
                180deg,
                rgba(2, 6, 13, .38) 0%,
                rgba(2, 6, 13, .58) 45%,
                rgba(2, 6, 13, .88) 100%
            ),
            url("../hefesto-login/fondo.png") center top / cover no-repeat !important;
    }
}
/* === HEFESTO BACKGROUND IMAGE END === */
/* Mejora de visibilidad de iconos (login) */
.hf-kpi-icon,
.hf-feature svg,
.hf-input-icon,
.hf-password-toggle {
    filter: drop-shadow(0 0 6px rgba(245,177,45,.22));
}

.hf-feature svg,
.hf-kpi-icon svg,
.hf-input-icon svg,
.hf-password-toggle svg {
    stroke-width: 2.2 !important;
}

.hf-feature svg,
.hf-kpi-icon,
.hf-kpi-icon svg {
    color: #ffd166 !important;
}

.hf-input-icon {
    color: #dbeafe !important;
}

.hf-password-toggle {
    color: #e5edf9 !important;
    background: rgba(255,255,255,.04) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
}

.hf-password-toggle:hover {
    color: #ffffff !important;
    background: rgba(245,177,45,.18) !important;
    border-color: rgba(245,177,45,.42) !important;
}


/* === HEFESTO LOGIN VISUAL FIX V2 START === */
/* Corrige proporciones, solapamientos y altura visible del login HEFESTO. */

:root {
    --hf-v2-bg: #050b12;
    --hf-v2-panel: #07111d;
    --hf-v2-card: rgba(10, 20, 34, .86);
    --hf-v2-border: rgba(180, 197, 219, .18);
    --hf-v2-gold: #ffca45;
    --hf-v2-gold-2: #f59e0b;
    --hf-v2-text: #f8fafc;
    --hf-v2-muted: #a8b3c4;
    --hf-v2-soft: #d7deea;
    --hf-v2-green: #35d98b;
}

body.hefesto-login-body {
    margin: 0 !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    color: var(--hf-v2-text) !important;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 202, 69, .12), transparent 28%),
        radial-gradient(circle at 82% 26%, rgba(37, 99, 235, .10), transparent 32%),
        linear-gradient(135deg, #02060b 0%, #06101a 48%, #050b12 100%) !important;
}

body.hefesto-login-body .hf-login-page,
body.hefesto-login-body .hf-shell {
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

body.hefesto-login-body .hf-login-page::before,
body.hefesto-login-body .hf-login-page::after {
    display: none !important;
}

/* Header: ya no debe invadir el título */
body.hefesto-login-body .hf-header {
    position: absolute !important;
    z-index: 30 !important;
    top: 34px !important;
    left: 44px !important;
    right: auto !important;
    width: auto !important;
    max-width: 52vw !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    pointer-events: none !important;
}

body.hefesto-login-body .hf-brand {
    pointer-events: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
}

body.hefesto-login-body .hf-brand-mark {
    width: 66px !important;
    height: 66px !important;
    min-width: 66px !important;
    border-radius: 18px !important;
    font-size: 32px !important;
    font-weight: 950 !important;
    color: #05070b !important;
    background: linear-gradient(135deg, #ffe27a 0%, #f7b91d 100%) !important;
    box-shadow: 0 18px 45px rgba(245, 158, 11, .25), inset 0 1px 0 rgba(255,255,255,.55) !important;
}

body.hefesto-login-body .hf-brand-title {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(30px, 2.6vw, 46px) !important;
    line-height: .9 !important;
    font-weight: 950 !important;
    letter-spacing: .02em !important;
}

body.hefesto-login-body .hf-brand-subtitle {
    margin-top: 7px !important;
    color: var(--hf-v2-gold) !important;
    font-size: clamp(13px, .9vw, 16px) !important;
    font-weight: 850 !important;
}

/* El chip superior estaba estorbando sobre la tarjeta */
body.hefesto-login-body .hf-top-chip {
    display: none !important;
}

/* Layout principal */
body.hefesto-login-body .hf-main {
    min-height: 100vh !important;
    display: grid !important;
    grid-template-columns: minmax(0, 54%) minmax(500px, 46%) !important;
    gap: 0 !important;
    align-items: stretch !important;
    padding: 0 !important;
}

/* Panel izquierdo */
body.hefesto-login-body .hf-visual {
    position: relative !important;
    min-height: 100vh !important;
    height: 100vh !important;
    padding: 150px 44px 34px 54px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background:
        radial-gradient(circle at 62% 42%, rgba(255, 202, 69, .13), transparent 30%),
        linear-gradient(135deg, rgba(3, 8, 15, .98), rgba(5, 15, 25, .98)) !important;
    border-right: 1px solid rgba(255,255,255,.08) !important;
}

body.hefesto-login-body .hf-visual::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    opacity: .92 !important;
    background:
        linear-gradient(90deg, rgba(3,8,15,.68) 0%, rgba(3,8,15,.22) 48%, rgba(3,8,15,.76) 100%),
        linear-gradient(180deg, rgba(3,8,15,.08) 0%, rgba(3,8,15,.42) 100%),
        url("../hefesto-login/fondo.png") center bottom / cover no-repeat !important;
    filter: saturate(.95) contrast(1.08) brightness(.82) !important;
}

body.hefesto-login-body .hf-visual::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    opacity: .44 !important;
    background-image: radial-gradient(rgba(255, 183, 42, .35) 1px, transparent 1px) !important;
    background-size: 10px 10px !important;
    mask-image: linear-gradient(to bottom, black 0%, black 74%, transparent 98%) !important;
    pointer-events: none !important;
}

/* Badge operativo */
body.hefesto-login-body .hf-command-badge {
    position: relative !important;
    z-index: 5 !important;
    top: auto !important;
    left: auto !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 0 22px !important;
    padding: 12px 22px !important;
    border-radius: 999px !important;
    color: var(--hf-v2-gold) !important;
    background: rgba(9, 19, 32, .78) !important;
    border: 1px solid rgba(255, 202, 69, .22) !important;
    box-shadow: 0 20px 45px rgba(0,0,0,.26) !important;
    backdrop-filter: blur(16px) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

/* Hero: se reduce tamaño para que no tape logo, KPI ni tarjetas */
body.hefesto-login-body .hf-hero-copy {
    position: relative !important;
    z-index: 5 !important;
    max-width: 560px !important;
    margin: 0 !important;
}

body.hefesto-login-body .hf-hero-copy h2 {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(36px, 4.05vw, 60px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.055em !important;
    font-weight: 950 !important;
    text-shadow: 0 20px 42px rgba(0,0,0,.52) !important;
}

body.hefesto-login-body .hf-hero-copy h2 span {
    color: var(--hf-v2-gold) !important;
    text-shadow: 0 0 30px rgba(255,202,69,.26) !important;
}

body.hefesto-login-body .hf-hero-accent {
    width: 78px !important;
    height: 6px !important;
    border-radius: 999px !important;
    margin: 22px 0 18px !important;
    background: linear-gradient(90deg, var(--hf-v2-gold), var(--hf-v2-gold-2)) !important;
    box-shadow: 0 0 24px rgba(255,202,69,.32) !important;
}

body.hefesto-login-body .hf-hero-copy p {
    margin: 0 !important;
    max-width: 540px !important;
    color: var(--hf-v2-soft) !important;
    font-size: clamp(14px, 1.08vw, 17px) !important;
    line-height: 1.48 !important;
    font-weight: 720 !important;
    text-shadow: 0 12px 28px rgba(0,0,0,.52) !important;
}

/* KPI: moverlo a la zona visual, sin tapar el titular */
body.hefesto-login-body .hf-kpi-card {
    position: absolute !important;
    z-index: 6 !important;
    right: clamp(28px, 4vw, 70px) !important;
    bottom: 192px !important;
    left: auto !important;
    top: auto !important;
    width: 205px !important;
    min-height: 124px !important;
    padding: 18px 20px !important;
    border-radius: 22px !important;
    background: rgba(10, 22, 36, .78) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    box-shadow: 0 28px 60px rgba(0,0,0,.36) !important;
    backdrop-filter: blur(20px) !important;
}

body.hefesto-login-body .hf-kpi-card > * {
    display: none !important;
}

body.hefesto-login-body .hf-kpi-card::before {
    content: "Flota en operación\A\A128\A↑ 12% vs. ayer" !important;
    white-space: pre-line !important;
    color: var(--hf-v2-soft) !important;
    font-weight: 850 !important;
    font-size: 14px !important;
    line-height: 1.08 !important;
}

body.hefesto-login-body .hf-kpi-card::after {
    content: "92%" !important;
    position: absolute !important;
    right: 18px !important;
    bottom: 22px !important;
    width: 56px !important;
    height: 56px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    background:
        radial-gradient(circle at center, #132235 0 56%, transparent 57%),
        conic-gradient(var(--hf-v2-gold) 0 92%, rgba(255,255,255,.16) 92% 100%) !important;
}

/* Tarjetas inferiores: más compactas */
body.hefesto-login-body .hf-feature-grid {
    position: relative !important;
    z-index: 6 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(130px, 1fr)) !important;
    gap: 14px !important;
    margin: auto 0 0 !important;
    padding-top: 26px !important;
}

body.hefesto-login-body .hf-feature-grid .hf-feature:nth-child(4) {
    display: none !important;
}

body.hefesto-login-body .hf-feature-grid .hf-feature:nth-child(5) {
    display: block !important;
}

body.hefesto-login-body .hf-feature {
    position: relative !important;
    min-height: 118px !important;
    padding: 18px 18px 16px !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, rgba(17, 32, 50, .88), rgba(8, 18, 31, .84)) !important;
    border: 1px solid rgba(148, 163, 184, .24) !important;
    box-shadow: 0 24px 45px rgba(0,0,0,.22) !important;
    overflow: hidden !important;
}

body.hefesto-login-body .hf-feature::after {
    content: "" !important;
    position: absolute !important;
    width: 9px !important;
    height: 9px !important;
    border-radius: 999px !important;
    right: 18px !important;
    top: 18px !important;
    background: var(--hf-v2-green) !important;
    box-shadow: 0 0 22px rgba(53, 217, 139, .75) !important;
}

body.hefesto-login-body .hf-feature svg {
    width: 28px !important;
    height: 28px !important;
    color: var(--hf-v2-gold) !important;
    margin-bottom: 16px !important;
}

body.hefesto-login-body .hf-feature strong {
    display: block !important;
    color: #fff !important;
    font-size: 17px !important;
    line-height: 1.08 !important;
    font-weight: 950 !important;
    letter-spacing: -.02em !important;
}

body.hefesto-login-body .hf-feature small {
    display: block !important;
    margin-top: 7px !important;
    color: var(--hf-v2-soft) !important;
    font-size: 12.5px !important;
    line-height: 1.3 !important;
}

body.hefesto-login-body .hf-footer {
    display: none !important;
}

/* Panel derecho */
body.hefesto-login-body .hf-login-card {
    position: relative !important;
    z-index: 8 !important;
    align-self: center !important;
    justify-self: center !important;
    width: min(560px, calc(100% - 72px)) !important;
    max-height: calc(100vh - 92px) !important;
    margin: 0 auto !important;
    padding: clamp(30px, 3vw, 42px) !important;
    overflow: hidden !important;
    border-radius: 32px !important;
    color: var(--hf-v2-text) !important;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 202, 69, .08), transparent 28%),
        linear-gradient(180deg, rgba(13, 25, 40, .90), rgba(6, 15, 26, .84)) !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    box-shadow: 0 34px 90px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.06) !important;
    backdrop-filter: blur(22px) !important;
}

body.hefesto-login-body .hf-login-card::before {
    display: none !important;
}

body.hefesto-login-body .hf-login-eyebrow {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: var(--hf-v2-gold) !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    letter-spacing: .26em !important;
    text-transform: uppercase !important;
}

body.hefesto-login-body .hf-login-eyebrow::before {
    content: "◇" !important;
    font-size: 17px !important;
    letter-spacing: 0 !important;
}

body.hefesto-login-body .hf-login-title {
    margin: 28px 0 10px !important;
    color: #fff !important;
    font-size: clamp(40px, 3.6vw, 54px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.052em !important;
    font-weight: 950 !important;
}

body.hefesto-login-body .hf-login-copy {
    margin: 0 0 26px !important;
    color: var(--hf-v2-muted) !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    font-weight: 650 !important;
}

body.hefesto-login-body .hf-field {
    margin-bottom: 18px !important;
}

body.hefesto-login-body .hf-label {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    margin-bottom: 9px !important;
}

body.hefesto-login-body .hf-input-wrap {
    position: relative !important;
}

body.hefesto-login-body .hf-input {
    width: 100% !important;
    height: 58px !important;
    padding: 0 54px 0 58px !important;
    border-radius: 17px !important;
    color: #fff !important;
    font-size: 15.5px !important;
    font-weight: 760 !important;
    background: rgba(9, 21, 36, .88) !important;
    border: 1px solid rgba(148, 163, 184, .24) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 14px 34px rgba(0,0,0,.20) !important;
}

body.hefesto-login-body .hf-input:focus {
    border-color: rgba(255, 202, 69, .64) !important;
    box-shadow: 0 0 0 4px rgba(255, 202, 69, .11), 0 18px 34px rgba(0,0,0,.28) !important;
}

body.hefesto-login-body .hf-input-icon {
    position: absolute !important;
    z-index: 3 !important;
    left: 19px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #b8c3d4 !important;
}

body.hefesto-login-body .hf-input-icon svg {
    width: 22px !important;
    height: 22px !important;
}

body.hefesto-login-body .hf-password-toggle {
    position: absolute !important;
    z-index: 4 !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    color: #b8c3d4 !important;
    background: rgba(255,255,255,.045) !important;
}

body.hefesto-login-body .hf-submit {
    width: 100% !important;
    min-height: 62px !important;
    margin-top: 10px !important;
    border-radius: 19px !important;
    border: 0 !important;
    color: #05070b !important;
    font-size: 19px !important;
    font-weight: 950 !important;
    letter-spacing: -.02em !important;
    background: linear-gradient(135deg, #ffe27a 0%, #ffc63f 45%, #f59e0b 100%) !important;
    box-shadow: 0 24px 48px rgba(245, 158, 11, .28), inset 0 1px 0 rgba(255,255,255,.58) !important;
}

body.hefesto-login-body .hf-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 30px 58px rgba(245, 158, 11, .36), inset 0 1px 0 rgba(255,255,255,.66) !important;
}

body.hefesto-login-body .hf-forgot {
    display: inline-block !important;
    margin-top: 18px !important;
    color: var(--hf-v2-gold) !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 4px !important;
}

body.hefesto-login-body .hf-security-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
    margin-top: 26px !important;
    padding-top: 22px !important;
    border-top: 1px solid rgba(148, 163, 184, .15) !important;
    color: var(--hf-v2-muted) !important;
}

body.hefesto-login-body .hf-security-row span {
    display: block !important;
    color: var(--hf-v2-muted) !important;
    font-size: 11.8px !important;
    line-height: 1.25 !important;
    font-weight: 750 !important;
}

body.hefesto-login-body .hf-security-row b {
    display: block !important;
    color: #e9eef8 !important;
    margin-bottom: 3px !important;
}

body.hefesto-login-body .hf-security-row small {
    display: block !important;
    color: var(--hf-v2-muted) !important;
    font-size: 11.5px !important;
}

/* Alturas pequeñas: compactar para que nunca se corte */
@media (max-height: 820px) {
    body.hefesto-login-body .hf-visual {
        padding-top: 128px !important;
        padding-bottom: 24px !important;
    }

    body.hefesto-login-body .hf-brand-mark {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        font-size: 28px !important;
    }

    body.hefesto-login-body .hf-brand-title {
        font-size: 36px !important;
    }

    body.hefesto-login-body .hf-brand-subtitle {
        font-size: 13px !important;
    }

    body.hefesto-login-body .hf-hero-copy h2 {
        font-size: clamp(32px, 3.4vw, 50px) !important;
    }

    body.hefesto-login-body .hf-hero-copy p {
        font-size: 14px !important;
    }

    body.hefesto-login-body .hf-kpi-card {
        bottom: 162px !important;
        transform: scale(.92) !important;
        transform-origin: right bottom !important;
    }

    body.hefesto-login-body .hf-feature {
        min-height: 104px !important;
        padding: 15px !important;
    }

    body.hefesto-login-body .hf-feature small {
        display: none !important;
    }

    body.hefesto-login-body .hf-login-card {
        padding: 30px !important;
        max-height: calc(100vh - 64px) !important;
    }

    body.hefesto-login-body .hf-login-title {
        margin-top: 22px !important;
        font-size: 46px !important;
    }

    body.hefesto-login-body .hf-login-copy {
        margin-bottom: 20px !important;
        font-size: 15px !important;
    }

    body.hefesto-login-body .hf-input {
        height: 54px !important;
    }

    body.hefesto-login-body .hf-submit {
        min-height: 58px !important;
    }

    body.hefesto-login-body .hf-security-row {
        margin-top: 20px !important;
        padding-top: 18px !important;
    }
}

/* Responsive */
@media (max-width: 1220px) {
    body.hefesto-login-body {
        overflow-y: auto !important;
    }

    body.hefesto-login-body .hf-main {
        grid-template-columns: 1fr !important;
    }

    body.hefesto-login-body .hf-header {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        max-width: none !important;
        padding: 28px 28px 0 !important;
    }

    body.hefesto-login-body .hf-visual {
        min-height: 720px !important;
        height: auto !important;
        padding-top: 52px !important;
    }

    body.hefesto-login-body .hf-login-card {
        margin: 42px auto 72px !important;
    }
}

@media (max-width: 760px) {
    body.hefesto-login-body .hf-visual {
        padding: 32px 22px !important;
    }

    body.hefesto-login-body .hf-feature-grid,
    body.hefesto-login-body .hf-security-row {
        grid-template-columns: 1fr !important;
    }

    body.hefesto-login-body .hf-kpi-card {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        margin: 22px 0 0 !important;
        transform: none !important;
    }

    body.hefesto-login-body .hf-login-card {
        width: calc(100% - 36px) !important;
        padding: 28px !important;
        border-radius: 26px !important;
    }

    body.hefesto-login-body .hf-login-title {
        font-size: 38px !important;
    }
}

/* === HEFESTO LOGIN VISUAL FIX V2 END === */