﻿:root {
    --azul: #0540D8;
    --azul-h: #0434AC;
    --azul-lt: #5B8CFF;
    --verde: #22CE01;
    --verde-br: #2FDD02;
    --ink: #060E2E;
    --paper: #EDEFF5;
    --white: #fff;
    --line: #D3D8E6;
    --mut: #5A6480;
    --err: #C62828;
    --disp: 'Archivo', Arial, sans-serif;
    --body: 'IBM Plex Sans', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    height: 100%
}

body {
    font-family: var(--body);
    background: var(--white);
    color: var(--ink);
    -webkit-font-smoothing: antialiased
}

.wrap {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    min-height: 100vh
}

/* ---------- panel de marca ---------- */
.brand {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    padding: clamp(40px, 5vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden
}

    .brand .bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%
    }

        .brand .bg path {
            fill: none;
            stroke: var(--azul-lt);
            stroke-width: 1.2;
            opacity: .12
        }

    .brand > *:not(.bg) {
        position: relative;
        z-index: 1
    }

.kicker {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--verde-br);
    display: flex;
    align-items: center;
    gap: 13px
}

    .kicker::after {
        content: '';
        flex: 1;
        max-width: 70px;
        height: 1px;
        background: currentColor;
        opacity: .4
    }

.brand h1 {
    font-family: var(--disp);
    font-weight: 800;
    font-size: clamp(34px, 3.9vw, 54px);
    line-height: 1;
    letter-spacing: -.035em;
    margin-top: 20px
}

.brand p {
    font-size: clamp(14px, 1.1vw, 17px);
    line-height: 1.6;
    font-weight: 300;
    color: #A2ACC9;
    max-width: 44ch;
    margin-top: 18px
}

.art {
    margin: clamp(30px, 5vh, 54px) 0 0
}

    .art svg {
        width: 100%;
        height: auto;
        display: block;
        max-width: none
    }

.brand footer {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #6E7899;
    line-height: 2;
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding-top: 22px
}

    .brand footer b {
        color: #98A3C2;
        font-weight: 400
    }

/* ---------- panel de acceso ---------- */
.login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 5vw, 64px)
}

.card-custom {
    width: 100%;
    max-width: 394px
}

    .card-custom > img {
        height: 58px;
        width: auto;
        display: block;
        margin-bottom: 44px
    }

h2 {
    font-family: var(--disp);
    font-weight: 700;
    font-size: 30px;
    letter-spacing: -.025em;
    color: var(--azul)
}

.hint {
    font-size: 14.5px;
    color: var(--mut);
    margin-top: 9px;
    font-weight: 300
}

form {
    margin-top: 34px
}

.field {
    margin-bottom: 20px
}

label {
    display: block;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mut);
    margin-bottom: 8px
}

.ctrl {
    position: relative
}

input[type=email],
input[type=password],
input[type=text] {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-family: var(--body);
    font-size: 15.5px;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 4px;
    transition: .16s;
    outline: none
}
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input::placeholder {
    color: #9AA3BC
}

input:hover {
    border-color: #AAB3C9
}

input:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(5, 64, 216, .14)
}

.peek {
    position: absolute;
    right: 6px;
    top: 6px;
    height: 40px;
    width: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 3px
}

    .peek:hover {
        background: #F1F3F8
    }

    .peek svg {
        width: 19px;
        height: 19px;
        stroke: var(--mut);
        fill: none;
        stroke-width: 1.6px;
        stroke-linecap: round;
        stroke-linejoin: round
    }

.row-custom {
    display: flex;
    justify-content: end;
    align-items: center;
    align-content: center;
    gap: 14px;
    margin: 4px 0 26px;
    flex-wrap: wrap
}

.keep {
    display: flex !important;
    align-items: center;
    gap: 9px;
    font-family: var(--body);
    font-size: 13.5px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--mut);
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
    white-space: nowrap;
    line-height: 1;
}

    .keep input {
        width: 17px;
        height: 17px;
        accent-color: var(--azul);
        cursor: pointer;
        vertical-align: middle;
        margin: 0;
        flex-shrink: 0;
    }

.forgot {
    font-size: 13.5px;
    color: var(--azul);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: .16s
}

    .forgot:hover {
        border-color: var(--azul)
    }

button.go {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 4px;
    background: var(--azul);
    color: #fff;
    font-family: var(--body);
    font-size: 15.5px;
    font-weight: 500;
    letter-spacing: .01em;
    cursor: pointer;
    transition: .16s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px
}

    button.go:hover {
        background: var(--azul-h)
    }

    button.go:active {
        transform: translateY(1px)
    }

    button.go:focus-visible {
        outline: 3px solid rgba(5, 64, 216, .35);
        outline-offset: 2px
    }

    button.go svg {
        width: 16px;
        height: 16px;
        stroke: #fff;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round
    }

.sep {
    margin: 32px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.65;
    color: var(--mut);
    font-weight: 300
}

    .sep a {
        color: var(--azul);
        text-decoration: none;
        border-bottom: 1px solid rgba(5, 64, 216, .3)
    }

        .sep a:hover {
            border-color: var(--azul)
        }

.ver {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9AA3BC;
    margin-top: 18px
}

@media (max-width:560px) {
    .row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px
    }

    .art svg {
        max-width: 400px;
        margin: 0 auto
    }
}

@media (max-width:900px) {
    .wrap {
        grid-template-columns: 1fr
    }

    .brand {
        padding: 36px 28px 32px
    }

        .brand h1 {
            font-size: 31px
        }

        .brand p,
        .brand footer {
            display: none
        }

    .art {
        margin: 22px 0 0
    }

    .login {
        padding: 40px 28px 56px
    }

    .card > img {
        height: 50px;
        margin-bottom: 32px
    }
}
