@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

@keyframes slideInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in { animation: fadeIn 0.3s ease; }
.animate-slide-up { animation: slideInUp 0.4s ease; }
.animate-scale-in { animation: scaleIn 0.3s ease; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* ---- Background decoration blobs ---- */
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -20px) scale(1.05); }
    66%       { transform: translate(-20px, 15px) scale(0.97); }
}

.page-centered {
    position: relative;
    overflow: hidden;
}

.page-centered::before,
.page-centered::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.page-centered::before {
    width: 500px;
    height: 500px;
    background: var(--color-accent-primary);
    top: -120px;
    left: -100px;
    animation: blobFloat 12s ease-in-out infinite;
}

.page-centered::after {
    width: 400px;
    height: 400px;
    background: var(--color-accent-spotify);
    bottom: -80px;
    right: -60px;
    animation: blobFloat 16s ease-in-out infinite reverse;
}

.page-centered > * {
    position: relative;
    z-index: 1;
}

/* Smooth glow on focus */
.input:focus {
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.3);
}

/* Toast pulse for important messages */
@keyframes toastIn {
    from { transform: translateX(120%) scale(0.8); opacity: 0; }
    to   { transform: translateX(0) scale(1); opacity: 1; }
}
