﻿html, body {
    height: 100%;
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #eef2f7;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

form {
    height: 100%;
    margin: 0;
}

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
    background: #e9eff5;
}

/* =========================
   BACKGROUNDS
   ========================= */
.login-background-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.login-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
}

#bg1 {
    opacity: 1;
}

#bg2 {
    opacity: 0;
}

/* Overlay solo lado izquierdo */
.login-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 430px);
    height: 100%;
    background: linear-gradient(90deg, rgba(20, 42, 68, 0.42) 0%, rgba(20, 42, 68, 0.25) 32%, rgba(20, 42, 68, 0.12) 65%, rgba(20, 42, 68, 0.02) 100%);
    z-index: 2;
    pointer-events: none;
}

/* =========================
   HERO IZQUIERDO
   ========================= */
.login-hero {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 56px 52px;
    color: #fff;
}

.login-hero-content {
    max-width: 580px;
}

.login-brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-bottom: 28px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

    .login-brand-chip img {
        height: 22px;
        width: auto;
        display: block;
    }

    .login-brand-chip span {
        line-height: 1;
    }


.login-brand-chip2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-right: 28px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

    .login-brand-chip2 img {
        height: 50px;
        width: 50px;
        display: block;
    }

    .login-brand-chip2 span {
        line-height: 1;
    }


.login-hero h1 {
    margin: 0 0 18px 0;
    font-size: 62px;
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -1.8px;
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(0,0,0,.18);
}

.login-hero p {
    margin: 0;
    max-width: 520px;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255,255,255,.95);
    text-shadow: 0 1px 12px rgba(0,0,0,.18);
}

/* =========================
   PANEL DERECHO
   ========================= */
.login-panel {
    position: relative;
    z-index: 4;
    width: 430px;
    min-width: 430px;
    height: 100vh;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 1px solid rgba(22, 52, 93, .08);
    box-shadow: -10px 0 35px rgba(23, 52, 93, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 34px;
}

.login-panel-inner {
    width: 100%;
    max-width: 300px;
}

.login-back-link {
    margin-bottom: 28px;
}

    .login-back-link a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #6b86a2;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: color .18s ease;
    }

        .login-back-link a:hover {
            color: #1c4f91;
            text-decoration: none;
        }

    .login-back-link i {
        font-size: 18px;
        line-height: 1;
    }

.login-panel-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.login-panel-brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f6f8fc 0%, #eef3f8 100%);
    box-shadow: 0 8px 18px rgba(22, 52, 93, .06);
    position: relative;
}

.login-panel-brand-text {
    min-width: 0;
}

.login-panel-brand-name {
    color: #173f77;
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.7px;
    text-transform: lowercase;
}

.login-panel-brand-sub {
    margin-top: 6px;
    color: #8ba0b6;
    font-size: 14px;
    line-height: 1.3;
}

.login-panel-copy {
    margin-bottom: 30px;
}

    .login-panel-copy h2 {
        margin: 0 0 10px 0;
        color: #29a1ef;
        font-size: 24px;
        font-weight: 300;
        line-height: 1.15;
    }

    .login-panel-copy p {
        margin: 0;
        color: #6c7684;
        font-size: 14px;
        line-height: 1.5;
    }

/* =========================
   LOGIN CONTROL
   ========================= */
.slx-login-control {
    display: block;
    width: 100%;
}

.slx-login-form {
    width: 100%;
}

.slx-form-group {
    margin-bottom: 16px;
    position: relative;
}

.slx-label {
    display: block;
    margin-bottom: 7px;
    color: #516272;
    font-size: 14px;
    font-weight: 600;
}

.slx-input {
    width: 100%;
    height: 50px;
    border: 1px solid #bfd1e5;
    border-radius: 8px;
    background: #fff;
    color: #29435f;
    font-size: 15px;
    padding: 0 15px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

    .slx-input::placeholder {
        color: #9aa8b7;
    }

    .slx-input:focus {
        border-color: #6ca7e6;
        box-shadow: 0 0 0 3px rgba(41, 161, 239, .10);
        background: #fff;
    }

.slx-password-wrap {
    position: relative;
}

.slx-input-password {
    padding-right: 46px;
}

.slx-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6c87a4;
    cursor: pointer;
    width: 28px;
    height: 28px;
    padding: 0;
    outline: none;
}

    .slx-password-toggle i {
        font-size: 20px;
        line-height: 1;
    }

.slx-login-actions {
    margin-top: 10px;
}

.slx-login-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 8px;
    background: #dfe6ee;
    color: #6b7f96;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: -0.2px;
    cursor: pointer;
    transition: all .18s ease;
}

    .slx-login-btn:hover {
        background: rgba(20, 42, 68, 0.42);
        color: #4f6480;
    }

    .slx-login-btn:active {
        transform: translateY(1px);
    }

