* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #071426,
            #0b2345
        );

    color: #172033;
}


.login-container {

    width: 100%;

    padding: 24px;

    display: flex;
    justify-content: center;
}


.login-card {

    width: 100%;
    max-width: 410px;

    background: #ffffff;

    border-radius: 22px;

    padding:
        38px
        34px;

    box-shadow:
        0 25px 70px
        rgba(
            0,
            0,
            0,
            0.30
        );
}


.brand {

    text-align: center;

    margin-bottom: 30px;
}


.logo-nexo {

    width: 68px;
    height: 68px;

    margin:
        0 auto
        12px;

    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 42px;
    font-weight: 800;

    color: white;

    background:
        linear-gradient(
            135deg,
            #0066ff,
            #00b4ff
        );
}


.brand h1 {

    font-size: 34px;

    color: #11233e;

    margin-bottom: 5px;
}


.brand p {

    font-size: 14px;

    color: #6c788d;
}


.form-group {

    margin-bottom: 18px;
}


.form-group label {

    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 600;

    color: #26364d;
}


.form-group input {

    width: 100%;

    height: 48px;

    padding:
        0
        14px;

    border:
        1px solid #dbe2eb;

    border-radius: 10px;

    outline: none;

    font-size: 15px;

    transition:
        border-color .2s,
        box-shadow .2s;
}


.form-group input:focus {

    border-color: #1976ff;

    box-shadow:
        0 0 0 3px
        rgba(
            25,
            118,
            255,
            0.12
        );
}


.btn-login {

    width: 100%;

    height: 50px;

    border: none;

    border-radius: 11px;

    cursor: pointer;

    font-size: 16px;
    font-weight: 700;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #005eff,
            #008cff
        );

    transition:
        transform .15s,
        box-shadow .15s;
}


.btn-login:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 10px 25px
        rgba(
            0,
            102,
            255,
            0.25
        );
}


.alert-error {

    padding: 12px;

    margin-bottom: 18px;

    border-radius: 9px;

    background: #fff0f0;

    color: #c52b2b;

    font-size: 14px;
}


.footer-login {

    margin-top: 28px;

    text-align: center;

    font-size: 12px;

    color: #9aa4b4;
}

/* =========================================================
   INPUTS CON ICONOS
   ========================================================= */

.input-container {

    position: relative;

    display: flex;
    align-items: center;
}


.input-container input {

    width: 100%;

    height: 50px;

    padding:
        0
        48px;

    border:
        1px solid #dbe2eb;

    border-radius: 11px;

    outline: none;

    font-size: 15px;

    color: #172033;

    background: #ffffff;

    transition:
        border-color .2s,
        box-shadow .2s;
}


.input-container input::placeholder {

    color: #a2acbb;
}


.input-container input:focus {

    border-color: #147cff;

    box-shadow:
        0 0 0 3px
        rgba(
            20,
            124,
            255,
            0.12
        );
}


/* =========================================================
   ICONO IZQUIERDO
   ========================================================= */

.input-icon {

    position: absolute;

    left: 15px;

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;

    z-index: 2;
}


.input-icon svg {

    width: 19px;
    height: 19px;

    fill: #7c899c;
}


/* =========================================================
   MOSTRAR / OCULTAR CONTRASEÑA
   ========================================================= */

.password-toggle {

    position: absolute;

    right: 10px;

    width: 38px;
    height: 38px;

    border: none;

    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    border-radius: 8px;
}


.password-toggle svg {

    width: 20px;
    height: 20px;

    fill: #7c899c;

    transition:
        fill .2s;
}


.password-toggle:hover svg,
.password-toggle.active svg {

    fill: #147cff;
}


/* =========================================================
   RECUPERAR CONTRASEÑA
   ========================================================= */

.forgot-container {

    display: flex;

    justify-content: flex-end;

    margin-top: -7px;
    margin-bottom: 22px;
}


.forgot-container a {

    color: #147cff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}


.forgot-container a:hover {

    text-decoration: underline;
}

.alert-success {

    padding: 12px;

    margin-bottom: 18px;

    border-radius: 9px;

    background: #edf9f1;

    color: #168447;

    font-size: 14px;
}


.back-login {

    margin-top: 24px;

    text-align: center;
}


.back-login a {

    color: #147cff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}


.dev-reset {

    margin-top: 20px;

    padding: 14px;

    border-radius: 10px;

    background: #f4f8ff;

    border:
        1px dashed #8ab7ff;

    font-size: 13px;

    color: #3e506b;
}


.dev-reset p {

    margin:
        7px
        0;
}


.dev-reset a {

    color: #006cff;

    font-weight: 700;

    text-decoration: none;
}

/* =========================================================
   SELECCIÓN EMPRESA / SUCURSAL
   ========================================================= */

.empresa-list {

    display: flex;
    flex-direction: column;

    gap: 12px;
}


.empresa-list form {

    width: 100%;
}


.empresa-card {

    width: 100%;

    min-height: 72px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 12px 14px;

    border:
        1px solid #e2e8f0;

    border-radius: 13px;

    background: #ffffff;

    cursor: pointer;

    text-align: left;

    transition:
        border-color .2s,
        background .2s,
        transform .15s,
        box-shadow .2s;
}


.empresa-card:hover {

    border-color: #147cff;

    background: #f7faff;

    transform:
        translateY(-1px);

    box-shadow:
        0 8px 24px
        rgba(
            25,
            118,
            255,
            0.10
        );
}


.empresa-icon {

    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    color: #ffffff;

    font-weight: 800;
    font-size: 20px;

    background:
        linear-gradient(
            135deg,
            #0066ff,
            #00a8ff
        );
}


.empresa-info {

    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 4px;
}


.empresa-info strong {

    font-size: 15px;

    color: #172033;
}


.empresa-info span {

    font-size: 12px;

    color: #8490a3;
}


.empresa-arrow {

    font-size: 28px;

    color: #a1adbd;

    line-height: 1;
}