/* Animated TestLink Pro logo mark — moved verbatim from the inline <style> in base.html. */

/* ── Animated TestLink Pro Logo ── */
.tlp-logo-brand {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}
.tlp-logo-glow {
    position: absolute;
    inset: -35%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 184, 122, 0.5) 0%, rgba(56, 189, 248, 0.12) 45%, transparent 70%);
    opacity: 0.55;
    animation: tlp-logo-glow-pulse 3.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.tlp-logo-orbit {
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    border: 1px dashed rgba(45, 184, 122, 0.28);
    animation: tlp-logo-orbit-spin 18s linear infinite;
    pointer-events: none;
    z-index: 0;
}
.tlp-logo-orbit::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: #3ecf8e;
    box-shadow: 0 0 10px rgba(62, 207, 142, 0.9), 0 0 20px rgba(62, 207, 142, 0.4);
}
.tlp-logo-ring--outer {
    inset: -10px;
    border: 1px solid rgba(45, 184, 122, 0.15);
    animation: tlp-logo-orbit-spin 24s linear infinite reverse;
    opacity: 0.7;
}
.tlp-logo-ring--outer::after {
    display: none;
}
.tlp-logo-shine {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
    z-index: 4;
    mask: radial-gradient(circle, #000 55%, transparent 72%);
    -webkit-mask: radial-gradient(circle, #000 55%, transparent 72%);
}
.tlp-logo-shine::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: linear-gradient(
        105deg,
        transparent 38%,
        rgba(255, 255, 255, 0.55) 48%,
        rgba(255, 255, 255, 0.15) 52%,
        transparent 62%
    );
    animation: tlp-logo-shine-sweep 4.5s ease-in-out infinite;
}
.tlp-logo-brand--md {
    width: 58px;
    height: 58px;
}
.tlp-logo-brand--md.tlp-logo-brand--hero {
    width: 76px;
    height: 76px;
}
.tlp-logo-brand--modal {
    width: 52px;
    height: 52px;
}
.tlp-logo-brand--modal::before {
    inset: -5px;
}
.tlp-logo-brand--modal .tlp-logo-orbit,
.tlp-logo-brand--modal .tlp-logo-ring--outer {
    display: none;
}
/* Refined variant — minimal motion for auth pages */
.tlp-logo-brand--refined .tlp-logo-glow,
.tlp-logo-brand--refined .tlp-logo-orbit,
.tlp-logo-brand--refined .tlp-logo-ring--outer,
.tlp-logo-brand--refined .tlp-logo-shine {
    display: none;
}
.tlp-logo-brand--refined .tlp-logo-ring {
    animation: none;
    border-color: rgba(45, 184, 122, 0.22);
}
.tlp-logo-brand--refined .tlp-logo-anim {
    animation: tlp-logo-float 7s ease-in-out infinite;
}
.tlp-logo-brand--refined::before {
    animation: none;
    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.88);
}
.tlp-logo-brand--refined .tlp-logo-svg .tlp-dot {
    animation: tlp-dot-breathe 3.6s ease-in-out infinite;
}
.tlp-logo-brand--refined .tlp-logo-svg .tlp-dot-5 {
    animation: tlp-dot-hub-pulse 3s ease-in-out infinite;
}
.tlp-logo-brand--refined .tlp-logo-svg .tlp-link {
    stroke-width: 4.5;
    opacity: 0.85;
    filter: none;
    animation-duration: 4.2s;
}
.tlp-logo-anim {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    animation: tlp-logo-float 5s ease-in-out infinite;
}
.tlp-logo-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid rgba(45, 184, 122, 0.35);
    animation: tlp-logo-ring-pulse 3s ease-in-out infinite;
    z-index: 2;
}
.tlp-logo-ring::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: rgba(45, 184, 122, 0.08);
}
.tlp-logo-brand--hero .tlp-logo-ring {
    inset: 2px;
    border: 2px solid rgba(22, 163, 74, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55), 0 0 16px rgba(45, 184, 122, 0.25);
    z-index: 2;
}
.tlp-logo-brand--hero .tlp-logo-ring::after {
    inset: 4px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.tlp-logo-brand--hero::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 55%, #ecfdf5 100%);
    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        0 0 24px rgba(34, 197, 94, 0.28);
    z-index: 0;
    animation: tlp-hero-plate-glow 3.5s ease-in-out infinite;
}
.tlp-logo-brand--hero .tlp-logo-anim {
    z-index: 3;
}
.tlp-logo-brand--hero .tlp-logo-svg {
    filter: drop-shadow(0 2px 6px rgba(22, 163, 74, 0.35));
}
.tlp-logo-brand--hero .tlp-logo-svg .tlp-dot {
    fill: #15803d;
    animation: tlp-dot-breathe-hero 2.4s ease-in-out infinite, tlp-dot-wave 3.6s ease-in-out infinite;
}
.tlp-logo-brand--hero .tlp-logo-svg .tlp-dot-5 {
    fill: #16a34a;
    animation: tlp-dot-hub-pulse 2s ease-in-out infinite;
}
.tlp-logo-brand--hero .tlp-logo-svg .tlp-link {
    stroke: #15803d;
    stroke-width: 5.5;
}
.tlp-logo-svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}
.tlp-logo-svg .tlp-hub-glow {
    fill: rgba(45, 184, 122, 0.12);
    animation: tlp-hub-glow-pulse 2.8s ease-in-out infinite;
}
.tlp-logo-svg .tlp-dot {
    fill: #2db87a;
    transform-origin: center;
    transform-box: fill-box;
    animation: tlp-dot-breathe 2.4s ease-in-out infinite, tlp-dot-wave 3.6s ease-in-out infinite;
}
.tlp-logo-svg .tlp-dot-5 {
    fill: #22c55e;
    animation: tlp-dot-hub-pulse 2s ease-in-out infinite;
}
.tlp-logo-svg .tlp-dot-1 { animation-delay: 0s, 0s; }
.tlp-logo-svg .tlp-dot-2 { animation-delay: 0.15s, 0.2s; }
.tlp-logo-svg .tlp-dot-3 { animation-delay: 0.3s, 0.4s; }
.tlp-logo-svg .tlp-dot-4 { animation-delay: 0.45s, 0.6s; }
.tlp-logo-svg .tlp-dot-5 { animation-delay: 0s, 0s; }
.tlp-logo-svg .tlp-dot-6 { animation-delay: 0.75s, 1s; }
.tlp-logo-svg .tlp-dot-7 { animation-delay: 0.9s, 1.2s; }
.tlp-logo-svg .tlp-dot-8 { animation-delay: 1.05s, 1.4s; }
.tlp-logo-svg .tlp-dot-9 { animation-delay: 1.2s, 1.6s; }
.tlp-logo-svg .tlp-link {
    fill: none;
    stroke: #2db87a;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 22;
    stroke-dashoffset: 22;
    animation: tlp-link-draw 2.8s ease-in-out infinite;
    filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.3));
}
.tlp-logo-svg .tlp-link--left { animation-delay: 0s; }
.tlp-logo-svg .tlp-link--right { animation-delay: 0.35s; }
.tlp-logo-svg .tlp-link--down {
    stroke-dasharray: 26;
    stroke-dashoffset: 26;
    animation-delay: 0.7s;
    opacity: 0.7;
}
@keyframes tlp-logo-glow-pulse {
    0%, 100% { transform: scale(0.92); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
@keyframes tlp-logo-orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes tlp-logo-shine-sweep {
    0%, 72%, 100% { transform: translateX(-120%) rotate(25deg); opacity: 0; }
    78% { opacity: 1; }
    92% { transform: translateX(120%) rotate(25deg); opacity: 0; }
}
@keyframes tlp-logo-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-4px) rotate(0.5deg); }
    66% { transform: translateY(-2px) rotate(-0.5deg); }
}
@keyframes tlp-logo-ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.06); opacity: 1; }
}
@keyframes tlp-dot-breathe {
    0%, 100% { transform: scale(1); opacity: 0.92; }
    50% { transform: scale(1.14); opacity: 1; }
}
@keyframes tlp-dot-breathe-hero {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 1; }
}
@keyframes tlp-hub-glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}
@keyframes tlp-dot-hub-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(45, 184, 122, 0.5)); }
    50% { transform: scale(1.18); filter: drop-shadow(0 0 8px rgba(45, 184, 122, 0.9)); }
}
@keyframes tlp-dot-wave {
    0%, 8%, 100% { filter: brightness(1); }
    4% { filter: brightness(1.6); }
}
@keyframes tlp-hero-plate-glow {
    0%, 100% {
        box-shadow:
            0 10px 28px rgba(15, 23, 42, 0.22),
            0 0 0 1px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(34, 197, 94, 0.22);
    }
    50% {
        box-shadow:
            0 14px 36px rgba(15, 23, 42, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.95),
            0 0 40px rgba(34, 197, 94, 0.5);
    }
}
@keyframes tlp-link-draw {
    0%, 18% { stroke-dashoffset: 22; opacity: 0.35; }
    42%, 68% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -22; opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
    .tlp-logo-anim,
    .tlp-logo-ring,
    .tlp-logo-glow,
    .tlp-logo-orbit,
    .tlp-logo-shine::after,
    .tlp-logo-brand--hero::before,
    .tlp-logo-svg .tlp-hub-glow,
    .tlp-logo-svg .tlp-dot,
    .tlp-logo-svg .tlp-link {
        animation: none !important;
    }
    .tlp-logo-svg .tlp-link {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Marketing mark — teal check in a rounded square, no orbital decoration */
.tlp-logo-glow,
.tlp-logo-orbit,
.tlp-logo-ring,
.tlp-logo-shine,
.tlp-logo-brand--hero::before,
.tlp-logo-brand--refined::before,
.tlp-logo-brand--modal::before,
.tlp-logo-brand--login-hero::before {
    display: none !important;
}
.tlp-logo-anim,
.tlp-logo-brand--refined .tlp-logo-anim,
.tlp-logo-brand--hero .tlp-logo-anim {
    animation: none;
}
.tlp-logo-svg {
    display: block;
    width: 100%;
    height: 100%;
}
