/* ==========================================================
   LUBRICENTRO TORRES — Login institucional
   Compatible con ASP.NET WebForms / .NET Framework
   ========================================================== */

:root {
    --sl-navy: #151515;
    --sl-navy-2: #272A2F;
    --sl-blue: #DF0112;
    --sl-blue-2: #B00010;
    --sl-cyan: #BFC4CB;
    --sl-green: #DF0112;
    --sl-green-dark: #B00010;
    --sl-lime: #DF0112;
    --sl-lime-soft: #FDECEF;
    --sl-ink: #151515;
    --sl-muted: #676C72;
    --sl-line: #DDE0E4;
    --sl-soft: #F5F6F8;
    --sl-white: #FFFFFF;
    --sl-danger: #C9363E;
    --sl-danger-soft: #FFF0F1;
    --sl-shadow: 0 30px 90px rgba(21, 21, 21, .16);
}

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

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

html {
    background: var(--sl-soft);
}

body {
    min-width: 320px;
    color: var(--sl-ink);
    background: var(--sl-soft);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button, input {
    font: inherit;
}

a {
    color: inherit;
}

svg {
    display: block;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 16px;
    left: 16px;
    padding: 11px 15px;
    border-radius: 10px;
    color: var(--sl-navy);
    background: var(--sl-white);
    box-shadow: 0 10px 30px rgba(21, 21, 21, .18);
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 58%) minmax(440px, 42%);
    overflow: hidden;
}

/* Panel institucional */
.brand-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    color: var(--sl-white);
    background:
        radial-gradient(circle at 82% 12%, rgba(223, 1, 18, .32), transparent 34%),
        radial-gradient(circle at 68% 46%, rgba(191, 196, 203, .12), transparent 30%),
        linear-gradient(140deg, #111111 0%, var(--sl-navy-2) 52%, #3A0A0E 100%);
}

.brand-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -12%;
    bottom: -33%;
    width: 62%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 86px solid rgba(223, 1, 18, .10);
}

.brand-panel__inner {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: clamp(38px, 5.2vw, 82px) clamp(42px, 6vw, 104px) clamp(34px, 4vw, 64px);
}

.brand-panel__grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .12;
    background-image:
        linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 60%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 4%, #000 60%, transparent 100%);
}

.brand-panel__orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.brand-panel__orb--one {
    width: min(48vw, 680px);
    height: min(48vw, 680px);
    right: -22%;
    top: -28%;
    background: rgba(223, 1, 18, .09);
    border: 1px solid rgba(223, 1, 18, .14);
}

.brand-panel__orb--two {
    width: min(30vw, 430px);
    height: min(30vw, 430px);
    left: -18%;
    bottom: -21%;
    background: rgba(191, 196, 203, .13);
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand-header__logo {
    width: clamp(210px, 19vw, 292px);
    height: auto;
}

.brand-header__divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, .42);
}

.brand-header__claim {
    color: #E7E7E7;
    font-size: clamp(.68rem, .8vw, .82rem);
    font-weight: 900;
    letter-spacing: .13em;
    white-space: nowrap;
}

.brand-copy {
    max-width: 760px;
    margin: auto 0;
    padding: 68px 0 44px;
}

.brand-copy__eyebrow {
    margin: 0 0 20px;
    color: var(--sl-lime);
    font-size: clamp(.72rem, .8vw, .86rem);
    font-weight: 900;
    letter-spacing: .18em;
}

.brand-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(3.25rem, 5.2vw, 6.2rem);
    font-weight: 850;
    letter-spacing: -.055em;
    line-height: .98;
}

.brand-copy h1 span {
    display: block;
    color: var(--sl-lime);
}

.brand-copy__lead {
    max-width: 720px;
    margin: 32px 0 0;
    color: #E2E2E2;
    font-size: clamp(1rem, 1.35vw, 1.3rem);
    line-height: 1.75;
}

.brand-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.brand-feature {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 94px;
    padding: 17px 18px;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
}

.brand-feature__icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--sl-lime);
    background: rgba(223, 1, 18, .14);
}

.brand-feature__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-feature strong,
.brand-feature small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-feature strong {
    color: var(--sl-white);
    font-size: clamp(.82rem, .93vw, 1rem);
    white-space: nowrap;
}

.brand-feature small {
    margin-top: 4px;
    color: #C8C8C8;
    font-size: clamp(.69rem, .78vw, .81rem);
    white-space: nowrap;
}

/* Panel de acceso */
.access-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px clamp(26px, 4vw, 70px) 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(223, 1, 18, .055), transparent 28%),
        var(--sl-soft);
}

