.kl-layout {
    --kl-navy: #051C2C;
    --kl-azul: #489FDF;
    --kl-mint: #6ECEB2;
    --kl-linea: #E3E8EC;
    --kl-texto: #051C2C;
    --kl-suave: #5E6B74;
    --kl-grad: linear-gradient(90deg, var(--kl-mint), var(--kl-azul));

    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    font-family: var(--gears-ref-typeface-plain, Roboto), system-ui, sans-serif;
    color: var(--kl-texto);
    background: var(--kl-navy);
    -webkit-font-smoothing: antialiased;
}

.kl-layout *,
.kl-layout *::before,
.kl-layout *::after {
    box-sizing: border-box;
}

.kl-layout h1,
.kl-layout h2,
.kl-layout p {
    margin: 0;
    padding: 0;
}

.kl-brand {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    background: var(--kl-navy) url(../../img/login/foto-depto.jpg) center 38%/cover no-repeat;
}

.kl-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,28,44,.92) 0%, rgba(5,28,44,.55) 30%, rgba(5,28,44,.35) 48%, rgba(5,28,44,.88) 72%, rgba(5,28,44,.98) 100%);
}

.kl-brand > * {
    position: relative;
}

.kl-logo {
    height: 56px;
    width: auto;
    display: block;
    align-self: flex-start;
}

.kl-hero {
    margin-top: auto;
}

.kl-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--kl-mint);
}

.kl-kicker i {
    width: 28px;
    height: 2px;
    background: var(--kl-grad);
    border-radius: 2px;
}

.kl-hero h1 {
    margin-top: 16px;
    font-family: inherit;
    font-size: 52px;
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -.02em;
    color: #fff;
}

.kl-hero h1 span {
    background: var(--kl-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.kl-benefits {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 580px;
}

.kl-b {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(5,28,44,.55);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.kl-ic {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(110,206,178,.14);
    border: 1px solid rgba(110,206,178,.28);
}

.kl-ic svg {
    width: 18px;
    height: 18px;
    stroke: var(--kl-mint);
}

.kl-b.kl-wide {
    grid-column: 1/-1;
}

.kl-b p {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
    color: #E6EEF3;
}

.kl-stats {
    margin-top: 30px;
    display: flex;
    gap: 36px;
}

.kl-stats b {
    display: block;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.01em;
}

.kl-stats small {
    display: block;
    font-size: 13px;
    color: #A9BAC6;
    margin-top: 2px;
}

.kl-sig {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: var(--kl-grad);
}

.kl-access {
    background: #F6F8FA;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 32px 72px;
    position: relative;
}

.kl-card {
    width: 100%;
    max-width: 420px;
}

.kl-login h2 {
    font-family: inherit;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--kl-texto);
}

.kl-sub {
    margin-top: 8px !important;
    color: var(--kl-suave);
    font-size: 15px;
    line-height: 1.45;
}

.kl-sub b {
    color: var(--kl-texto);
}

.kl-form {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.kl-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.kl-login label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #33434E;
    margin: 0 0 8px;
}

.kl-login a {
    color: var(--kl-azul);
    font-weight: 600;
    text-decoration: none;
}

.kl-login a:hover {
    text-decoration: underline;
}

.kl-row a {
    font-size: 13px;
}

.kl-field {
    position: relative;
}

.kl-lead {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: #8A98A3;
    pointer-events: none;
}

.kl-field input {
    width: 100%;
    height: 52px;
    margin: 0;
    border-radius: 12px;
    border: 1px solid var(--kl-linea);
    background: #fff;
    padding: 0 46px 0 44px;
    font: inherit;
    font-size: 15px;
    color: var(--kl-texto);
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}

.kl-field input::placeholder {
    color: #9AA7B1;
}

.kl-field input:focus {
    outline: none;
    background: #fff;
    border-color: var(--kl-azul);
    box-shadow: 0 0 0 4px rgba(72,159,223,.15);
}

.kl-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.kl-eye svg {
    width: 18px;
    height: 18px;
    stroke: #8A98A3;
}

.kl-eye:hover {
    background: #EEF2F5;
}

.kl-btn {
    margin: 6px 0 0;
    height: 54px;
    width: 100%;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--kl-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s, opacity .15s;
}

.kl-btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--kl-grad);
}

.kl-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(5,28,44,.25);
}

.kl-btn:disabled {
    cursor: progress;
    opacity: .85;
}

.kl-btn svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.kl-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    animation: kl-spin .8s linear infinite;
}

@keyframes kl-spin {
    to { transform: rotate(360deg); }
}

.kl-options {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kl-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 16px;
    text-align: left;
    font: inherit;
    color: var(--kl-texto);
    background: #fff;
    border: 1px solid var(--kl-linea);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.kl-option:hover {
    border-color: var(--kl-azul);
    box-shadow: 0 0 0 4px rgba(72,159,223,.10);
}

.kl-option-ic {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(72,159,223,.10);
}

.kl-option-ic svg {
    width: 18px;
    height: 18px;
    stroke: var(--kl-azul);
}

.kl-option b {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.kl-option small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--kl-suave);
}

.kl-back {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
}

.kl-error {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #FDECEC;
    border: 1px solid #F5C2C2;
    color: #8A1F1F;
    font-size: 14px;
    line-height: 1.4;
}

.kl-error svg {
    flex: none;
    width: 20px;
    height: 20px;
    stroke: #C0392B;
}

.kl-error b {
    display: block;
}

.kl-help {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--kl-linea);
    font-size: 14px;
    line-height: 1.6;
    color: var(--kl-suave);
}

.kl-foot {
    position: absolute;
    bottom: 24px;
    left: 32px;
    right: 32px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #8A98A3;
}

.kl-foot a {
    color: var(--kl-suave);
    text-decoration: none;
}

.kl-foot a:hover {
    color: var(--kl-azul);
}

/* Checkpoint */
.kl-checkpoint {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 24px 16px;
    background: #051C2C;
    color: #fff;
    font-family: var(--gears-ref-typeface-plain, Roboto), system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.kl-checkpoint-logo {
    height: 56px;
    width: auto;
}

.kl-checkpoint-bar {
    width: 220px;
    max-width: 100%;
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,.12);
    overflow: hidden;
}

.kl-checkpoint-bar i {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #6ECEB2, #489FDF);
    animation: kl-progreso 1.1s ease-in-out infinite;
}

@keyframes kl-progreso {
    from { transform: translateX(-100%); }
    to { transform: translateX(250%); }
}

.kl-checkpoint-msg {
    margin: 0;
    font-size: 15px;
    color: #A9BAC6;
    text-align: center;
}

.kl-checkpoint-salir {
    position: absolute;
    bottom: 24px;
    font-size: 13px;
    color: #8A98A3;
    text-decoration: none;
}

.kl-checkpoint-salir:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 960px) {
    .kl-layout {
        grid-template-columns: 1fr;
    }

    .kl-brand {
        padding: 28px 24px 30px;
        background-position: center 45%;
    }

    .kl-hero {
        margin-top: 90px;
    }

    .kl-hero h1 {
        font-size: 34px;
    }

    .kl-benefits,
    .kl-stats {
        display: none;
    }

    .kl-logo {
        height: 40px;
    }

    .kl-access {
        padding: 36px 20px 80px;
        justify-content: flex-start;
    }

    .kl-foot {
        left: 20px;
        right: 20px;
    }
}
