/* Global ACCB page loader */

.app-loader {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(14, 36, 58, 0.62);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.app-loader.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.app-loader__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-width: 230px;
    padding: 32px 38px 26px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dbe4ec;
    box-shadow: 0 22px 48px rgba(10, 35, 58, 0.28);
    transform: translateY(6px) scale(0.98);
    transition: transform 0.18s ease;
}

.app-loader.is-visible .app-loader__panel {
    transform: translateY(0) scale(1);
}

.app-loader__visual {
    position: relative;
    width: 92px;
    height: 92px;
    flex-shrink: 0;
}

.app-loader__spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 92px;
    height: 92px;
}

.app-loader__spinner-track,
.app-loader__spinner-head {
    position: absolute;
    top: 0;
    left: 0;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    box-sizing: border-box;
}

.app-loader__spinner-track {
    border: 4px solid #e7eef5;
}

.app-loader__spinner-head {
    border: 4px solid transparent;
    border-top-color: #1e88e5;
    border-right-color: #4fa3e8;
    animation: app-loader-spin 0.85s linear infinite;
}

.app-loader__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    object-fit: contain;
    z-index: 2;
}

.app-loader__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.app-loader__text {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e3a5f;
    letter-spacing: 0.01em;
    text-align: center;
}

.app-loader__bar {
    position: relative;
    width: 120px;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eef5;
}

.app-loader__bar span {
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #356580, #1e88e5);
    animation: app-loader-bar 1.1s ease-in-out infinite;
}

body.app-loading {
    cursor: progress;
}

body.app-loading .login-submit,
body.app-loading .btn-search,
body.app-loading button[type="submit"],
body.app-loading input[type="submit"] {
    pointer-events: none;
    opacity: 0.85;
}

@keyframes app-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes app-loader-bar {
    0% {
        left: -40%;
    }
    100% {
        left: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-loader,
    .app-loader__panel {
        transition: none;
    }

    .app-loader__spinner-head,
    .app-loader__bar span {
        animation-duration: 1.8s;
    }
}