.access-card {
    width: min(100%, 565px);
    padding: clamp(34px, 3.3vw, 52px) clamp(30px, 3.4vw, 54px) 34px;
    border: 1px solid #DFE1E4;
    border-radius: 30px;
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--sl-shadow);
}

.access-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: clamp(46px, 5.2vh, 68px);
}

.access-brand__mark {
    width: 56px;
    height: 56px;
}

.access-brand strong,
.access-brand span {
    display: block;
}

.access-brand strong {
    color: var(--sl-navy);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -.02em;
}

.access-brand span {
    margin-top: 2px;
    color: var(--sl-muted);
    font-size: .82rem;
}

.login-heading__eyebrow {
    margin: 0 0 16px;
    color: var(--sl-blue);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .18em;
}

.login-heading h2 {
    margin: 0;
    color: var(--sl-navy);
    font-size: clamp(2rem, 2.65vw, 2.7rem);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.login-heading > p:last-child {
    margin: 16px 0 34px;
    color: var(--sl-muted);
    font-size: .98rem;
}

.field-group {
    margin-top: 21px;
}

.field-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--sl-navy);
    font-size: .85rem;
    font-weight: 850;
}

.input-shell {
    position: relative;
}

.input-shell__icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 18px;
    color: #7187A5;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-shell__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.smart-input {
    width: 100%;
    height: 60px;
    padding: 0 18px 0 54px;
    border: 1px solid #D7E2F1;
    border-radius: 15px;
    outline: none;
    color: var(--sl-ink);
    background: #EEF4FF;
    font-size: .96rem;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.smart-input--password {
    padding-right: 58px;
}

.smart-input::placeholder {
    color: #8798AE;
    opacity: 1;
}

.smart-input:hover {
    border-color: #B6C8E2;
}

.smart-input:focus {
    border-color: var(--sl-blue);
    background: var(--sl-white);
    box-shadow: 0 0 0 4px rgba(22, 78, 246, .12);
}

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

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--sl-blue);
    background: rgba(22, 78, 246, .08);
    outline: none;
}

.password-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle .eye-closed,
.password-toggle.is-visible .eye-open {
    display: none;
}

.password-toggle.is-visible .eye-closed {
    display: block;
}

.validation-message,
.failure-message {
    color: var(--sl-danger);
    font-size: .78rem;
    font-weight: 700;
}

.validation-message {
    display: block;
    margin-top: 6px;
}

.failure-message {
    display: block;
    margin: -13px 0 20px;
    padding: 12px 14px;
    border: 1px solid #FFD2D5;
    border-radius: 11px;
    background: var(--sl-danger-soft);
}

.failure-message:empty {
    display: none;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 2px 26px;
}

.remember-check {
    color: var(--sl-muted);
    font-size: .82rem;
}

.remember-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.remember-check label {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding-left: 31px;
    cursor: pointer;
}

.remember-check label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 19px;
    height: 19px;
    border: 1.5px solid #AEBBCB;
    border-radius: 5px;
    background: var(--sl-white);
    transform: translateY(-50%);
    transition: .15s ease;
}

.remember-check label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    width: 7px;
    height: 4px;
    border-left: 2px solid var(--sl-white);
    border-bottom: 2px solid var(--sl-white);
    opacity: 0;
    transform: translateY(-65%) rotate(-45deg);
}

.remember-check input:checked + label::before {
    border-color: var(--sl-green);
    background: var(--sl-green);
}

.remember-check input:checked + label::after {
    opacity: 1;
}

.remember-check input:focus-visible + label::before {
    box-shadow: 0 0 0 4px rgba(22, 78, 246, .12);
}

.recovery-link {
    flex: 0 0 auto;
    color: var(--sl-blue);
    font-size: .83rem;
    font-weight: 850;
    text-decoration: none;
}

.recovery-link:hover {
    color: var(--sl-blue-2);
    text-decoration: underline;
}

.login-button {
    width: 100%;
    min-height: 62px;
    padding: 0 22px;
    border: 0;
    border-radius: 15px;
    color: var(--sl-white);
    background: linear-gradient(105deg, var(--sl-blue-2), var(--sl-blue) 62%, #197EC3 100%);
    box-shadow: 0 15px 32px rgba(22, 78, 246, .24);
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 19px 36px rgba(22, 78, 246, .30);
    filter: saturate(1.08);
}

.login-button:focus-visible {
    outline: 3px solid rgba(22, 78, 246, .24);
    outline-offset: 3px;
}

.login-button:active {
    transform: translateY(0);
}

body.is-submitting .login-button {
    pointer-events: none;
    opacity: .78;
}

.login-divider {
    height: 1px;
    margin: 34px 0 24px;
    background: var(--sl-line);
}

.access-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--sl-muted);
    font-size: .77rem;
}

