﻿/* ============================================================
   ACCMaster Universal Preloader — Standalone CSS
   Include in <head> of any page: login, register, student panel
   ============================================================ */

#acc-preloader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.55s cubic-bezier(0.23, 1, 0.32, 1),
                visibility 0.55s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, visibility;
    transform: translateZ(0);
}

#acc-preloader.acc-loader-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Core ring container */
.acc-loader-core {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

/* Pulse rings */
.acc-pulse-ring {
    position: absolute;
    border: 2px solid #7C3AED;
    border-radius: 50%;
    opacity: 0;
    animation: accRingPulse 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    will-change: transform, opacity;
}

.acc-pulse-ring:nth-child(1) { animation-delay: 0s; }
.acc-pulse-ring:nth-child(2) { animation-delay: 0.55s; }
.acc-pulse-ring:nth-child(3) { animation-delay: 1.1s; }

/* Logo container */
.acc-loader-logo-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.18),
                0 2px 8px rgba(124, 58, 237, 0.10);
    animation: accHeartbeat 1.6s ease-in-out infinite;
    will-change: transform;
}

.acc-loader-logo-wrap img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

/* Brand text */
.acc-loader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.acc-loader-brand-name {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1;
}

.acc-loader-brand-name span {
    color: #7C3AED;
}

.acc-loader-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Progress bar */
.acc-loader-progress-wrap {
    margin-top: 28px;
    width: 120px;
    height: 3px;
    background: #ede9fe;
    border-radius: 99px;
    overflow: hidden;
}

.acc-loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7C3AED, #a78bfa);
    border-radius: 99px;
    animation: accProgress 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Keyframes */
@keyframes accRingPulse {
    0%   { width: 50px;  height: 50px;  opacity: 0.7; }
    100% { width: 220px; height: 220px; opacity: 0; }
}

@keyframes accHeartbeat {
    0%, 100% { transform: scale(1); }
    12%      { transform: scale(1.10); }
    24%      { transform: scale(1); }
    36%      { transform: scale(1.06); }
    48%      { transform: scale(1); }
}

@keyframes accProgress {
    0%   { width: 0%; }
    65%  { width: 78%; }
    100% { width: 100%; }
}
