.loader {
    width: 2em;
    aspect-ratio: 1;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    animation: spin 750ms linear infinite;

    border: 0.344em solid;
    border-color: var(--text-gray-500) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1)
        var(--text-gray-500);
}

.loader::before,
.loader::after {
    content: "";
    position: absolute;
    width: 0.344em;
    aspect-ratio: 1;
    border-radius: 50%;
}

.loader::before {
    top: 0;
    right: 0;
}

.loader::after {
    bottom: 0;
    left: 0;
}

@keyframes spin {
    0% {
        rotate: 0deg;
    }
    100% {
        rotate: 360deg;
    }
}
