﻿/* Bigger screens → bigger loader */
:root {
    --size: 150px;
    --timer: 1s;
    --background: #111;
    --neon: #6861ce;
    --white: #fff;
}

@media (min-width: 768px) {
    :root {
        --size: 180px;
    }
}

@media (min-width: 1200px) {
    :root {
        --size: 220px;
    }
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 99999;
}

    #loader.hidden {
        display: none;
    }

@keyframes animate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader {
    width: var(--size);
    height: var(--size);
    position: relative; /* IMPORTANT */

    animation: animate calc(var(--timer) * 3) linear infinite;
    border: 0 solid #6861ce;
}

    .loader span {
        position: absolute;
        inset: calc(var(--size) * 0.1);
        background: #00000000;
        border-radius: 50%;
        border: 10px solid var(--background);
    }

div[class*='segment']::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient( to top, transparent, var(--neon) );
    border-top-left-radius: calc(var(--size) * 0.5);
    border-bottom-left-radius: calc(var(--size) * 0.5);
}

.segment1 {
    animation-delay: calc(var(--timer) * -0);
}

.segment2 {
    animation-delay: calc(var(--timer) * -1);
}

.segment3 {
    animation-delay: calc(var(--timer) * -2);
}

.loader i {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--size) * 0.1);
    height: calc(var(--size) * 0.1);
    background: var(--neon);
    border-radius: 50%;
    box-shadow: 0 0 calc(var(--size) * 0.1) var(--neon), 0 0 calc(var(--size) * 0.2) var(--neon), 0 0 calc(var(--size) * 0.3) var(--neon), 0 0 calc(var(--size) * 0.4) var(--neon), 0 0 calc(var(--size) * 0.5) var(--neon);
}

/* Loading Text */
#loader p {
    position: absolute;
    margin: 25px 0 0 0;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--white);
    font-weight: 700;
    text-align: center;
    padding: 0 10px;
    text-shadow: 0 0 5px var(--neon), 0 0 10px var(--white), 0 0 20px var(--neon);
    z-index: 100000;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 20px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 30px;
    transition: 0.3s;
}

    .slider::before {
        content: "";
        position: absolute;
        width: 20px;
        height: 15px;
        left: 3px;
        top: 3px;
        background-color: white;
        border-radius: 50%;
        transition: 0.3s;
    }

.switch input:checked + .slider {
    background-color: #198754;
}

    .switch input:checked + .slider::before {
        transform: translateX(24px);
    }

.auth form .auth-form-btn {
    height: auto !important;
}
#eway {
    display: contents;
}

    #eway .form-group {
        width: 100%;
    }

    #eway.hidden {
        display: none;
    }
/* Select2 + textbox same height */
.select2-container {
    width: 100% !important;
}

    .select2-container .select2-selection--single {
        height: 55px !important;
        min-height: 55px !important;
        display: flex !important;
        align-items: center !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
    }

/* Selected option */
.select2-container--default
.select2-selection--single
.select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    line-height: normal !important;
    margin: 0 !important;
}

/* Arrow */
.select2-container--default
.select2-selection--single
.select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 8px !important;
    display: flex !important;
    align-items: center !important;
}