.slx-login-links {
    margin-top: 16px;
    text-align: left;
}

    .slx-login-links a {
        color: #4f6f93;
        font-size: 14px;
        text-decoration: underline;
    }

        .slx-login-links a:hover {
            color: #1c4f91;
        }

.slx-validator {
    position: absolute;
    right: 10px;
    top: 39px;
    color: #d74d5c;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.slx-validation-summary {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff2f4;
    border: 1px solid #ffd3d9;
    color: #b4434f;
    font-size: 13px;
    line-height: 1.45;
}

    .slx-validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

.slx-login-form span[style*="color:Red"],
.slx-login-form span[style*="color:red"] {
    display: block;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff2f4 !important;
    border: 1px solid #ffd3d9;
    color: #b4434f !important;
    font-size: 13px;
    line-height: 1.45;
}

/* =========================
   TABLET
   ========================= */
@media (max-width: 1200px) {
    .login-hero {
        padding: 42px 36px;
    }

        .login-hero h1 {
            font-size: 54px;
        }

        .login-hero p {
            font-size: 17px;
            max-width: 480px;
        }

    .login-panel {
        width: 400px;
        min-width: 400px;
    }

    .login-hero-overlay {
        width: calc(100% - 400px);
    }
}

/* =========================
   MOBILE / TABLET SMALL
   ========================= */
@media (max-width: 991px) {
    html, body {
        overflow: auto;
        background: #ffffff;
    }

    .login-page {
        min-height: 100vh;
        display: block;
        background: #ffffff;
    }

    .login-background-wrap {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 300px;
        z-index: 1;
    }

    .login-background {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 300px;
        bottom: auto;
        background-position: center center;
    }

    .login-hero-overlay {
        width: 100%;
        height: 300px;
        background: linear-gradient(180deg, rgba(20, 42, 68, 0.42) 0%, rgba(20, 42, 68, 0.22) 60%, rgba(20, 42, 68, 0.08) 100%);
    }

    .login-hero {
        min-height: 300px;
        padding: 24px 22px 22px;
        align-items: flex-start;
    }

    .login-hero-content {
        max-width: 100%;
    }

    .login-brand-chip {
        margin-bottom: 20px;
        padding: 10px 15px;
        font-size: 14px;
    }

        .login-brand-chip img {
            height: 20px;
        }

    .login-hero h1 {
        font-size: 38px;
        line-height: 1.02;
        letter-spacing: -1px;
        margin-bottom: 14px;
    }

    .login-hero p {
        font-size: 15px;
        line-height: 1.55;
        max-width: 100%;
    }

    .login-panel {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: calc(100vh - 240px);
        box-shadow: none;
        border-left: none;
        padding: 22px 18px 34px;
        background: #ffffff;
        display: block;
    }

    .login-panel-inner {
        max-width: 440px;
        margin: 0 auto;
        padding-top: 8px;
    }

    .login-back-link {
        margin-bottom: 20px;
    }

    .login-panel-brand {
        margin-bottom: 20px;
    }

    .login-panel-brand-name {
        font-size: 28px;
    }

    .login-panel-copy {
        margin-bottom: 24px;
    }

        .login-panel-copy h2 {
            font-size: 22px;
        }

    .slx-login-btn {
        height: 50px;
        font-size: 17px;
    }
}

/* =========================
   MOBILE SMALL
   ========================= */
@media (max-width: 576px) {
    .login-background-wrap {
        height: 260px;
    }

    .login-background {
        height: 260px;
    }

    .login-hero-overlay {
        height: 260px;
    }

    .login-hero {
        min-height: 260px;
        padding: 20px 16px 16px;
    }

    .login-brand-chip {
        margin-bottom: 16px;
    }

    .login-hero h1 {
        font-size: 32px;
    }

    .login-hero p {
        font-size: 14px;
        line-height: 1.5;
    }

    .login-panel {
        padding: 18px 16px 28px;
    }

    .login-panel-inner {
        max-width: 100%;
    }

    .login-panel-brand-mark {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .login-panel-brand-name {
        font-size: 24px;
    }

    .login-panel-brand-sub {
        font-size: 13px;
    }

    .login-panel-copy h2 {
        font-size: 20px;
    }

    .login-panel-copy p {
        font-size: 13px;
    }

    .slx-input {
        height: 48px;
        font-size: 14px;
    }

    .slx-login-btn {
        height: 48px;
        font-size: 16px;
    }

    .slx-validator {
        top: 38px;
    }
}
