﻿/* Overlay */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* Card */
.loader-card {
    background: #ffffff;
    padding: 32px 36px;
    border-radius: 16px;
    text-align: center;
    width: 320px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    animation: fadeScale 0.3s ease;
}

/* Authentication card accent */
.auth-card {
    border-top: 4px solid #1089FF;
}

/* Spinner container */
.auth-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border: 4px solid rgba(16, 137, 255, 0.25);
    border-top-color: #1089FF;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lock icon (CSS only) */
.lock-icon {
    width: 18px;
    height: 14px;
    border: 2px solid #1089FF;
    border-radius: 3px;
    position: relative;
    background: #fff;
}

.lock-icon::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 10px;
    border: 2px solid #1089FF;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    top: -10px;
    left: 1px;
    background: transparent;
}

/* Title */
.loader-title {
    color: #1089FF;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Subtitle */
.loader-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 14px;
}

/* Dots */
.loader-dots span {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #1089FF;
    border-radius: 50%;
    margin: 0 3px;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes fadeScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}