.access-footer a {
    color: var(--sl-blue);
    font-weight: 850;
    text-decoration: none;
}

.access-footer a:hover {
    text-decoration: underline;
}

.access-footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.access-footer svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--sl-green);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.access-panel__legal {
    margin: 20px 0 0;
    color: #8290A3;
    font-size: .72rem;
    text-align: center;
}

@media (max-width: 1240px) {
    .login-shell {
        grid-template-columns: minmax(0, 54%) minmax(420px, 46%);
    }

    .brand-panel__inner {
        padding-left: 58px;
        padding-right: 58px;
    }

    .brand-header__claim,
    .brand-header__divider {
        display: none;
    }

    .brand-feature {
        padding: 16px;
    }

    .brand-feature__icon {
        display: none;
    }
}

@media (max-width: 980px) {
    .login-shell {
        display: block;
        overflow: visible;
    }

    .brand-panel,
    .brand-panel__inner {
        min-height: auto;
    }

    .brand-panel__inner {
        padding: 34px 34px 120px;
    }

    .brand-copy {
        max-width: 680px;
        padding: 54px 0 0;
    }

    .brand-copy h1 {
        font-size: clamp(3rem, 9vw, 5.3rem);
    }

    .brand-copy__lead {
        margin-top: 24px;
    }

    .brand-features {
        display: none;
    }

    .access-panel {
        min-height: auto;
        margin-top: -78px;
        padding: 0 24px 28px;
        background: transparent;
    }

    .access-card {
        width: min(100%, 620px);
    }
}

@media (max-width: 640px) {
    .brand-panel__inner {
        padding: 26px 22px 98px;
    }

    .brand-header__logo {
        width: 195px;
    }

    .brand-copy {
        padding-top: 42px;
    }

    .brand-copy__eyebrow {
        margin-bottom: 14px;
        font-size: .66rem;
    }

    .brand-copy h1 {
        font-size: clamp(2.65rem, 13vw, 4.1rem);
    }

    .brand-copy__lead {
        font-size: .96rem;
        line-height: 1.65;
    }

    .access-panel {
        padding-inline: 14px;
    }

    .access-card {
        padding: 28px 22px 26px;
        border-radius: 23px;
    }

    .access-brand {
        margin-bottom: 38px;
    }

    .access-brand__mark {
        width: 50px;
        height: 50px;
    }

    .login-heading h2 {
        font-size: 2rem;
    }

    .login-heading > p:last-child {
        margin-bottom: 28px;
        font-size: .91rem;
    }

    .smart-input {
        height: 57px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .login-button {
        min-height: 58px;
    }

    .access-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-height: 760px) and (min-width: 981px) {
    .brand-panel__inner {
        padding-top: 34px;
        padding-bottom: 28px;
    }

    .brand-copy {
        padding-top: 35px;
        padding-bottom: 26px;
    }

    .brand-copy h1 {
        font-size: clamp(3.1rem, 4.6vw, 5.25rem);
    }

    .brand-feature {
        min-height: 78px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .access-panel {
        padding-top: 22px;
        padding-bottom: 18px;
    }

    .access-card {
        padding-top: 30px;
        padding-bottom: 26px;
    }

    .access-brand {
        margin-bottom: 32px;
    }

    .login-heading > p:last-child {
        margin-bottom: 24px;
    }

    .field-group {
        margin-top: 16px;
    }

    .smart-input {
        height: 54px;
    }

    .login-options {
        margin-top: 18px;
        margin-bottom: 19px;
    }

    .login-button {
        min-height: 56px;
    }

    .login-divider {
        margin-top: 25px;
        margin-bottom: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* Torres brand refinements */
.brand-copy h1 span { color: #FF2434; }
.brand-copy__eyebrow { color: #FF5360; }
.brand-feature__icon { color: #FF5360; background: rgba(223,1,18,.16); }
.access-brand__mark { object-fit: contain; border-radius: 13px; }
.access-panel__powered { color: #8D9298; }
.login-button { background: #DF0112 !important; border-color: #DF0112 !important; }
.login-button:hover, .login-button:focus { background: #B00010 !important; border-color: #B00010 !important; }
.recovery-link, .access-footer a { color: #B00010; }
.smart-input:focus { border-color: rgba(223,1,18,.65) !important; box-shadow: 0 0 0 4px rgba(223,1,18,.09) !important; }
