﻿.loader {
     width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite;

    position: fixed;
    z-index: 9999;
    height: 5em;
    width: 5em;
    overflow: visible !important;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

    .loader::before, .loader::after {
        content: "";
        box-sizing: border-box;
        position: absolute;
        inset: 0px;
        border-radius: 50%;
        border: 5px solid #FFF;
        animation: prixClipFix 2s linear infinite;
    }

    .loader::after {
        border-color: #FF3D00;
        animation: prixClipFix 2s linear infinite, rotate 0.5s linear infinite reverse;
        inset: 6px;
    }

@keyframes rotate {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)
    }

    25% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)
    }

    50% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)
    }

    75% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)
    }

    100% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)
    }
}

#errmsg{
    color:red;
}



/*another squre loader starts */

.wrapper_ {
    /*background-color: black;
    width: 100%;
    height: 100vh;*/
    display: flex;
    justify-content: center;
   /* align-items: center;*/
}

.squre-frame {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid;
    border-image: linear-gradient(to right, #7194d4, #042f79) 1;
    border-radius: 5px;
    animation: rotate 5s linear infinite;
}

    .squre-frame:nth-child(1) {
        animation-delay: 0s;
    }

    .squre-frame:nth-child(2) {
        animation-delay: 0.4s;
    }

    .squre-frame:nth-child(3) {
        animation-delay: 0.8s;
    }

    .squre-frame:nth-child(4) {
        animation-delay: 1.2s;
    }

    .squre-frame:nth-child(5) {
        animation-delay: 1.6s;
    }

    .squre-frame:nth-child(6) {
        animation-delay: 2s;
    }

    .squre-frame:nth-child(7) {
        animation-delay: 2.4s;
    }


@keyframes rotate {
    0% {
        transform: rotate(0deg);
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    100% {
        transform: rotate(360deg);
        opacity: 1;
    }
}
/*another squre loader end */